AK: Make a couple of GenericLexer helper methods protected
We will want to use the exact behavior of these methods in JsonParser.
This commit is contained in:
parent
ceb9c3b797
commit
c39a3fef17
Notes:
sideshowbarker
2024-07-17 23:02:37 +09:00
Author: https://github.com/trflynn89 Commit: https://github.com/LadybirdBrowser/ladybird/commit/c39a3fef17 Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/369
1 changed files with 3 additions and 4 deletions
|
@ -218,12 +218,11 @@ public:
|
|||
}
|
||||
|
||||
protected:
|
||||
Result<u32, UnicodeEscapeError> decode_code_point();
|
||||
Result<u32, UnicodeEscapeError> decode_single_or_paired_surrogate(bool combine_surrogate_pairs = true);
|
||||
|
||||
StringView m_input;
|
||||
size_t m_index { 0 };
|
||||
|
||||
private:
|
||||
Result<u32, UnicodeEscapeError> decode_code_point();
|
||||
Result<u32, UnicodeEscapeError> decode_single_or_paired_surrogate(bool combine_surrogate_pairs);
|
||||
};
|
||||
|
||||
class LineTrackingLexer : public GenericLexer {
|
||||
|
|
Loading…
Add table
Reference in a new issue