Browse Source

* Fix casing of substring

michael 6 years ago
parent
commit
f14118704c
1 changed files with 2 additions and 2 deletions
  1. 2 2
      packages/rtl/js.pas

+ 2 - 2
packages/rtl/js.pas

@@ -263,8 +263,8 @@ type
     function startsWith(aSearchString : String; aPosition : NativeInt) : Boolean; overload;
     function startsWith(aSearchString : String; aPosition : NativeInt) : Boolean; overload;
     function substr(aStartIndex : NativeInt) : String; overload;
     function substr(aStartIndex : NativeInt) : String; overload;
     function substr(aStartIndex,aLength : NativeInt) : String; overload;
     function substr(aStartIndex,aLength : NativeInt) : String; overload;
-    function subString(aStartIndex : NativeInt) : String; overload;
-    function subString(aStartIndex,aEndIndex : NativeInt) : String; overload;
+    function substring(aStartIndex : NativeInt) : String; overload;
+    function substring(aStartIndex,aEndIndex : NativeInt) : String; overload;
     function toLocaleLowerCase : String;
     function toLocaleLowerCase : String;
     function toLocaleUpperCase : String;
     function toLocaleUpperCase : String;
     function toLowerCase : String;
     function toLowerCase : String;