[*] Fix new string view bug

This commit is contained in:
Reece Wilson 2024-08-01 01:45:10 +01:00
parent 6b9a364a91
commit d0dd1f9015

View File

@ -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())