quartet library

Constants

defaultPattern → const String
WORD

Functions

camelCase(String subject) String
Converts all characters of subject to camel case. [...]
capitalize(String subject, [bool lowerRest = false]) String
Converts the first character of subject to upper case. [...]
charAt(String subject, int position) String
Access a character from subject at specified position. [...]
codePointAt(String subject, int position) int
Get the Unicode code point value of the character at position. For a character outside the Basic Multilingual Plane (plane 0) that is composed of a surrogate pair, its combined value, an astral code point, will be returned. [...]
decapitalize(String subject) String
Converts the first character of subject to lower case. [...]
first(String subject, [int position = 1]) String
Return the first part of subject before the specified position. If no position is given, the first character will be returned. [...]
kebabCase(String subject) String
Converts all characters of subject to kebab case, aka spinal case or lisp case. [...]
last(String subject, [int length = 1]) String
Return the last length characters from subject. If no position is given, the last character will be returned. [...]
lowerCase(String subject) String
Converts all characters of subject to lower case. [...]
prune(String subject, int length, [String suffix = '...']) String
Truncates subject to a new length. Like truncate(), but does not break the words. Guarantees the truncated string to be no longer than length, if the suffix is shorter than length. [...]
runesAt(String subject, int position) String
Access a character (may be composed of a surrogate pair) from subject at specified position. [...]
slice(String subject, [int start = 0, int end]) String
Extracts from subject a string from start position up to end position. The character at end position is not included. [...]
snakeCase(String subject) String
Converts all characters of subject to snake case. [...]
substr(String subject, [int start = 0, int length]) String
Extracts from subject a string from start position a number of length characters. [...]
substring(String subject, [int start = 0, int end]) String
Extracts from subject a string from start position up to end position. The character at end position is not included. [...]
swapCase(String subject) String
Converts all lower case characters of subject to upper case and all upper case characters to lower case. [...]
titleCase(String subject, [List<String> notSplitList = const []]) String
Converts all characters of subject to title case. [...]
truncate(String subject, int length, [String suffix = '...']) String
Truncates subject to a new length. Like prune(), but doesn't care if a word is broken or not. Guarantees the truncated string to be no longer than length, if the suffix is shorter than length. [...]
upperCase(String subject) String
Converts all characters of subject to upper case. [...]
words(String subject, [Pattern customPattern = defaultPattern]) List<String>
Splits the subject into a list of words. [...]