-
Notifications
You must be signed in to change notification settings - Fork 43
Char Query Operations
Malcolm Groves edited this page Jan 9, 2014
·
8 revisions
FluentQuery supports the following operations when querying chars from a container (eg, a String, or a TList<char>):
| Operation | Bound | Unbound | Terminating | Description |
|---|---|---|---|---|
| First | Yes | Yes | Enumerate the first item, ignoring the remainder. | |
| From | Yes | From allows you to specify the source of the data you are querying. It is also From which transforms an Unbound Query into a Bound Query. | ||
| IsControl | Yes | Yes | Enumerates items that are Unicode control characters | |
| IsDigit | Yes | Yes | Enumerates items that are Unicode digits | |
| IsHighSurrogate | Yes | Yes | Enumerates items that are Unicode high surrogates | |
| IsInArray | Yes | Yes | Enumerates only items that are also found in a supplied Array of Char | |
| IsLetter | Yes | Yes | Enumerates items that are Unicode letters | |
| IsLetterOrDigit | Yes | Yes | Enumerates items that are Unicode digits or letters | |
| IsLower | Yes | Yes | Enumerates items that are lower case | |
| IsLowSurrogate | Yes | Yes | Enumerates items that are Unicode low surrogates | |
| IsNumber | Yes | Yes | Enumerates items that are Unicode numbers | |
| IsPunctuation | Yes | Yes | Enumerates items that are Unicode punctuation characters | |
| IsSeparator | Yes | Yes | Enumerates items that are Unicode separator characters | |
| IsSurrogate | Yes | Yes | Enumerates items that are Unicode surrogates | |
| IsSymbol | Yes | Yes | Enumerates items that are Unicode symbols | |
| IsUpper | Yes | Yes | Enumerates items that are upper case | |
| IsWhitespace | Yes | Yes | Enumerates items that are Unicode whitespace characters | |
| Matches | Yes | Yes | Enumerates items that match the supplied Char. Can be either case-sensitive or insensitive, but is insensitive by default. | |
| Predicate | Yes | Yes | Returns a TPredicate<Char> encapsulating the Unbound Query logic. | |
| Skip | Yes | Yes | Skip will bypass the specified number of items from the start of the enumeration, after which it will enumerate the remaining items as normal. | |
| SkipWhile | Yes | Yes | SkipWhile will bypass items at the start of the enumeration while the supplied Predicate evaluates True. Once the Predicate evaluates false, all remaining items will be enumerated as normal. | |
| Take | Yes | Yes | Take will enumerate up to the specified number of items, then ignore the remainder. | |
| TakeWhile | Yes | Yes | TakeWhile will continue enumerating items while the supplied Predicate evaluates True, after which it will ignore the remaining items. | |
| ToAString | Yes | Yes | Returns a String containing the Chars that match the query | |
| Where | Yes | Yes | Filter the items enumerated to only those that evaluate true when passed into the supplied Predicate |