mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-23 12:19:25 +02:00
* Add IndexChar for widechar
This commit is contained in:
parent
1671010086
commit
f75f208992
@ -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);
|
||||||
|
Loading…
Reference in New Issue
Block a user