Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsAlpha ¶
func IsAlpha[T charOrRune](ch T) bool
IsAlpha check whether the character is a letter or not
C.IsDigit('a') // true C.IsDigit('Z') // true
func IsDigit ¶
func IsDigit[T charOrRune](ch T) bool
IsDigit check whether the character is a digit or not
C.IsDigit('9') // true
func IsIdent ¶
func IsIdent[T charOrRune](ch T) bool
IsIdent check whether the character is a valid identifier suffix alphanumeric (letter/underscore/numeral)
C.IsIdent('9'))
func IsIdentStart ¶
func IsIdentStart[T charOrRune](ch T) bool
IsIdentStart check whether the character is a valid identifier prefix (letter/underscore)
C.IsIdentStart('-') // false C.IsIdentStart('_') // true
func IsValidFilename ¶
func IsValidFilename[T charOrRune](ch T) bool
IsValidFilename check whether the character is a safe file-name characters (alphanumeric/comma/full-stop/dash)
C.IsValidFilename(' ') // output bool(true)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.