Data update
This commit is contained in:
parent
81fd053722
commit
52a6ef48dd
10248 changed files with 63654 additions and 6775 deletions
20
Task/Empty-string/Delphi/empty-string.pas
Normal file
20
Task/Empty-string/Delphi/empty-string.pas
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
program EmptyString;
|
||||
|
||||
{$APPTYPE CONSOLE}
|
||||
|
||||
uses SysUtils;
|
||||
|
||||
function StringIsEmpty(const aString: string): Boolean;
|
||||
begin
|
||||
Result := aString = '';
|
||||
end;
|
||||
|
||||
var
|
||||
s: string;
|
||||
begin
|
||||
s := '';
|
||||
Writeln(StringIsEmpty(s)); // True
|
||||
|
||||
s := 'abc';
|
||||
Writeln(StringIsEmpty(s)); // False
|
||||
end.
|
||||
Loading…
Add table
Add a link
Reference in a new issue