summaryrefslogtreecommitdiff
path: root/include/fud_string_view.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'include/fud_string_view.hpp')
-rw-r--r--include/fud_string_view.hpp14
1 files changed, 8 insertions, 6 deletions
diff --git a/include/fud_string_view.hpp b/include/fud_string_view.hpp
index 7b4925e..8a47ae5 100644
--- a/include/fud_string_view.hpp
+++ b/include/fud_string_view.hpp
@@ -71,6 +71,14 @@ struct StringView {
Result<size_t, FudStatus> trimWhitespace();
+ [[nodiscard]] bool advance();
+
+ void advanceUnsafe();
+
+ [[nodiscard]] bool advance(size_t size);
+
+ void advanceUnsafe(size_t size);
+
FudStatus toUint8(uint8_t& number, uint8_t specifiedRadix, size_t& strLen) const;
FudStatus toUint16(uint16_t& number, uint8_t specifiedRadix, size_t& strLen) const;
@@ -96,12 +104,6 @@ struct StringView {
const utf8* m_data{nullptr};
};
-FudStatus skipWhitespace(StringView& view, size_t& skipIndex);
-
-ssize_t cStringLength(const char* str);
-
-ssize_t cStringLength(const char* str, size_t maxLength);
-
} // namespace fud
#endif