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:
Timothy Flynn 2024-07-02 13:08:34 -04:00 committed by Andreas Kling
parent ceb9c3b797
commit c39a3fef17
Notes: sideshowbarker 2024-07-17 23:02:37 +09:00

View file

@ -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 {