isEmpty

Return true if a string is empty (has only white space characters)

Information

This information is part of the Modelica Standard Library maintained by the Modelica Association.

Syntax

Strings.isEmpty(string);

Description

Returns true if the string has no characters or if the string consists only of white space characters. Otherwise, false is returned.

Example

isEmpty("");       // returns true
isEmpty("   ");    // returns true
isEmpty("  abc");  // returns false
isEmpty("a");      // returns false

Syntax

result = isEmpty(string)

Inputs (1)

string

Type: String

Outputs (1)

result

Type: Boolean

Description: True, if string is empty