std/unicode
import "github.com/eugenioenko/goalchemy/std/unicode"Package unicode classifies runes and maps their case using the Unicode tables of the reference Go toolchain.
const ( MaxRune = '\U0010FFFF' ReplacementChar = '�' MaxASCII = '\u007F' MaxLatin1 = 'ÿ')const Version = "17.0.0"Version is the Unicode edition the tables are derived from.
IsControl
Section titled “IsControl”func IsControl(r rune) boolIsControl reports whether r is a control character.
IsDigit
Section titled “IsDigit”func IsDigit(r rune) boolIsDigit reports whether r is a decimal digit (category Nd).
IsGraphic
Section titled “IsGraphic”func IsGraphic(r rune) boolIsGraphic reports whether r is a graphic character, including Unicode spaces.
IsLetter
Section titled “IsLetter”func IsLetter(r rune) boolIsLetter reports whether r is a letter (category L).
IsLower
Section titled “IsLower”func IsLower(r rune) boolIsLower reports whether r is a lower case letter.
IsMark
Section titled “IsMark”func IsMark(r rune) boolIsMark reports whether r is a mark (category M).
IsNumber
Section titled “IsNumber”func IsNumber(r rune) boolIsNumber reports whether r is a number (category N).
IsPrint
Section titled “IsPrint”func IsPrint(r rune) boolIsPrint reports whether r is printable as defined by Go: letters, marks, numbers, punctuation, symbols, and the ASCII space.
IsPunct
Section titled “IsPunct”func IsPunct(r rune) boolIsPunct reports whether r is punctuation (category P).
IsSpace
Section titled “IsSpace”func IsSpace(r rune) boolIsSpace reports whether r is a white space character as defined by Go.
IsSymbol
Section titled “IsSymbol”func IsSymbol(r rune) boolIsSymbol reports whether r is a symbol (category S).
IsTitle
Section titled “IsTitle”func IsTitle(r rune) boolIsTitle reports whether r is a title case letter.
IsUpper
Section titled “IsUpper”func IsUpper(r rune) boolIsUpper reports whether r is an upper case letter.
SimpleFold
Section titled “SimpleFold”func SimpleFold(r rune) runeSimpleFold iterates over the runes equivalent to r under Unicode simple case folding, returning the smallest equivalent rune greater than r, or the smallest equivalent rune if none is greater.
ToLower
Section titled “ToLower”func ToLower(r rune) runeToLower maps r to lower case.
ToTitle
Section titled “ToTitle”func ToTitle(r rune) runeToTitle maps r to title case.
ToUpper
Section titled “ToUpper”func ToUpper(r rune) runeToUpper maps r to upper case.