Skip to content

Commit

Permalink
style: format.
Browse files Browse the repository at this point in the history
  • Loading branch information
Lovelylavender4 committed Apr 17, 2024
1 parent 217fa2d commit 44ee463
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions iVerse/include/string/iString.h
Original file line number Diff line number Diff line change
Expand Up @@ -256,14 +256,14 @@ namespace String
return result;
}

std::string toStdString() { return (CPtr<char>)data(); }
std::string toStdString() { return (CPtr<char>)data(); }

Ref<char8_t> index(const size_type _Off) { return (*this)[_Off]; }
CRef<char8_t> index(const size_type _Off) const { return (*this)[_Off]; }

void push(CRef<iString> string) { basic_string::replace(basic_string::length(), 0, string.data()); }
void pop(size_t count) { basic_string::replace(basic_string::length() - count, count, u8""); }

void toUpper()
{
std::transform(basic_string::begin(), basic_string::end(), basic_string::begin(), std::toupper);
Expand Down

0 comments on commit 44ee463

Please sign in to comment.