[Overview][Constants][Types][Procedures and functions] Reference for unit 'strutils' (#rtl)

IsEmptyStr

Check whether a string is empty, disregaring whitespace characters

Declaration

Source position: strutils.pp line 130

function IsEmptyStr(

  const S: String;

  const EmptyChars: TSysCharSet

):Boolean;

Arguments

S

  

String to check

EmptyChars

  

Characters to consider as whitespace

Function result

Trueif the string consists solely of empty characters.

Description

IsEmptyStrreturns Trueif the string Sonly contains characters whitespace characters, all characters in EmptyCharsare considered whitespace characters. If a character not present in EmptyCharsis found in S, Falseis returned.

Errors

None.

See also

IsWild

  

Check whether a string matches a wildcard search expression.

FindPart

  

Search for a substring in a string, using wildcards.

IsWordPresent

  

Check for the presence of a word in a string.