From 6a27a2a4032e88fa9154ef0f0741edc584f7a701 Mon Sep 17 00:00:00 2001 From: Dominick Allen Date: Sun, 20 Oct 2024 10:48:19 -0500 Subject: Lots of work. --- include/fud_string_view.hpp | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) (limited to 'include/fud_string_view.hpp') 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 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 -- cgit v1.2.3