mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2024-12-01 08:31:14 +00:00
Made several string functions const.
This commit is contained in:
parent
2d098e99fb
commit
523b31a16a
1 changed files with 5 additions and 5 deletions
|
@ -639,15 +639,15 @@ enum EPickStart
|
||||||
// Although String is a builtin type, this is a convenient way to attach methods to it.
|
// Although String is a builtin type, this is a convenient way to attach methods to it.
|
||||||
struct StringStruct native
|
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 vararg void AppendFormat(String fmt, ...);
|
||||||
|
|
||||||
native void Replace(String pattern, String replacement);
|
native void Replace(String pattern, String replacement);
|
||||||
native String Left(int len);
|
native String Left(int len) const;
|
||||||
native String Mid(int pos = 0, int len = 2147483647);
|
native String Mid(int pos = 0, int len = 2147483647) const;
|
||||||
native void Truncate(int newlen);
|
native void Truncate(int newlen);
|
||||||
native String CharAt(int pos);
|
native String CharAt(int pos) const;
|
||||||
native int CharCodeAt(int pos);
|
native int CharCodeAt(int pos) const;
|
||||||
native String Filter();
|
native String Filter();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue