Skip to content

Commit

Permalink
- renamed RIndexOf to RightIndexOf
Browse files Browse the repository at this point in the history
  • Loading branch information
coelckers committed Aug 25, 2018
1 parent 5ae6137 commit a5296fe
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/scripting/thingdef_data.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion wadsrc/static/zscript/base.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit a5296fe

Please sign in to comment.