1
0
mirror of https://github.com/golang/go synced 2024-11-26 04:27:58 -07:00
go/src/unicode
David Benjamin 3780529255 unicode: correctly handle negative runes
Is and isExcludingLatin did not handle negative runes when dispatching
to is16. TestNegativeRune covers this along with the existing uint32
casts in IsGraphic, etc. (For tests, I picked the smallest non-Latin-1
code point in each range.)

Updates #43254

Change-Id: I17261b91f0d2b5b5125d19219411b45c480df74f
Reviewed-on: https://go-review.googlesource.com/c/go/+/280493
Run-TryBot: Rob Pike <r@golang.org>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Rob Pike <r@golang.org>
Trust: Emmanuel Odeke <emmanuel@orijtech.com>
2021-02-24 04:00:46 +00:00
..
utf8 unicode/utf8: document the handling of runes out of range in EncodeRune 2020-09-19 09:43:15 +00:00
utf16
casetables.go
digit_test.go
digit.go
example_test.go
graphic_test.go
graphic.go
letter_test.go unicode: correctly handle negative runes 2021-02-24 04:00:46 +00:00
letter.go unicode: correctly handle negative runes 2021-02-24 04:00:46 +00:00
script_test.go
tables.go