go/src/unicode
Russ Cox 55ef67f2f8 unicode: change SimpleFold to handle invalid runes
Functions like ToLower and ToUpper return the invalid rune back,
so we might as well do the same here.

I changed my mind about panicking when I tried to document the behavior.

Fixes #16690 (again).

Change-Id: If1c68bfcd66daea160fd19948e7672b0e1add106
Reviewed-on: https://go-review.googlesource.com/30935
Run-TryBot: Russ Cox <rsc@golang.org>
Reviewed-by: Rob Pike <r@golang.org>
2016-10-12 18:30:29 +00:00
..
utf8 unicode/utf8: reduce bounds checks in EncodeRune 2016-09-03 20:05:36 +00:00
utf16 all: make copyright headers consistent with one space after period 2016-03-01 23:34:33 +00:00
casetables.go
digit.go
digit_test.go
example_test.go unicode: add function level examples 2015-11-24 17:13:21 +00:00
graphic.go all: single space after period. 2016-03-02 00:13:47 +00:00
graphic_test.go
letter.go unicode: change SimpleFold to handle invalid runes 2016-10-12 18:30:29 +00:00
letter_test.go unicode: change SimpleFold to handle invalid runes 2016-10-12 18:30:29 +00:00
maketables.go unicode: upgrade to version 9.0.0 2016-06-28 15:08:11 +00:00
script_test.go unicode: upgrade to version 9.0.0 2016-06-28 15:08:11 +00:00
tables.go unicode: upgrade to version 9.0.0 2016-06-28 15:08:11 +00:00