summaryrefslogtreecommitdiff
path: root/source/fud_utf8_iterator.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'source/fud_utf8_iterator.cpp')
-rw-r--r--source/fud_utf8_iterator.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/source/fud_utf8_iterator.cpp b/source/fud_utf8_iterator.cpp
index 00ce146..5bdc784 100644
--- a/source/fud_utf8_iterator.cpp
+++ b/source/fud_utf8_iterator.cpp
@@ -19,13 +19,13 @@
namespace fud {
-Option<FudUtf8> Utf8Iterator::peek() const
+Option<Utf8> Utf8Iterator::peek() const
{
if (m_index >= m_view.length()) {
return NullOpt;
}
- auto character = FudUtf8::from(m_view, m_index);
+ auto character = Utf8::from(m_view, m_index);
if (!character.valid()) {
return NullOpt;
@@ -34,14 +34,14 @@ Option<FudUtf8> Utf8Iterator::peek() const
return character;
}
-Option<FudUtf8> Utf8Iterator::next()
+Option<Utf8> Utf8Iterator::next()
{
if (m_index >= m_view.length()) {
m_index = m_view.length();
return NullOpt;
}
- auto character = FudUtf8::from(m_view, m_index);
+ auto character = Utf8::from(m_view, m_index);
if (!character.valid()) {
m_index = m_view.length();