Commit 2a7f1e9
authored
Fix calculation of Unicode surrogate pairs
See section 3.7 of Unicode 3.0 (later versions are not as clear regarding how to do the surrogate pairs calculation): https://www.unicode.org/versions/Unicode3.0.0/ch03.pdf
N = (H - D800_16) * 400_16 + (L - DC00_16) + 10000_16.
10000_16 is 2^16, not 2^20.1 parent b3e508f commit 2a7f1e9
1 file changed
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
47 | 47 | | |
48 | 48 | | |
49 | 49 | | |
50 | | - | |
| 50 | + | |
51 | 51 | | |
52 | 52 | | |
53 | 53 | | |
| |||
58 | 58 | | |
59 | 59 | | |
60 | 60 | | |
61 | | - | |
| 61 | + | |
62 | 62 | | |
63 | 63 | | |
64 | 64 | | |
| |||
0 commit comments