String Module
Functions and values
| Function or value |
Description
|
Full Usage:
String.empty
Returns: string
|
|
Full Usage:
String.endsWithOrdinal postfix str
Parameters:
string
str : string
Returns: bool
|
|
Full Usage:
String.isNotNullOrEmpty
Returns: string -> bool
|
|
Full Usage:
String.isNotNullOrWhitespace
Returns: string -> bool
|
|
Full Usage:
String.startsWithOrdinal prefix str
Parameters:
string
str : string
Returns: bool
|
|
Full Usage:
String.visualWidth s
Parameters:
string
Returns: int
|
Returns the visual column width of a string, counting Unicode grapheme clusters. Unlike String.length, this correctly handles combining characters (e.g. diacritics) which attach to a preceding character and do not advance the visual column. Uses a fast path for pure-ASCII strings (no allocation).
|
fantomas