From 6567a890947293f47aae79d37a9782aeeb16c4e6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jaroslav=20Loba=C4=8Devski?= Date: Fri, 1 Sep 2023 17:28:58 +0200 Subject: [PATCH] Add comment --- PowerEditor/src/Utf8_16.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/PowerEditor/src/Utf8_16.h b/PowerEditor/src/Utf8_16.h index 817cdc024..5e36c2668 100644 --- a/PowerEditor/src/Utf8_16.h +++ b/PowerEditor/src/Utf8_16.h @@ -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: