Skip to content
Permalink
Browse files

- Added "const" qualifiers to the new UTF-8-aware string methods

  • Loading branch information...
Player701 authored and coelckers committed Apr 13, 2019
1 parent 7479067 commit 8ab6747d77fb44423fb605908de52d3aa6e55d5c
Showing with 8 additions and 8 deletions.
  1. +2 −2 src/utility/zstring.cpp
  2. +2 −2 src/utility/zstring.h
  3. +4 −4 wadsrc/static/zscript/base.zs
@@ -681,7 +681,7 @@ void FString::ToLower ()
UnlockBuffer();
}

FString FString::MakeLower()
FString FString::MakeLower() const
{
TArray<uint8_t> builder(Len());
int pos = 0;
@@ -694,7 +694,7 @@ FString FString::MakeLower()
return FString(builder);
}

FString FString::MakeUpper()
FString FString::MakeUpper() const
{
TArray<uint8_t> builder(Len());
int pos = 0;
@@ -238,8 +238,8 @@ class FString

void ToUpper ();
void ToLower ();
FString MakeUpper();
FString MakeLower();
FString MakeUpper() const;
FString MakeLower() const;

void StripLeft ();
void StripLeft (const FString &charset);
@@ -909,17 +909,17 @@ struct StringStruct native
native int RightIndexOf(String substr, int endIndex = 2147483647) const;
deprecated("4.1") native void ToUpper();
deprecated("4.1") native void ToLower();
native String MakeUpper();
native String MakeLower();
native String MakeUpper() const;
native String MakeLower() const;
native static int CharUpper(int ch);
native static int CharLower(int ch);
native int ToInt(int base = 0) const;
native double ToDouble() const;
native void Split(out Array<String> tokens, String delimiter, EmptyTokenType keepEmpty = TOK_KEEPEMPTY) const;
native void AppendCharacter(int c);
native void DeleteLastCharacter();
native int CodePointCount();
native int, int GetNextCodePoint(int position);
native int CodePointCount() const;
native int, int GetNextCodePoint(int position) const;
}

class SectorEffect : Thinker native

0 comments on commit 8ab6747

Please sign in to comment.
You can’t perform that action at this time.