mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-13 09:39:09 +02:00
* initial commit
git-svn-id: trunk@552 -
This commit is contained in:
parent
08f0419e3e
commit
833a6d40d4
1
.gitattributes
vendored
1
.gitattributes
vendored
@ -6119,6 +6119,7 @@ tests/webtbs/tw4093.pp svneol=native#text/plain
|
|||||||
tests/webtbs/tw4098.pp svneol=native#text/plain
|
tests/webtbs/tw4098.pp svneol=native#text/plain
|
||||||
tests/webtbs/tw4100.pp svneol=native#text/plain
|
tests/webtbs/tw4100.pp svneol=native#text/plain
|
||||||
tests/webtbs/tw4115.pp svneol=native#text/plain
|
tests/webtbs/tw4115.pp svneol=native#text/plain
|
||||||
|
tests/webtbs/tw4119.pp svneol=native#text/plain
|
||||||
tests/webtbs/tw4140.pp svneol=native#text/plain
|
tests/webtbs/tw4140.pp svneol=native#text/plain
|
||||||
tests/webtbs/ub1873.pp svneol=native#text/plain
|
tests/webtbs/ub1873.pp svneol=native#text/plain
|
||||||
tests/webtbs/ub1883.pp svneol=native#text/plain
|
tests/webtbs/ub1883.pp svneol=native#text/plain
|
||||||
|
33
tests/webtbs/tw4119.pp
Normal file
33
tests/webtbs/tw4119.pp
Normal file
@ -0,0 +1,33 @@
|
|||||||
|
{ Source provided for Free Pascal Bug Report 4119 }
|
||||||
|
{ Submitted by "C Western" on 2005-06-26 }
|
||||||
|
{ e-mail: mftq75@dsl.pipex.com }
|
||||||
|
|
||||||
|
uses StrUtils;
|
||||||
|
|
||||||
|
function mypos(s1,s2 : widestring) : integer;overload;
|
||||||
|
begin
|
||||||
|
result:=pos(s1,s2);
|
||||||
|
end;
|
||||||
|
|
||||||
|
function mypos(s1,s2 : ansistring) : integer;overload;
|
||||||
|
begin
|
||||||
|
result:=pos(s1,s2);
|
||||||
|
end;
|
||||||
|
|
||||||
|
function mypos(s1,s2 : shortstring) : integer;overload;
|
||||||
|
begin
|
||||||
|
result:=pos(s1,s2);
|
||||||
|
end;
|
||||||
|
|
||||||
|
var
|
||||||
|
s:AnsiString;
|
||||||
|
p:ShortString;
|
||||||
|
ws:widestring;
|
||||||
|
begin
|
||||||
|
s:=DupeString('a',300)+'b';
|
||||||
|
ws:=s;
|
||||||
|
p:='b';
|
||||||
|
WriteLn(MyPos('b',s));
|
||||||
|
WriteLn(MyPos(p,s));
|
||||||
|
WriteLn(MyPos(p,ws));
|
||||||
|
end.
|
Loading…
Reference in New Issue
Block a user