functionisEmpty
Return true if a string is empty (has only white space characters)
Extends from Modelica.Icons.Function (Icon for functions).
Information
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. It is intended for ASCII, white space in UTF-8 is more complicated.
Example
isEmpty(""); // returns true
isEmpty(" "); // returns true
isEmpty(" abc"); // returns false
isEmpty("a"); // returns false
Inputs
| Type | Name | Default | Description |
|---|---|---|---|
| String | string |
Outputs
| Type | Name | Default | Description |
|---|---|---|---|
| Boolean | result | True, if string is empty |