Add comment

This commit is contained in:
Jaroslav Lobačevski 2023-09-01 17:28:58 +02:00 committed by GitHub
parent 5687c4f43c
commit 6567a89094
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -53,6 +53,8 @@ public:
bool get(utf8 *c);
void operator++();
eState getState() { return m_eState; };
// Utf8_16::read always consumes two bytes,
// thus the bool operator checks if m_pRead is less than m_pEnd by two bytes.
operator bool() { return (m_pRead + 1 < m_pEnd) || (m_out1st != m_outLst); };
protected: