StringUtils class

Basic String functions.

Constructors

StringUtils()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

asEndingPattern(RegExp regexp) RegExp
Ensures that this regexp matches an ending of a String.
endsWithPattern(String s, Pattern pattern, {bool isEndingPattern = false}) bool
Returns true if s ends with pattern (accepts RegExp).
getHeadEquality(List<String> l, {Pattern? delimiter, int? minLength, bool validator(String s)?}) String
Returns the equals head part of l elements.
getTailEquality(List<String> l, {Pattern? delimiter, int? minLength, bool validator(String s)?}) String
Returns the equals tail part of l elements.
isDigit(String s) bool
Returns true if s is a digit.
isLetter(String s) bool
Returns true if s is a latter.
isLetterOrDigit(String s) bool
Returns true if s is a letter or digit.
isUpperCase(String s) bool
Returns true if s is a uppercase String.
normalizeAll(List<String> l, String normalizer(String s)?) List<String>
toLowerCase(String s) String
Transforms s to lower-case.
toLowerCaseSimple(String s) String
Transforms s to lower-case and removes non-letters and non-digits.
toLowerCaseSimpleCached(String s) String
Cached version of toLowerCaseSimple.
toLowerCaseSimpleUnderscored(String s) String
Transforms s to lower-case and removes non-letters, non-digits and non-underscore (_), also repeating underscores are replaced to a single one _.
toLowerCaseUnderscore(String s, {bool simple = false}) String
Transforms s to lower-case using underscore (_) before the upper-case letters.
trimEqualities(List<String> l, {Pattern? delimiter, int? minLength, bool validator(String s)?}) List<String>
trimEqualitiesMap(List<String> l, {String? delimiter, String normalizer(String s)?, bool validator(String s)?}) Map<String, String>