Documentation
¶
Overview ¶
Command decomp generates engine/decomp_tables.go, the character decomposition data of String.prototype.localeCompare: the Decomposition_Mapping field of UnicodeData.txt (canonical and compatibility mappings, one level each, with the compatibility tag) and the non-zero Canonical_Combining_Class values. Hangul syllables decompose algorithmically and are not listed.
UnicodeData.txt is downloaded from unicode.org at generation time only (-cache keeps a local copy); the output is deterministic and committed. The version matches internal/gen/ucd.
Usage (from engine/, see the go:generate line in collate.go):
go run ../internal/gen/decomp -o decomp_tables.go [-cache dir]
Click to show internal directories.
Click to hide internal directories.