Explorar el Código

* Add IndexChar for widechar

Michael VAN CANNEYT hace 2 años
padre
commit
f75f208992
Se han modificado 1 ficheros con 7 adiciones y 0 borrados
  1. 7 0
      rtl/inc/system.inc

+ 7 - 0
rtl/inc/system.inc

@@ -392,6 +392,13 @@ begin
 end;
 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;
 function CompareChar(Const buf1,buf2;len:SizeInt):SizeInt;
 begin
 begin
   CompareChar:=CompareByte(buf1,buf2,len);
   CompareChar:=CompareByte(buf1,buf2,len);