| _.byteAt(str, i) | Returns the Ascii code of the i-th character in the given string |
| _.bytes(str) | Returns an array of Ascii codes for a given set of characters |
| _.camelize(str) | Converts a given string (underscored or dasherized) into camelized style |
| _.capitalize(str, i, j) | Capitalizes substring i to j in a given string
Aliased as cap.. |
| _.capitalizeFirst(str) | Capitalizes the first character of a given string. |
| _.capitalizesEach(str) | Capitalizes each word in a given string. |
| _.chars(str) | Converts a given string to an array of chars
Aliased as explode.. |
| _.chop(str, n) | Converts a string to an array of n characters
Aliased as split.. |
| _.clean(str, pat) | Clears all special characters or characters matching a given pattern inside a given string
Aliased as trim.. |
| _.count(str, sub) | Returns the number of substring occurences in a given string |
| _.dasherize(str) | Converts a given string (unerscored or camelized) into dasherized style |
| _.endsWith(str, ends) | Tests if a given string ends with a given pattern |
| _.escape(str) | Escapes any magic character in agiven string
Aliased as esc.. |
| _.humanize(str) | Converts a given string (underscored, humanized, dasherized or camelized) into a human-readable form |
| _.import([context[, noConflict]]) | Imports library functions inside a given context or the global environment. |
| _.includes(str, sub) | Tests if a given substring is included in a given string |
| _.index(str) | Indexes a string like an array, returning a character. |
| _.insert(str, substring[, index]) | Inserts a given substring at index position in a given string |
| _.is(var, expectedType) | Checks if the given input is has a known Lua type or matches an expected type. |
| _.isAlpha(str) | Checks if a given string contains only alphabetic characters |
| _.isBlank(str) | Tests if a given string contain any alphanumeric character |
| _.isEmail(str) | Checks if a given string matches an email address syntax. |
| _.isIdentifier(str) | Tests if a given substring is a valid Lua identifier for a variable
Aliased as isIden and isVarName.. |
| _.isLowerCase(str) | Tests if a given string contains only upper-case characters. |
| _.isLuaKeyword(str) | Checks if the given string is a Lua reserved keyword. |
| _.isNumeric(str) | Checks if a given string contains only digits. |
| _.isToken(str) | Tests if a given substring is a known Lua token (operator). |
| _.isUpperCase(str) | Tests if a given string contains only lower-case characters. |
| _.join(sep, ...) | Returns a string composed of a concatenation of all given arguments, separated with a given separator |
| _.levenshtein(strA, strB) | Returns the Levenshtein distance between two strings. |
| _.lines(str) | Splits a given string in an array on the basis of end-lines characters (\n and/or \r). |
| _.lower(str, i, j) | Lowers substring i to j in a given string |
| _.lowerFirst(str) | Lowers the first character in a given string |
| _.lpad(str, length, padStr) | Left-pads a given string
Aliased as rjust.. |
| _.lrpad(str, length, padStr) | Left and right padding for strings. |
| _.numberFormat(num[, decimals[, thousandSeparator[, decimalSeparator[, sign]]]]) | Formats a given number to a string |
| _.pad(str, length, padStr, side) | Pads a given string with characters |
| _.pre(str, n) | Returns the predecessor of a given character. |
| _.quote(str) | Returns a quoted string |
| _.rep(str[, count[, sep]]) | Repeats a given string concatenated with a given separator count times. |
| _.rpad(str, length, padStr) | Right-pads a given string
Aliased as ljust.. |
| _.splice(str, index, howMany, substring) | Replaces howMany characters after index position in a given string with a given substring |
| _.startsLowerCase(str) | Tests if a given string starts with a lower-case character
Aliased as startsLower.. |
| _.startsUpperCase(str) | Tests if a given string starts with an upper-case character
Aliased as startsUpper.. |
| _.startsWith(str, starts) | Tests if a given string starts with a given pattern |
| _.statistics(str, pat) | Returns a table listing counts for each match to a given pattern
Aliased as stats.. |
| _.strLeft(str, pattern) | Returns the substring before the first pattern occurence in a given string |
| _.strLeftBack(str, pattern) | Returns the substring before the last pattern occurence in a given string |
| _.strRight(str, pattern) | Returns the substring after the first pattern occurence in a given string |
| _.strRightBack(str, pattern) | Returns the substring after the last pattern occurence in a given string |
| _.substitute(str, var) | Substitutes any sequence matching ${var} or $var with a given value
Aliased as subst and interpolate.. |
| _.succ(str, n) | Returns the successor of a given character. |
| _.surround(str) | Wraps a given string |
| _.swapCase(str, i, int) | Swaps the case of each characters in substring i to j inside a given string |
| _.titleize(str) | Title-izes a given string (each word beginning with a capitalized letter) |
| _.toSentence(an[, delimiter[, lastDelimiter]]) | Converts an array of strings into a human-readable string |
| _.underscored(str) | Converts a given string (camelized or dasherized) into underscored style |
| _.words(str) | Converts a given string into an array of words |
Returns the Ascii code of the i-th character in the given string
Parameters: Returns:
Returns an array of Ascii codes for a given set of characters
Parameters:
Converts a given string (underscored or dasherized) into camelized style
Parameters:
Capitalizes substring i to j in a given string
Aliased as cap..
Parameters:
Capitalizes the first character of a given string.
Aliased as capFirst.
Capitalizes each word in a given string.
Aliased as capEach and caps.
Converts a given string to an array of chars
Aliased as explode..
Parameters:
Converts a string to an array of n characters
Aliased as split..
Parameters: Returns:
Clears all special characters or characters matching a given pattern inside a given string
Aliased as trim..
Parameters:
Returns the number of substring occurences in a given string
Parameters: Returns:
Converts a given string (unerscored or camelized) into dasherized style
Parameters:
Tests if a given string ends with a given pattern
Parameters: Returns:
Escapes any magic character in agiven string
Aliased as esc..
Parameters:
Converts a given string (underscored, humanized, dasherized or camelized) into a human-readable form
Parameters:
Imports library functions inside a given context or the global environment.
Parameters:
_G (global environment) when not given.
(optional)
Tests if a given substring is included in a given string
Parameters: Returns:
Indexes a string like an array, returning a character.
Aliased as charAt..
Inserts a given substring at index position in a given string
Parameters:
Checks if the given input is has a known Lua type or matches an expected type.
Parameters:
Checks if a given string contains only alphabetic characters
Parameters:
Tests if a given string contain any alphanumeric character
Parameters:
Checks if a given string matches an email address syntax.
Not compliant with any RFC standards though.
Parameters:Tests if a given substring is a valid Lua identifier for a variable
Aliased as isIden and isVarName..
Parameters:
Tests if a given string contains only upper-case characters.
Aliased as isLower..
Checks if the given string is a Lua reserved keyword.
Aliased as isLuaKword and isReserved..
Checks if a given string contains only digits.
Aliased as isNum..
Tests if a given substring is a known Lua token (operator).
Aliased as isOperator and isOp..
Tests if a given string contains only lower-case characters.
Aliased as isUpper..
Returns a string composed of a concatenation of all given arguments, separated with a given separator
Parameters:
Returns the Levenshtein distance between two strings.
See Levenshtein Distance on Wikipedia
Parameters:Splits a given string in an array on the basis of end-lines characters (\n and/or \r).
Parameters:
Lowers substring i to j in a given string
Parameters:
Lowers the first character in a given string
Parameters:
Left-pads a given string
Aliased as rjust..
Parameters:
Left and right padding for strings.
Aliased as center..
Formats a given number to a string
Parameters:
, when not given.
(optional)
. when not given.
(optional)
- when omitted.
(optional)
Pads a given string with characters
Parameters:
Returns the predecessor of a given character.
In case the input was a string of characters, returns a new string where each character is the predecessor of the character at the same position in the passed-in string
Parameters: Returns:Returns a quoted string
Parameters:
Repeats a given string concatenated with a given separator count times.
Parameters:
Right-pads a given string
Aliased as ljust..
Parameters:
Replaces howMany characters after index position in a given string with a given substring
Parameters:
Tests if a given string starts with a lower-case character
Aliased as startsLower..
Parameters:
Tests if a given string starts with an upper-case character
Aliased as startsUpper..
Parameters:
Tests if a given string starts with a given pattern
Parameters: Returns:
Returns a table listing counts for each match to a given pattern
Aliased as stats..
Parameters: Returns:
Returns the substring before the first pattern occurence in a given string
Parameters: Returns:
Returns the substring before the last pattern occurence in a given string
Parameters: Returns:
Returns the substring after the first pattern occurence in a given string
Parameters: Returns:
Returns the substring after the last pattern occurence in a given string
Parameters: Returns:
Substitutes any sequence matching ${var} or $var with a given value
Aliased as subst and interpolate..
Parameters:
Returns the successor of a given character.
In case the input was a string of characters, returns a new string where each character is the successor of the character at the same position in the passed-in string
Parameters: Returns:Wraps a given string
Parameters:
Swaps the case of each characters in substring i to j inside a given string
Parameters:
Title-izes a given string (each word beginning with a capitalized letter)
Parameters:
Converts an array of strings into a human-readable string
Parameters:
and when not given.
(optional)