From 523b31a16a558e639b8cd17bd994ce3fe7ba2a85 Mon Sep 17 00:00:00 2001 From: Major Cooke Date: Thu, 13 Apr 2017 10:20:06 -0500 Subject: [PATCH] Made several string functions const. --- wadsrc/static/zscript/base.txt | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/wadsrc/static/zscript/base.txt b/wadsrc/static/zscript/base.txt index 9defba9de..7fe034f0b 100644 --- a/wadsrc/static/zscript/base.txt +++ b/wadsrc/static/zscript/base.txt @@ -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(); }