ascii

package
v0.0.0-...-f022186 Latest Latest
Warning

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

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

Documentation

Overview

Package ascii contains functions for dealing with ASCII characters Note: the Is... functions are usable with cmatch

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Digit

func Digit(c byte, radix int) int

Digit returns the integer value of an ascii digit in a specified radix

func IsDigit

func IsDigit(c byte) bool

IsDigit returns whether an ASCII character is a number (0-9)

func IsHexDigit

func IsHexDigit(c byte) bool

IsHexDigit returns whether an ASCII character is a hexadecimal digit

func IsLetter

func IsLetter(c byte) bool

IsLetter returns whether an ASCII character is a letter (a-z or A-Z)

func IsLower

func IsLower(c byte) bool

IsLower returns whether an ASCII character is lower case (a-z)

func IsSpace

func IsSpace(c byte) bool

IsSpace returns whether an ASCII character is white space

func IsUpper

func IsUpper(c byte) bool

IsUpper returns whether an ASCII character is upper case (A-Z)

func ToLower

func ToLower(c byte) byte

ToLower converts an ASCII character to lower case

func ToUpper

func ToUpper(c byte) byte

ToUpper converts an ASCII character to upper case

Types

This section is empty.

Jump to

Keyboard shortcuts

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