Skip to content

String Query Operations

Malcolm Groves edited this page Jan 7, 2014 · 9 revisions

In addition to the Common Query operations, FluentQuery supports operations specific to the type being queried.

For querying strings (say, in a TStrings, or a TList<Strings>, the additional operations are:

Operation Bound Unbound Terminating Description
Matches Yes Yes Enumerates items that match the supplied string.
Contains Yes Yes Enumerates items that contain the supplied string.
StartsWith Yes Yes Enumerates items that start with the supplied string.
EndsWith Yes Yes Enumerates items that end with the supplied string.
ToTStrings Yes Yes Returns a TStrings object containing the Strings that match the query
Predicate Yes Yes Returns a TPredicate<String> encapsulating the Unbound Query logic.

Note, all String Query Operations can be either case-sensitive or case-insensitive, but are case-insensitive by default.

Clone this wiki locally