Data update
This commit is contained in:
parent
81fd053722
commit
52a6ef48dd
10248 changed files with 63654 additions and 6775 deletions
13
Task/String-matching/Delphi/string-matching.pas
Normal file
13
Task/String-matching/Delphi/string-matching.pas
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
program CharacterMatching;
|
||||
|
||||
{$APPTYPE CONSOLE}
|
||||
|
||||
uses StrUtils;
|
||||
|
||||
begin
|
||||
WriteLn(AnsiStartsText('ab', 'abcd')); // True
|
||||
WriteLn(AnsiEndsText('zn', 'abcd')); // False
|
||||
WriteLn(AnsiContainsText('abcd', 'bb')); // False
|
||||
Writeln(AnsiContainsText('abcd', 'ab')); // True
|
||||
WriteLn(Pos('ab', 'abcd')); // 1
|
||||
end.
|
||||
Loading…
Add table
Add a link
Reference in a new issue