From a5296fec1de0fbba1d39708e93f5b6e672ecbeab Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Sat, 25 Aug 2018 20:39:58 +0200 Subject: [PATCH] - renamed RIndexOf to RightIndexOf --- src/scripting/thingdef_data.cpp | 2 +- wadsrc/static/zscript/base.txt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/scripting/thingdef_data.cpp b/src/scripting/thingdef_data.cpp index 5a0f2b3c98c..be1436d2298 100644 --- a/src/scripting/thingdef_data.cpp +++ b/src/scripting/thingdef_data.cpp @@ -1272,7 +1272,7 @@ DEFINE_ACTION_FUNCTION(FStringStruct, LastIndexOf) ACTION_RETURN_INT(self->LastIndexOf(substr, endIndex)); } -DEFINE_ACTION_FUNCTION(FStringStruct, RIndexOf) +DEFINE_ACTION_FUNCTION(FStringStruct, RightIndexOf) { PARAM_SELF_STRUCT_PROLOGUE(FString); PARAM_STRING(substr); diff --git a/wadsrc/static/zscript/base.txt b/wadsrc/static/zscript/base.txt index 4bf64e96662..8da0854ad7b 100644 --- a/wadsrc/static/zscript/base.txt +++ b/wadsrc/static/zscript/base.txt @@ -815,7 +815,7 @@ struct StringStruct native native String Filter(); native int IndexOf(String substr, int startIndex = 0) const; deprecated("3.5") native int LastIndexOf(String substr, int endIndex = 2147483647) const; - native int RIndexOf(String substr, int endIndex = 2147483647) const; + native int RightIndexOf(String substr, int endIndex = 2147483647) const; native void ToUpper(); native void ToLower(); native int ToInt(int base = 0) const;