Comparer - IvanStoychev/IvanStoychev.Useful.String.Extensions GitHub Wiki
This is a list of all methods in the "Comparer" class. The class isn't actually accessible from the NuGet package but it is used to logically separate methods for better organization.
- Contains (IEnumerable<string> keywords)
- Contains (params string[] keywords)
- Contains (IEnumerable<char> keychars)
- Contains (params char[] keychars)
- Contains (StringComparison comparison, IEnumerable<string> keywords)
- Contains (StringComparison comparison, params string[] keywords)
- Contains (StringComparison comparison, IEnumerable<char> keychars)
- Contains (StringComparison comparison, params char[] keychars)
Introduced in version 1.0.0
Returns a boolean indicating whether any of the strings in keywords occur in this string.
Introduced in version 1.0.0
Returns a boolean indicating whether any of the strings in keywords occur in this string.
keywords is specified with the params keyword to make it easy to call this method with a variable number of strings, like so Contains("one", "two", "three", "four", "and", "etc")
.
Introduced in version 1.0.0
Returns a boolean indicating whether any of the characters in keychars occur in this string.
Introduced in version 1.0.0
Returns a boolean indicating whether any of the characters in keychars occur in this string.
keychars is specified with the params keyword to make it easy to call this method with a variable number of characters, like so Contains('o', 't', 'e', 'r', 'd', 'c')
.
Introduced in version 1.0.0
Returns a boolean indicating whether any of the strings in keywords occur in this string, using the specified comparison rules.
Introduced in version 1.0.0
Returns a boolean indicating whether any of the strings in keywords occur in this string, using the specified comparison rules.
keywords is specified with the params keyword to make it easy to call this method with a variable number of strings, like so Contains(StringComparison.Ordinal, "one", "two", "three", "four", "and", "etc")
.
Introduced in version 1.0.0
Returns a boolean indicating whether any of the characters in keychars occur in this string.
Introduced in version 1.0.0
Returns a boolean indicating whether any of the characters in keychars occur in this string, using the specified comparison rules.
keychars is specified with the params keyword to make it easy to call this method with a variable number of characters, like so Contains(StringComparison.Ordinal, 'o', 'q', 'w', 's', 'h', 'x')
.