mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-11-02 06:49:34 +01:00
* more simple implementations done, based on copy() Largely untested
This commit is contained in:
parent
aa58205eca
commit
e6365c83ca
@ -151,7 +151,7 @@ end;
|
||||
Function AnsiContainsText(const AText, ASubText: string): Boolean;
|
||||
|
||||
begin
|
||||
NotYetImplemented(' AnsiContainsText');
|
||||
AnsiContainsText:=Pos(ASubText,AText)<>0;
|
||||
end;
|
||||
|
||||
|
||||
@ -159,7 +159,7 @@ end;
|
||||
Function AnsiStartsText(const ASubText, AText: string): Boolean;
|
||||
|
||||
begin
|
||||
NotYetImplemented(' AnsiStartsText');
|
||||
Result:=Copy(AText,1,Length(AsubText))=ASubText;
|
||||
end;
|
||||
|
||||
|
||||
@ -167,7 +167,7 @@ end;
|
||||
Function AnsiEndsText(const ASubText, AText: string): Boolean;
|
||||
|
||||
begin
|
||||
NotYetImplemented(' AnsiEndsText');
|
||||
result:=Copy(AText,Length(AText)-Length(ASubText)+1,Length(ASubText))=asubtext;
|
||||
end;
|
||||
|
||||
|
||||
@ -626,3 +626,10 @@ begin
|
||||
end;
|
||||
|
||||
end.
|
||||
|
||||
{
|
||||
$Log$
|
||||
Revision 1.3 2004-03-18 16:55:47 marco
|
||||
* more simple implementations done, based on copy() Largely untested
|
||||
|
||||
}
|
||||
Loading…
Reference in New Issue
Block a user