summaryrefslogtreecommitdiff
path: root/include/utf8_iterator.hpp
diff options
context:
space:
mode:
authorDominick Allen <djallen@librehumanitas.org>2024-09-22 12:41:28 -0500
committerDominick Allen <djallen@librehumanitas.org>2024-09-22 12:41:28 -0500
commit7da829d48f9059c83ab9cada2c850621e8bbd3f3 (patch)
tree314e7a5b645e910d4997e3bee980bd2024f3087d /include/utf8_iterator.hpp
parentbf81e34921e3e30b05313efbcf5c9fa839cb7c05 (diff)
Basics of library.
Diffstat (limited to 'include/utf8_iterator.hpp')
-rw-r--r--include/utf8_iterator.hpp39
1 files changed, 0 insertions, 39 deletions
diff --git a/include/utf8_iterator.hpp b/include/utf8_iterator.hpp
deleted file mode 100644
index 1f9674b..0000000
--- a/include/utf8_iterator.hpp
+++ /dev/null
@@ -1,39 +0,0 @@
-#ifndef FUD_UTF8_ITERATOR_HPP
-#define FUD_UTF8_ITERATOR_HPP
-
-#include "string.hpp"
-#include "utf8.hpp"
-
-#include <cstddef>
-#include <optional>
-
-namespace fud {
-
-class Utf8Iterator {
- private:
- size_t m_index{0};
- // NOLINTBEGIN(cppcoreguidelines-avoid-const-or-ref-data-members)
- const StringView m_view;
- // NOLINTEND(cppcoreguidelines-avoid-const-or-ref-data-members)
-
- public:
- explicit constexpr Utf8Iterator(const String& extString) : m_view{extString}
- {
- }
-
- explicit constexpr Utf8Iterator(const StringView& view) : m_view{view}
- {
- }
-
- constexpr void reset()
- {
- m_index = 0;
- }
-
- [[nodiscard]] std::optional<ExtUtf8> peek() const;
- std::optional<ExtUtf8> next();
-};
-
-} // namespace fud
-
-#endif