浏览代码

* 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);