unicode

package
v1.2.117 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 13, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	AsciiVisual = _AsciiVisual // AsciiVisual is the set of Unicode characters with visual character of ascii.
)
View Source
var ConsonantCase = func(toUpper, toLower, toTitle func(r rune) rune) unicode.SpecialCase {
	return SpecialCaseBuilder(toUpper, toLower, toTitle, Consonants...)
}
View Source
var Consonants = []rune{
	'B', 'C', 'D', 'F', 'G', 'H', 'J', 'K', 'L', 'M', 'N', 'P', 'Q', 'R', 'S', 'T', 'V', 'W', 'X', 'Y', 'Z',
	'b', 'c', 'd', 'f', 'g', 'h', 'j', 'k', 'l', 'm', 'n', 'p', 'q', 'r', 's', 't', 'v', 'w', 'x', 'y', 'z',
}
View Source
var VowelCase = func(toUpper, toLower, toTitle func(r rune) rune) unicode.SpecialCase {
	return SpecialCaseBuilder(toUpper, toLower, toTitle, Vowels...)
}
View Source
var Vowels = []rune{
	'A', 'E', 'I', 'O', 'U',
	'a', 'e', 'i', 'o', 'u',
}

Functions

func IsASCII

func IsASCII(s rune) bool

IsASCII reports whether the rune is a ASCII character.

func IsASCIIDigit

func IsASCIIDigit(r rune) bool

IsASCIIDigit reports whether the rune is an ASCII and decimal digit.

func IsASCIILower

func IsASCIILower(r rune) bool

IsASCIILower reports whether the rune is an ASCII and lower case letter.

func IsASCIIUpper

func IsASCIIUpper(r rune) bool

IsASCIIUpper reports whether the rune is an ASCII and upper case letter.

func IsConsonant

func IsConsonant(s rune) bool

IsConsonant reports whether the rune is an ASCII and consonant case letter.

func IsLatin1

func IsLatin1(s rune) bool

IsLatin1 reports whether the rune is a latin1 (ISO-8859-1) character.

func IsVowel

func IsVowel(s rune) bool

IsVowel reports whether the rune is an ASCII and vowel case letter.

func SpecialCaseBuilder

func SpecialCaseBuilder(toUpper, toLower, toTitle func(r rune) rune, points ...rune) unicode.SpecialCase

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL