char

package
v0.0.0-...-06dd36e Latest Latest
Warning

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

Go to latest
Published: Dec 27, 2020 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsDigit

func IsDigit(ch byte) bool

check whether the character is a digit or not

char.IsDigit('9') // true

func IsIdent

func IsIdent(ch byte) bool

check whether the character is a valid identifier suffix alphanumeric (letter/underscore/numeral) char.IsIdent('9'))

func IsIdentStart

func IsIdentStart(ch byte) bool

check whether the character is a valid identifier prefix (letter/underscore) char.IsIdentStart('-') // false char.IsIdentStart('_') // true

func IsValidFilename

func IsValidFilename(ch byte) bool

check whether the character is a safe file-name characters (alphanumeric/comma/full-stop/dash) char.IsValidFilename(' ') // output bool(true)

Types

This section is empty.

Jump to

Keyboard shortcuts

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