alphabet

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Jun 22, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	BINARY      = `01`
	DNA         = `ACTG`
	OCTAL       = `01234567`
	DECIMAL     = `0123456789`
	HEXADECIMAL = DECIMAL + `ABCDEF`
	LOWERCASE   = `abcdefghijklmnopqrstuvwxyz`
	UPPERCASE   = `ABCDEFGHIJKLMNOPQRSTUVWXYZ`
	BASE64      = UPPERCASE + LOWERCASE + DECIMAL + `+/`
	ASCII       = ` !"#$%&'()*+,-./` + DECIMAL + `:;<=>?@` + UPPERCASE + `[\]^_` + "`" + LOWERCASE + `{|}~`
)

Variables

This section is empty.

Functions

func NewAlphabet

func NewAlphabet(s string) *alphabet

Types

type IAlp

type IAlp interface {
	ToRune(rune) rune
	ToIndex(rune) rune
	ToIndices(s string) []rune
	Contains(rune) bool
	R() int
}

map unicode to smaller alphabet

Jump to

Keyboard shortcuts

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