String Module
Functions and values
| Function or value |
Description
|
Full Usage:
String.containsIgnoreCase target text
Parameters:
string
text : string
Returns: bool
Modifiers: inline |
Check if 'text' includes the 'target' string case insensitive
|
Full Usage:
String.endsWithIgnoreCase suffix text
Parameters:
string
text : string
Returns: bool
Modifiers: inline |
Check if 'text' ends with the 'suffix' string case insensitive
|
Full Usage:
String.equalsIgnoreCase str1 str2
Parameters:
string
str2 : string
Returns: bool
Modifiers: inline |
Check if the two strings are equal ignoring case
|
Full Usage:
String.getLines str
Parameters:
string
Returns: string[]
|
|
Full Usage:
String.quoted text
Parameters:
string
Returns: string
|
|
Full Usage:
String.split sep text
Parameters:
char[]
text : string
Returns: string[]
Modifiers: inline |
|
Full Usage:
String.startsWithIgnoreCase prefix text
Parameters:
string
text : string
Returns: bool
Modifiers: inline |
Check if 'text' starts with the 'prefix' string case insensitive
|
Full Usage:
String.trim text
Parameters:
string
Returns: string
Modifiers: inline |
|
Full Usage:
String.trimChars chs text
Parameters:
char[]
text : string
Returns: string
Modifiers: inline |
|
Full Usage:
String.trimStart pre text
Parameters:
char[]
text : string
Returns: string
Modifiers: inline |
|
Active patterns
| Active pattern |
Description
|
Full Usage:
String.(|ContainsIC|_|) target str2
Parameters:
string
str2 : String
Returns: unit option
|
Match if 'text' includes the 'target' string case insensitive
|
Full Usage:
String.(|EndsWithIC|_|) suffix text
Parameters:
string
text : String
Returns: unit option
|
Match if 'text' ends with the 'suffix' string case insensitive
|
Full Usage:
String.(|EqualsIC|_|) str1 str2
Parameters:
string
str2 : String
Returns: unit option
|
|
Full Usage:
String.(|RemovePrefix|_|) prefix input
Parameters:
string
input : string
Returns: string option
|
Match if 'text' starts with the 'prefix' and return the text with the prefix removed
|
Full Usage:
String.(|StartsWithIC|_|) prefix text
Parameters:
string
text : String
Returns: unit option
|
Match if 'text' starts with the 'prefix' string case insensitive
|
Full Usage:
String.(|StartsWith|_|) prefix input
Parameters:
string
input : string
Returns: unit option
|
Match if 'text' starts with the 'prefix' string case
|
Paket