mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-09-29 08:11:13 +00:00
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
|
@ -218,12 +218,11 @@ public:
|
||||||
}
|
}
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
|
Result<u32, UnicodeEscapeError> decode_code_point();
|
||||||
|
Result<u32, UnicodeEscapeError> decode_single_or_paired_surrogate(bool combine_surrogate_pairs = true);
|
||||||
|
|
||||||
StringView m_input;
|
StringView m_input;
|
||||||
size_t m_index { 0 };
|
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 {
|
class LineTrackingLexer : public GenericLexer {
|
||||||
|
|
Loading…
Reference in a new issue