String Module
Every partial pattern here returns a struct ValueOption via
[<return: Struct>]. A plain partial pattern allocates one
FSharpOption per evaluated match arm, which for patterns this small —
used in hot parse and validation loops — is the entire cost of the match.
The attribute is invisible at the use site: the syntax of a match arm
is identical either way.
Active patterns
| Active pattern |
Description
|
Full Usage:
(|EmptyOrWhiteSpace|_|) str
Parameters:
string
Returns: bool
Modifiers: inline |
Matches when the string is empty or contains only whitespace. Does not match null. The string to test.
|
Full Usage:
(|Empty|_|) str
Parameters:
string
Returns: bool
Modifiers: inline |
Matches when the string has zero length. Does not match null. The string to test.
|
Full Usage:
(|NullOrWhiteSpace|_|) str
Parameters:
string
Returns: bool
Modifiers: inline |
Matches when the string is null, empty, or whitespace. The string to test.
|
Full Usage:
(|StartsWithAny|_|) values str
Parameters:
string[]
str : string
Returns: bool
Modifiers: inline |
Matches when the string starts with any of the given values. The prefixes to check against. The string to test.
|
Full Usage:
(|WhiteSpaces|_|) str
Parameters:
string
Returns: bool
Modifiers: inline |
Matches when the string contains only whitespace characters and has length > 1. Does not match null. The string to test.
|
Full Usage:
(|WhiteSpace|_|) str
Parameters:
string
Returns: bool
Modifiers: inline |
Matches when the string is exactly a single whitespace character. Does not match null. The string to test.
|
TDesu.FSharp