From d0dd1f9015f55a8de49f720f005e7d9c01b0c8aa Mon Sep 17 00:00:00 2001 From: J Reece Wilson Date: Thu, 1 Aug 2024 01:45:10 +0100 Subject: [PATCH] [*] Fix new string view bug --- Include/auROXTL/auUTF8StringView.hpp | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) diff --git a/Include/auROXTL/auUTF8StringView.hpp b/Include/auROXTL/auUTF8StringView.hpp index ebcb65b..8f14ebb 100644 --- a/Include/auROXTL/auUTF8StringView.hpp +++ b/Include/auROXTL/auUTF8StringView.hpp @@ -144,7 +144,7 @@ struct AuROString if (count1 == npos) { - return this->pPointer + pos1; + return AuROString {this->pPointer + pos1, this->uLength - pos1 }; } if (pos1 + count1 > this->uLength) @@ -324,11 +324,6 @@ struct AuROString return &this->operator[](0); } - inline constexpr const_pointer c_str() const noexcept - { - return this->data(); - } - inline constexpr size_type max_size() const noexcept { return SIZE_MAX; @@ -629,11 +624,6 @@ struct AuROString return this->data(); } - inline constexpr const_pointer CStr() const noexcept - { - return this->c_str(); - } - inline constexpr size_type MaxSize() const noexcept { return this->max_size(); @@ -1020,7 +1010,7 @@ struct AuRONString if (count1 == npos) { - return this->data() + pos1; + return AuROString {this->data() + pos1, this->size() - pos1 }; } if (pos1 + count1 > this->size())