Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
20
Task/Empty-string/Delphi/empty-string.delphi
Normal file
20
Task/Empty-string/Delphi/empty-string.delphi
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