mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
further simplification of the case fold calculation.
hard to beat at this point, i think. R=rsc DELTA=38 (8 added, 21 deleted, 9 changed) OCL=34092 CL=34096
This commit is contained in:
parent
6fceadbba3
commit
427a0adb39
2 changed files with 17 additions and 30 deletions
|
|
@ -798,7 +798,7 @@ func printCaseRange(lo, hi *caseState) {
|
|||
fmt.Printf("\tCaseRange{0x%04X, 0x%04X, d{UpperLower, UpperLower, UpperLower}},\n",
|
||||
lo.point, hi.point)
|
||||
case hi.point > lo.point && lo.isLowerUpper():
|
||||
die.Log("LowerUpper sequence: should not happen: U+%04X\n", lo.point);
|
||||
die.Log("LowerUpper sequence: should not happen: U+%04X. If it's real, need to fix To()", lo.point);
|
||||
fmt.Printf("\tCaseRange{0x%04X, 0x%04X, d{LowerUpper, LowerUpper, LowerUpper}},\n",
|
||||
lo.point, hi.point)
|
||||
default:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue