mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-13 09:59:25 +02:00
* more widestring overloads for pos to avoid problems with selection of the correct one
git-svn-id: trunk@1177 -
This commit is contained in:
parent
c67502ac2c
commit
78f4cb86b0
@ -20,6 +20,9 @@ Function Pos (Const Substr : WideString; Const Source : WideString) : SizeInt;
|
||||
Function Pos (c : Char; Const s : WideString) : SizeInt;
|
||||
Function Pos (c : WideChar; Const s : WideString) : SizeInt;
|
||||
Function Pos (c : WideChar; Const s : AnsiString) : SizeInt;
|
||||
Function Pos (c : AnsiString; Const s : WideString) : SizeInt;{$ifdef SYSTEMINLINE}inline;{$endif}
|
||||
Function Pos (c : WideString; Const s : AnsiString) : SizeInt;{$ifdef SYSTEMINLINE}inline;{$endif}
|
||||
Function Pos (c : ShortString; Const s : WideString) : SizeInt;{$ifdef SYSTEMINLINE}inline;{$endif}
|
||||
|
||||
Function UpCase(const s : WideString) : WideString;
|
||||
|
||||
|
@ -828,6 +828,22 @@ begin
|
||||
end;
|
||||
|
||||
|
||||
Function Pos (c : AnsiString; Const s : WideString) : SizeInt;{$ifdef SYSTEMINLINE}inline;{$endif}
|
||||
begin
|
||||
result:=Pos(WideString(c),s);
|
||||
end;
|
||||
|
||||
|
||||
Function Pos (c : ShortString; Const s : WideString) : SizeInt;{$ifdef SYSTEMINLINE}inline;{$endif}
|
||||
begin
|
||||
result:=Pos(WideString(c),s);
|
||||
end;
|
||||
|
||||
|
||||
Function Pos (c : WideString; Const s : AnsiString) : SizeInt;{$ifdef SYSTEMINLINE}inline;{$endif}
|
||||
begin
|
||||
result:=Pos(c,WideString(s));
|
||||
end;
|
||||
|
||||
{ Faster version for a char alone. Must be implemented because }
|
||||
{ pos(c: char; const s: shortstring) also exists, so otherwise }
|
||||
|
Loading…
Reference in New Issue
Block a user