소스 검색

* Add IndexChar for widechar

Michael VAN CANNEYT 2 년 전
부모
커밋
f75f208992
1개의 변경된 파일7개의 추가작업 그리고 0개의 파일을 삭제
  1. 7 0
      rtl/inc/system.inc

+ 7 - 0
rtl/inc/system.inc

@@ -392,6 +392,13 @@ begin
 end;
 
 
+function IndexChar(const buf; len: SizeInt; b: widechar): SizeInt;
+
+begin
+  IndexChar:=IndexWord(buf,len,Word(b));
+end;
+
+
 function CompareChar(Const buf1,buf2;len:SizeInt):SizeInt;
 begin
   CompareChar:=CompareByte(buf1,buf2,len);