Made several string functions const.

This commit is contained in:
Major Cooke 2017-04-13 10:20:06 -05:00 committed by Christoph Oelckers
parent 2d098e99fb
commit 523b31a16a

View file

@ -639,15 +639,15 @@ enum EPickStart
// Although String is a builtin type, this is a convenient way to attach methods to it.
struct StringStruct native
{
native static vararg String Format(String fmt, ...);
native static vararg String Format(String fmt, ...) const;
native vararg void AppendFormat(String fmt, ...);
native void Replace(String pattern, String replacement);
native String Left(int len);
native String Mid(int pos = 0, int len = 2147483647);
native String Left(int len) const;
native String Mid(int pos = 0, int len = 2147483647) const;
native void Truncate(int newlen);
native String CharAt(int pos);
native int CharCodeAt(int pos);
native String CharAt(int pos) const;
native int CharCodeAt(int pos) const;
native String Filter();
}