runes

package
v0.2.7 Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var IsAlpha = IsLetter

Alias for IsLetter

View Source
var IsNumber = IsDigit

Alias for IsDigit

View Source
var IsNumeric = IsDigit

Alias for IsDigit

Functions

func IsAlphaNumeric

func IsAlphaNumeric(r rune) bool

Check if a rune is a letter or a digit

func IsBinary

func IsBinary(r rune) bool

Check if a rune is a binary digit (0 or 1)

func IsDigit

func IsDigit(r rune) bool

Check if a rune is a digit (0-9)

func IsEof

func IsEof(r rune) bool

Check if a rune is the end of file (rune 0)

func IsHexadecimal

func IsHexadecimal(r rune) bool

Check if a rune is a hexadecimal digit (0-9, a-f or A-F)

func IsLetter

func IsLetter(r rune) bool

Check if a rune is a letter (a-z or A-Z)

func IsOctal

func IsOctal(r rune) bool

Check if a rune is an octal digit (0-7)

func IsOneOf added in v0.2.0

func IsOneOf(r rune, runes []rune) bool

Check if a rune is any of the runes in the given slice

func IsSpace added in v0.1.0

func IsSpace(r rune) bool

Check if a rune is a space (space, tab or carriage return)

func IsWhitespace

func IsWhitespace(r rune) bool

Check if a rune is a whitespace (space, tab, newline or carriage return)

Types

This section is empty.

Jump to

Keyboard shortcuts

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