StringSearchExtensions extension
Extension methods for string searching and matching.
- on
Methods
-
getRepeatableLetter(
) → String -
Available on String, provided by the StringSearchExtensions extension
Gets the first uppercase letter for use as a repeatable index. -
isContainedInAny(
List< String> ? list, {bool caseSensitive = true}) → bool -
Available on String, provided by the StringSearchExtensions extension
Returns true if this string is contained in any item fromlist. -
isContainsAnyInList(
List< String> ? list, {bool caseSensitive = true}) → bool -
Available on String, provided by the StringSearchExtensions extension
Returns true if this string contains any item fromlist. -
isContainsAnyWord(
List< String> ? searchItems, {bool caseSensitive = false}) → bool -
Available on String, provided by the StringSearchExtensions extension
Returns true if this string contains any whole word fromsearchItems. -
isContainsCaseInsensitive(
String? find) → bool -
Available on String, provided by the StringSearchExtensions extension
Case-insensitive contains check. -
isContainsConditional(
String? find, {required bool condition}) → bool -
Available on String, provided by the StringSearchExtensions extension
Conditional contains check. -
isContainsDigits(
) → bool -
Available on String, provided by the StringSearchExtensions extension
Returns true if this string contains any digits. -
isContainsNullable(
String? find, {bool caseSensitive = true}) → bool -
Available on String, provided by the StringSearchExtensions extension
Nullable-safe contains check. -
isContainsWord(
String? find, {bool caseSensitive = false}) → bool -
Available on String, provided by the StringSearchExtensions extension
Returns true if this string containsfindas a whole word. -
isEqualsAny(
List< String> ? list, {bool caseSensitive = true}) → bool -
Available on String, provided by the StringSearchExtensions extension
Returns true if this string equals any item inlist. -
isMatchAny(
List< String> ? list, {bool caseSensitive = true, SearchMatchType matchType = SearchMatchType.contains}) → bool -
Available on String, provided by the StringSearchExtensions extension
Flexible matching against a list. -
isNotContains(
String? find) → bool -
Available on String, provided by the StringSearchExtensions extension
Returns true if this string does NOT containfind. -
isNotStartsWith(
String? find) → bool -
Available on String, provided by the StringSearchExtensions extension
Returns true if this string does NOT start withfind. -
isStartsWithAny(
List< String> ? list, {bool caseSensitive = true}) → bool -
Available on String, provided by the StringSearchExtensions extension
Returns true if this string starts with any item inlist. -
isStartsWithConditional(
String? find, {required bool isPositiveSearch}) → bool -
Available on String, provided by the StringSearchExtensions extension
Conditional startsWith check.