Module str

Source
Expand description

Predicates for strings.

Structsยง

Contains
Checks if the string contains the specified string S.
ContainsChar
Checks if the string contains the specified character C.
ContainsCharError
Represents errors that occur when the string does not contain character.
ContainsError
Represents errors that occur when the string does not contain string.
EndsWith
Checks if the string ends with the specified suffix S.
EndsWithChar
Checks if the string ends with the specified character C.
EndsWithCharError
Represents errors that occur when the string does not end with end character.
EndsWithError
Represents errors that occur when the string does not end with suffix.
IsAscii
Checks if the string is valid ASCII.
IsAsciiError
Represents errors that occur when the string is not valid ASCII.
IsTrimmed
Checks if the string is trimmed.
IsTrimmedEnd
Checks if the string is trimmed at the end.
IsTrimmedEndError
Represents errors that occur when the string is not trimmed at the end.
IsTrimmedError
Represents errors that occur when the string is not trimmed.
IsTrimmedStart
Checks if the string is trimmed at the start.
IsTrimmedStartError
Represents errors that occur when the string is not trimmed at the start.
Matchesregex
Checks if the string matches the specified pattern S.
MismatchErrorregex
Represents errors that occur when the string does not match the expected pattern.
StartsWith
Checks if the string starts with the specified prefix S.
StartsWithChar
Checks if the string starts with the specified character C.
StartsWithCharError
Represents errors that occur when the string does not start with start character.
StartsWithError
Represents errors that occur when the string does not start with prefix.