mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-15 14:02:20 +00: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
Notes:
github-actions[bot]
2025-06-30 17:40:39 +00:00
Author: https://github.com/bplaat
Commit: 6812aa00ca
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/4535
Reviewed-by: https://github.com/ADKaster ✅
Reviewed-by: https://github.com/trflynn89
1 changed files with 2 additions and 0 deletions
|
@ -66,6 +66,8 @@ public:
|
||||||
return result.release_value();
|
return result.release_value();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
[[nodiscard]] MappingType clone_mapping() const { return MUST(m_mapping.clone()); }
|
||||||
|
|
||||||
StringView as_string_view() const { return m_builder.string_view(); }
|
StringView as_string_view() const { return m_builder.string_view(); }
|
||||||
|
|
||||||
void append(StringView pattern)
|
void append(StringView pattern)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue