mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-10-16 04:59:23 +00:00
AK+Libraries: Reduce API surface of GenericLexer a bit
* Remove completely unused methods. * Deduplicate methods that were overloaded with both StringView and char const* parameters. A future commit will templatize GenericLexer by char type. This patch serves to make that a tiny bit easier.
This commit is contained in:
parent
213683956c
commit
28d9d3a2c7
Notes:
github-actions[bot]
2025-08-13 13:58:03 +00:00
Author: https://github.com/trflynn89
Commit: 28d9d3a2c7
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/5762
9 changed files with 41 additions and 99 deletions
|
@ -139,7 +139,7 @@ ByteString Token::string_value(StringValueStatus& status) const
|
|||
|
||||
// Line continuation
|
||||
if (lexer.next_is('\n') || lexer.next_is('\r')) {
|
||||
if (lexer.next_is("\r\n"))
|
||||
if (lexer.next_is("\r\n"sv))
|
||||
lexer.ignore();
|
||||
lexer.ignore();
|
||||
continue;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue