mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-04-20 19:45:12 +00:00
AK: Add appendln
helper to SourceGenerator
This commit is contained in:
parent
f6f7280fe3
commit
6b20496758
Notes:
sideshowbarker
2024-07-17 16:36:48 +09:00
Author: https://github.com/Hendiadyoin1 Commit: https://github.com/SerenityOS/serenity/commit/6b20496758 Pull-request: https://github.com/SerenityOS/serenity/pull/12735 Reviewed-by: https://github.com/AtkinsSJ Reviewed-by: https://github.com/kleinesfilmroellchen ✅
1 changed files with 6 additions and 0 deletions
|
@ -77,6 +77,12 @@ public:
|
|||
}
|
||||
}
|
||||
|
||||
void appendln(StringView pattern)
|
||||
{
|
||||
append(pattern);
|
||||
m_builder.append('\n');
|
||||
}
|
||||
|
||||
private:
|
||||
StringBuilder& m_builder;
|
||||
MappingType m_mapping;
|
||||
|
|
Loading…
Add table
Reference in a new issue