From 28fd9fa8a6de5f5e75a3ca2eeaa55b5ae4a2722b Mon Sep 17 00:00:00 2001 From: Russ Cox Date: Wed, 8 Jan 2025 11:21:30 -0500 Subject: unicode: add CategoryAliases, Cn, LC CategoryAliases is for regexp to use, for things like \p{Letter} as an alias for \p{L}. Cn and LC are special-case categories that were never implemented but should have been. These changes were generated by the updated generator in CL 641395. Fixes #70780. Change-Id: Ibba20ff76191c8ae9631ac5ba19965790fe0cc81 Reviewed-on: https://go-review.googlesource.com/c/go/+/641376 LUCI-TryBot-Result: Go LUCI Reviewed-by: Alan Donovan --- doc/next/6-stdlib/99-minor/unicode/70780.md | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 doc/next/6-stdlib/99-minor/unicode/70780.md (limited to 'doc') diff --git a/doc/next/6-stdlib/99-minor/unicode/70780.md b/doc/next/6-stdlib/99-minor/unicode/70780.md new file mode 100644 index 0000000000..d799ca0c35 --- /dev/null +++ b/doc/next/6-stdlib/99-minor/unicode/70780.md @@ -0,0 +1,4 @@ +The new [CategoryAliases] map provides access to category alias names, such as “Letter” for “L”. +The new categories [Cn] and [LC] define unassigned codepoints and cased letters, respectively. +These have always been defined by Unicode but were inadvertently omitted in earlier versions of Go. +The [C] category now includes [Cn], meaning it has added all unassigned code points. -- cgit v1.3-5-g9baa