|
@@ -712,26 +712,27 @@ begin
|
|
pos:=0;
|
|
pos:=0;
|
|
end;
|
|
end;
|
|
|
|
|
|
-
|
|
|
|
|
|
+{ DO NOT inline these! Inlining a managed typecast creates an implicit try..finally
|
|
|
|
+ block, which is significant bloat without any sensible speed improvement. }
|
|
Function Pos (c : WideChar; Const s : RawByteString) : SizeInt;
|
|
Function Pos (c : WideChar; Const s : RawByteString) : SizeInt;
|
|
begin
|
|
begin
|
|
result:=Pos(c,WideString(s));
|
|
result:=Pos(c,WideString(s));
|
|
end;
|
|
end;
|
|
|
|
|
|
|
|
|
|
-Function Pos (c : RawByteString; Const s : WideString) : SizeInt;{$ifdef SYSTEMINLINE}inline;{$endif}
|
|
|
|
|
|
+Function Pos (const c : RawByteString; Const s : WideString) : SizeInt;
|
|
begin
|
|
begin
|
|
result:=Pos(WideString(c),s);
|
|
result:=Pos(WideString(c),s);
|
|
end;
|
|
end;
|
|
|
|
|
|
|
|
|
|
-Function Pos (c : ShortString; Const s : WideString) : SizeInt;{$ifdef SYSTEMINLINE}inline;{$endif}
|
|
|
|
|
|
+Function Pos (const c : ShortString; Const s : WideString) : SizeInt;
|
|
begin
|
|
begin
|
|
result:=Pos(WideString(c),s);
|
|
result:=Pos(WideString(c),s);
|
|
end;
|
|
end;
|
|
|
|
|
|
|
|
|
|
-Function Pos (c : WideString; Const s : RawByteString) : SizeInt;{$ifdef SYSTEMINLINE}inline;{$endif}
|
|
|
|
|
|
+Function Pos (const c : WideString; Const s : RawByteString) : SizeInt;
|
|
begin
|
|
begin
|
|
result:=Pos(c,WideString(s));
|
|
result:=Pos(c,WideString(s));
|
|
end;
|
|
end;
|