Interface IStringCollection
- Namespace
- AlgorithmsSW.String
- Assembly
- AlgorithmsSW.dll
Provides operations for a collection of strings (often, the keys of a symbol table).
public interface IStringCollection
- Extension Methods
Properties
SupportsEmptyKeys
bool SupportsEmptyKeys { get; }
Property Value
Methods
KeysThatMatch(string)
Returns all keys in the symbol table that match the given pattern.
IEnumerable<string> KeysThatMatch(string pattern)
Parameters
pattern
stringThe pattern used to search for keys.
Returns
KeysWithPrefix(string)
Returns all keys in the symbol table that have the given prefix.
IEnumerable<string> KeysWithPrefix(string prefix)
Parameters
prefix
stringThe prefix used to search for keys.
Returns
LongestPrefixOf(string)
Returns the longest string that is a prefix of the given string.
string? LongestPrefixOf(string str)
Parameters
str
string