decomp

command
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Nov 15, 2026 License: Apache-2.0 Imports: 13 Imported by: 0

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]

Jump to

Keyboard shortcuts

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