Documentation
¶
Overview ¶
Package ccc returns the Unicode [Canonical Combining Class] value for a codepoint.
[Canonical Combining Class: https://unicode.org/reports/tr44/#Canonical_Combining_Class_Values
Index ¶
Constants ¶
This section is empty.
Variables ¶
var ErrMaxNonStarters = fmt.Errorf("illegal input: contains a sequence of more than %d non-starters", maxSeenNonStarters)
var Transformer = transform.Transformer(orderer{})
Transformer implements the transform.Transform interface to apply the Unicode Canonical Ordering Algorithm across its input. It outputs ordered Unicode.
If the input contains more than 30 non-starters in sequence (usually this means it is a maliciously crafted input), an error is returned.
The returned transformer is stateless, so may be used concurrently.
Functions ¶
func Reorder ¶
Reorder performs the Unicode Canonical Ordering Algorithm on a slice of bytes encoding a UTF-8 sequence.
If the input contains more than 30 non-starters in sequence (usually this means it is a maliciously crafted input), an error is returned.
func ReorderRunes ¶
ReorderRunes performs the Unicode Canonical Ordering Algorithm on a slice of runes.