mint.string - Palamecia/mint GitHub Wiki
Module mint.string
Description
load mint.string
This module provides a set of functions to perform extra operations on strings.
Functions
- isAlnum
- isAlpha
- isAscii
- isBlank
- isCapitalized
- isCntrl
- isDigit
- isGraph
- isLower
- isPrint
- isPunct
- isSpace
- isUpper
- isWord
- ltrim
- rtrim
- toCapitalized
- toLower
- toUpper
- trim
- utf8ByteCount
Descriptions
isAlnum
def (const self)
Returns true if any character in self a decimal digit or a letter; otherwise
returns false.
isAlpha
def (const self)
Returns true if any character in self a letter; otherwise returns false.
isAscii
def (const self)
Returns true if any character in self is ASCII; otherwise returns false.
isBlank
def (const self)
Returns true if any character in self a blank character; otherwise
returns false.
isCapitalized
def (const self)
Returns true if self is capitalized (the first character of each word is
uppercase and remaining characters are lowercase); otherwise returns false.
isCntrl
def (const self)
Returns true if any character in self a control character; otherwise
returns false.
isDigit
def (const self)
Returns true if any character in self a decimal digit; otherwise returns
false.
isGraph
def (const self)
Returns true if any character in self has a graphical representation;
otherwise returns false.
isLower
def (const self)
Returns true if any character in self is lowercase; otherwise
returns false.
isPrint
def (const self)
Returns true if any character in self is printable; otherwise returns
false.
isPunct
def (const self)
Returns true if any character in self is a punctuation character; otherwise
returns false.
isSpace
def (const self)
Returns true if any character in self a space character; otherwise
returns false.
isUpper
def (const self)
Returns true if any character in self is uppercase; otherwise
returns false.
isWord
def (const self)
Returns true if any character in self a decimal digit, a letter, or an
underscore ('_'); otherwise returns false.
ltrim
def (self)
Returns a new string after removing any leading whitespaces.
rtrim
def (self)
Returns a new string after removing any trailing whitespaces.
toCapitalized
def (const self)
Returns a new string after replacing each first character of each word by uppercase and remaining characters by lowercase.
toLower
def (const self)
Returns a new string after replacing each character by lowercase.
toUpper
def (const self)
Returns a new string after replacing each character by uppercase.
trim
def (self)
Returns a new string after removing any leading and trailing whitespaces.
utf8ByteCount
def (self)
Returns the amount of bytes used to represent the string using the UTF-8
encoding (excluding the trailing '\0' character).