package unorm

Import Path
	github.com/freeeve/gochickpeas/internal/unorm (on go.dev)

Dependency Relation
	imports 3 packages, and imported by one package

Involved Source Files tables.go Package unorm is a self-contained Unicode normalization implementation (UAX #15): NFC, NFD, NFKC, NFKD plus the is-normalized predicate, over tables generated from the pinned UCD version (gen/main.go) -- no golang.org/x/text dependency. Verified against the full official NormalizationTest.txt conformance suite.
Package-Level Type Names (only one)
/* sort by: | */
Form is a Unicode normalization form. func ParseForm(name string) (Form, bool) func IsNormalized(s string, form Form) bool func Normalize(s string, form Form) string const NFC const NFD const NFKC const NFKD
Package-Level Functions (total 3)
IsNormalized reports whether s is in the requested form: the quick-check scan answers the common case without allocating, the rest normalize-and-compare.
Normalize returns s in the requested form, returning s itself when the quick-check scan proves it already normalized (the common case allocates nothing).
ParseForm resolves a form name (case-insensitive); ok is false for an unknown name.
Package-Level Constants (total 5)
const NFC Form = 0
const NFD Form = 1
const NFKC Form = 2
const NFKD Form = 3
UnicodeVersion is the UCD the tables were generated from.