mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-10-20 15:09:42 +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
|
@ -84,23 +84,23 @@ Configuration Configuration::from_config(StringView libname)
|
|||
key = key_lexer.consume_escaped_character();
|
||||
escape = false;
|
||||
} else {
|
||||
if (key_lexer.next_is("alt+")) {
|
||||
if (key_lexer.next_is("alt+"sv)) {
|
||||
alt = key_lexer.consume_specific("alt+"sv);
|
||||
continue;
|
||||
}
|
||||
if (key_lexer.next_is("^[")) {
|
||||
if (key_lexer.next_is("^["sv)) {
|
||||
alt = key_lexer.consume_specific("^["sv);
|
||||
continue;
|
||||
}
|
||||
if (key_lexer.next_is("^")) {
|
||||
if (key_lexer.next_is("^"sv)) {
|
||||
has_ctrl = key_lexer.consume_specific("^"sv);
|
||||
continue;
|
||||
}
|
||||
if (key_lexer.next_is("ctrl+")) {
|
||||
if (key_lexer.next_is("ctrl+"sv)) {
|
||||
has_ctrl = key_lexer.consume_specific("ctrl+"sv);
|
||||
continue;
|
||||
}
|
||||
if (key_lexer.next_is("\\")) {
|
||||
if (key_lexer.next_is("\\"sv)) {
|
||||
escape = true;
|
||||
continue;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue