mirror of
https://github.com/zebrajr/ladybird.git
synced 2025-12-06 12:20:00 +01:00
AK: Add SourceGenerator mapping clone method
This is useful when you want to build an independent string using the same names and replacements as an existing generator.
This commit is contained in:
parent
41a6ebfba2
commit
6812aa00ca
|
|
@ -66,6 +66,8 @@ public:
|
|||
return result.release_value();
|
||||
}
|
||||
|
||||
[[nodiscard]] MappingType clone_mapping() const { return MUST(m_mapping.clone()); }
|
||||
|
||||
StringView as_string_view() const { return m_builder.string_view(); }
|
||||
|
||||
void append(StringView pattern)
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user