Sign in Join
FPDoc Onlineexperiment

IsEmptyStr function

In unit StrUtils

Check whether a string is empty, disregarding whitespace characters.

Declaration

pascal
function IsEmptyStr(const S: string; const EmptyChars: TSysCharSet)
: Boolean

Arguments

S

String to check.

EmptyChars

Characters to consider as whitespace.

Function result

True if the string consists solely of empty characters.

Description

IsEmptyStr returns True if the string S only contains characters whitespace characters, all characters in EmptyChars are considered whitespace characters. If a character not present in EmptyChars is found in S, False is returned.

Errors

None.

See also

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.