Explorar o código

* Add IndexChar for widechar

Michael VAN CANNEYT %!s(int64=2) %!d(string=hai) anos
pai
achega
f75f208992
Modificáronse 1 ficheiros con 7 adicións e 0 borrados
  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);