From 0b860bb5dd6d2007db605291d239a6a9d41f57d1 Mon Sep 17 00:00:00 2001 From: Dominick Allen Date: Mon, 23 Sep 2024 07:36:16 -0500 Subject: Installable library. --- source/fud_utf8_iterator.cpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'source/fud_utf8_iterator.cpp') diff --git a/source/fud_utf8_iterator.cpp b/source/fud_utf8_iterator.cpp index 4476050..2557dc0 100644 --- a/source/fud_utf8_iterator.cpp +++ b/source/fud_utf8_iterator.cpp @@ -25,13 +25,13 @@ std::optional Utf8Iterator::peek() const return std::nullopt; } - auto utf8 = FudUtf8::fromStringView(m_view, m_index); + auto character = FudUtf8::fromStringView(m_view, m_index); - if (!utf8.valid()) { + if (!character.valid()) { return std::nullopt; } - return utf8; + return character; } std::optional Utf8Iterator::next() @@ -41,15 +41,15 @@ std::optional Utf8Iterator::next() return std::nullopt; } - auto utf8 = FudUtf8::fromStringView(m_view, m_index); + auto character = FudUtf8::fromStringView(m_view, m_index); - if (!utf8.valid()) { + if (!character.valid()) { m_index = m_view.length(); return std::nullopt; } - m_index += utf8.size(); - return utf8; + m_index += character.size(); + return character; } } // namespace fud -- cgit v1.2.3