소스 검색

* Fix EndsWith declaration

michael 6 년 전
부모
커밋
9e2c77792d
1개의 변경된 파일2개의 추가작업 그리고 1개의 파일을 삭제
  1. 2 1
      packages/rtl/js.pas

+ 2 - 1
packages/rtl/js.pas

@@ -300,7 +300,8 @@ type
     function charCodeAt(aIndex : NativeInt) : NativeInt;
     function codePointAt(aIndex : NativeInt) : NativeInt;
     function concat(s : string) : string; varargs;
-    function endsWith(aSearchString : string; Pos : NativeInt = 0) : boolean;
+    function endsWith(aSearchString : string) : boolean; overload;
+    function endsWith(aSearchString : string; Pos : NativeInt) : boolean; overload;
     function includes(aSearchString : string; Pos : NativeInt = 0) : boolean;
     function indexOf(aSearchString : String; Pos : NativeInt = 0) : Integer;
     function lastIndexOf(aSearchString : String) : NativeInt;overload;