├── .editorconfig ├── CHANGELOG.md ├── NOTICE ├── src ├── Exception │ ├── UnicodeException.php │ ├── InvalidCodePointException.php │ └── InvalidStringException.php └── UnicodeString.php ├── composer.json ├── README.md ├── LICENSE └── res ├── ascii.php ├── lower.php ├── upper.php └── fold.php /.editorconfig: -------------------------------------------------------------------------------- 1 | root = true 2 | 3 | [*] 4 | end_of_line = lf 5 | insert_final_newline = true 6 | trim_trailing_whitespace = true 7 | indent_style = space 8 | charset = utf-8 9 | -------------------------------------------------------------------------------- /CHANGELOG.md: -------------------------------------------------------------------------------- 1 | CHANGELOG 2 | ------------- 3 | 4 | ### v2.1.0, 2025.10.17 5 | 6 | * Added static `getStringLength()` 7 | 8 | ### v2.0.0, 2021.04.13 9 | 10 | * The library was fully refactored 11 | -------------------------------------------------------------------------------- /NOTICE: -------------------------------------------------------------------------------- 1 | Opis String 2 | Copyright 2018-2021 Zindex Software 3 | 4 | This product includes software developed at 5 | Zindex Software (http://zindex.software). 6 | 7 | This software was originally developed by Marius Sarca and Sorin Sarca 8 | (Copyright 2016-2018). The copyright info was changed with the permission 9 | of the original authors. 10 | -------------------------------------------------------------------------------- /src/Exception/UnicodeException.php: -------------------------------------------------------------------------------- 1 | codePoint = $codePoint; 37 | } 38 | 39 | /** 40 | * @return mixed 41 | */ 42 | public function codePoint() 43 | { 44 | return$this->codePoint; 45 | } 46 | } 47 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | Opis String 2 | =========== 3 | [![Tests](https://github.com/opis/string/workflows/Tests/badge.svg)](https://github.com/opis/string/actions) 4 | [![Packagist Version](https://img.shields.io/packagist/v/opis/string?label=Version)](https://packagist.org/packages/opis/string) 5 | [![Packagist Downloads](https://img.shields.io/packagist/dt/opis/string?label=Downloads)](https://packagist.org/packages/opis/string) 6 | [![Packagist License](https://img.shields.io/packagist/l/opis/string?color=teal&label=License)](https://packagist.org/packages/opis/string) 7 | 8 | 9 | Multibyte strings 10 | ---------------------------- 11 | 12 | **Opis String** is a tiny library that allows you to work with multibyte encoded strings in an object-oriented manner. 13 | The library has no dependencies to *mb_string* or similar PHP extensions. 14 | 15 | ## Documentation 16 | 17 | The full documentation for this library can be found [here][documentation]. 18 | 19 | ## License 20 | 21 | **Opis String** is licensed under the [Apache License, Version 2.0][license]. 22 | 23 | ## Requirements 24 | 25 | * PHP ^7.4 || ^8.0 26 | * ext-json 27 | * ext-iconv 28 | 29 | ## Installation 30 | 31 | **Opis String** is available on [Packagist], and it can be installed from a 32 | command line interface by using [Composer]. 33 | 34 | ```bash 35 | composer require opis/string 36 | ``` 37 | 38 | Or you could directly reference it into your `composer.json` file as a dependency 39 | 40 | ```json 41 | { 42 | "require": { 43 | "opis/string": "^2.1" 44 | } 45 | } 46 | ``` 47 | 48 | [documentation]: https://opis.io/string 49 | [license]: https://www.apache.org/licenses/LICENSE-2.0 "Apache License" 50 | [Packagist]: https://packagist.org/packages/opis/string "Packagist" 51 | [Composer]: https://getcomposer.org "Composer" 52 | -------------------------------------------------------------------------------- /src/Exception/InvalidStringException.php: -------------------------------------------------------------------------------- 1 | string = $string; 43 | $this->offset = $offset; 44 | } 45 | 46 | /** 47 | * @return string 48 | */ 49 | public function string(): string 50 | { 51 | return $this->string; 52 | } 53 | 54 | /** 55 | * @return int 56 | */ 57 | public function offset(): int 58 | { 59 | return $this->offset; 60 | } 61 | } 62 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | Apache License 2 | Version 2.0, January 2004 3 | http://www.apache.org/licenses/ 4 | 5 | TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION 6 | 7 | 1. Definitions. 8 | 9 | "License" shall mean the terms and conditions for use, reproduction, 10 | and distribution as defined by Sections 1 through 9 of this document. 11 | 12 | "Licensor" shall mean the copyright owner or entity authorized by 13 | the copyright owner that is granting the License. 14 | 15 | "Legal Entity" shall mean the union of the acting entity and all 16 | other entities that control, are controlled by, or are under common 17 | control with that entity. For the purposes of this definition, 18 | "control" means (i) the power, direct or indirect, to cause the 19 | direction or management of such entity, whether by contract or 20 | otherwise, or (ii) ownership of fifty percent (50%) or more of the 21 | outstanding shares, or (iii) beneficial ownership of such entity. 22 | 23 | "You" (or "Your") shall mean an individual or Legal Entity 24 | exercising permissions granted by this License. 25 | 26 | "Source" form shall mean the preferred form for making modifications, 27 | including but not limited to software source code, documentation 28 | source, and configuration files. 29 | 30 | "Object" form shall mean any form resulting from mechanical 31 | transformation or translation of a Source form, including but 32 | not limited to compiled object code, generated documentation, 33 | and conversions to other media types. 34 | 35 | "Work" shall mean the work of authorship, whether in Source or 36 | Object form, made available under the License, as indicated by a 37 | copyright notice that is included in or attached to the work 38 | (an example is provided in the Appendix below). 39 | 40 | "Derivative Works" shall mean any work, whether in Source or Object 41 | form, that is based on (or derived from) the Work and for which the 42 | editorial revisions, annotations, elaborations, or other modifications 43 | represent, as a whole, an original work of authorship. For the purposes 44 | of this License, Derivative Works shall not include works that remain 45 | separable from, or merely link (or bind by name) to the interfaces of, 46 | the Work and Derivative Works thereof. 47 | 48 | "Contribution" shall mean any work of authorship, including 49 | the original version of the Work and any modifications or additions 50 | to that Work or Derivative Works thereof, that is intentionally 51 | submitted to Licensor for inclusion in the Work by the copyright owner 52 | or by an individual or Legal Entity authorized to submit on behalf of 53 | the copyright owner. For the purposes of this definition, "submitted" 54 | means any form of electronic, verbal, or written communication sent 55 | to the Licensor or its representatives, including but not limited to 56 | communication on electronic mailing lists, source code control systems, 57 | and issue tracking systems that are managed by, or on behalf of, the 58 | Licensor for the purpose of discussing and improving the Work, but 59 | excluding communication that is conspicuously marked or otherwise 60 | designated in writing by the copyright owner as "Not a Contribution." 61 | 62 | "Contributor" shall mean Licensor and any individual or Legal Entity 63 | on behalf of whom a Contribution has been received by Licensor and 64 | subsequently incorporated within the Work. 65 | 66 | 2. Grant of Copyright License. Subject to the terms and conditions of 67 | this License, each Contributor hereby grants to You a perpetual, 68 | worldwide, non-exclusive, no-charge, royalty-free, irrevocable 69 | copyright license to reproduce, prepare Derivative Works of, 70 | publicly display, publicly perform, sublicense, and distribute the 71 | Work and such Derivative Works in Source or Object form. 72 | 73 | 3. Grant of Patent License. Subject to the terms and conditions of 74 | this License, each Contributor hereby grants to You a perpetual, 75 | worldwide, non-exclusive, no-charge, royalty-free, irrevocable 76 | (except as stated in this section) patent license to make, have made, 77 | use, offer to sell, sell, import, and otherwise transfer the Work, 78 | where such license applies only to those patent claims licensable 79 | by such Contributor that are necessarily infringed by their 80 | Contribution(s) alone or by combination of their Contribution(s) 81 | with the Work to which such Contribution(s) was submitted. If You 82 | institute patent litigation against any entity (including a 83 | cross-claim or counterclaim in a lawsuit) alleging that the Work 84 | or a Contribution incorporated within the Work constitutes direct 85 | or contributory patent infringement, then any patent licenses 86 | granted to You under this License for that Work shall terminate 87 | as of the date such litigation is filed. 88 | 89 | 4. Redistribution. You may reproduce and distribute copies of the 90 | Work or Derivative Works thereof in any medium, with or without 91 | modifications, and in Source or Object form, provided that You 92 | meet the following conditions: 93 | 94 | (a) You must give any other recipients of the Work or 95 | Derivative Works a copy of this License; and 96 | 97 | (b) You must cause any modified files to carry prominent notices 98 | stating that You changed the files; and 99 | 100 | (c) You must retain, in the Source form of any Derivative Works 101 | that You distribute, all copyright, patent, trademark, and 102 | attribution notices from the Source form of the Work, 103 | excluding those notices that do not pertain to any part of 104 | the Derivative Works; and 105 | 106 | (d) If the Work includes a "NOTICE" text file as part of its 107 | distribution, then any Derivative Works that You distribute must 108 | include a readable copy of the attribution notices contained 109 | within such NOTICE file, excluding those notices that do not 110 | pertain to any part of the Derivative Works, in at least one 111 | of the following places: within a NOTICE text file distributed 112 | as part of the Derivative Works; within the Source form or 113 | documentation, if provided along with the Derivative Works; or, 114 | within a display generated by the Derivative Works, if and 115 | wherever such third-party notices normally appear. The contents 116 | of the NOTICE file are for informational purposes only and 117 | do not modify the License. You may add Your own attribution 118 | notices within Derivative Works that You distribute, alongside 119 | or as an addendum to the NOTICE text from the Work, provided 120 | that such additional attribution notices cannot be construed 121 | as modifying the License. 122 | 123 | You may add Your own copyright statement to Your modifications and 124 | may provide additional or different license terms and conditions 125 | for use, reproduction, or distribution of Your modifications, or 126 | for any such Derivative Works as a whole, provided Your use, 127 | reproduction, and distribution of the Work otherwise complies with 128 | the conditions stated in this License. 129 | 130 | 5. Submission of Contributions. Unless You explicitly state otherwise, 131 | any Contribution intentionally submitted for inclusion in the Work 132 | by You to the Licensor shall be under the terms and conditions of 133 | this License, without any additional terms or conditions. 134 | Notwithstanding the above, nothing herein shall supersede or modify 135 | the terms of any separate license agreement you may have executed 136 | with Licensor regarding such Contributions. 137 | 138 | 6. Trademarks. This License does not grant permission to use the trade 139 | names, trademarks, service marks, or product names of the Licensor, 140 | except as required for reasonable and customary use in describing the 141 | origin of the Work and reproducing the content of the NOTICE file. 142 | 143 | 7. Disclaimer of Warranty. Unless required by applicable law or 144 | agreed to in writing, Licensor provides the Work (and each 145 | Contributor provides its Contributions) on an "AS IS" BASIS, 146 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or 147 | implied, including, without limitation, any warranties or conditions 148 | of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A 149 | PARTICULAR PURPOSE. You are solely responsible for determining the 150 | appropriateness of using or redistributing the Work and assume any 151 | risks associated with Your exercise of permissions under this License. 152 | 153 | 8. Limitation of Liability. In no event and under no legal theory, 154 | whether in tort (including negligence), contract, or otherwise, 155 | unless required by applicable law (such as deliberate and grossly 156 | negligent acts) or agreed to in writing, shall any Contributor be 157 | liable to You for damages, including any direct, indirect, special, 158 | incidental, or consequential damages of any character arising as a 159 | result of this License or out of the use or inability to use the 160 | Work (including but not limited to damages for loss of goodwill, 161 | work stoppage, computer failure or malfunction, or any and all 162 | other commercial damages or losses), even if such Contributor 163 | has been advised of the possibility of such damages. 164 | 165 | 9. Accepting Warranty or Additional Liability. While redistributing 166 | the Work or Derivative Works thereof, You may choose to offer, 167 | and charge a fee for, acceptance of support, warranty, indemnity, 168 | or other liability obligations and/or rights consistent with this 169 | License. However, in accepting such obligations, You may act only 170 | on Your own behalf and on Your sole responsibility, not on behalf 171 | of any other Contributor, and only if You agree to indemnify, 172 | defend, and hold each Contributor harmless for any liability 173 | incurred by, or claims asserted against, such Contributor by reason 174 | of your accepting any such warranty or additional liability. 175 | 176 | END OF TERMS AND CONDITIONS 177 | -------------------------------------------------------------------------------- /res/ascii.php: -------------------------------------------------------------------------------- 1 | 0x28, 4 | 0xAA => 0x61, 5 | 0xB0 => 0x30, 6 | 0xB2 => 0x32, 7 | 0xB3 => 0x33, 8 | 0xB5 => 0x75, 9 | 0xB9 => 0x31, 10 | 0xBA => 0x6F, 11 | 0xC0 => 0x41, 12 | 0xC1 => 0x41, 13 | 0xC2 => 0x41, 14 | 0xC3 => 0x41, 15 | 0xC4 => 0x41, 16 | 0xC5 => 0x41, 17 | 0xC6 => 0x41, 18 | 0xC7 => 0x43, 19 | 0xC8 => 0x45, 20 | 0xC9 => 0x45, 21 | 0xCA => 0x45, 22 | 0xCB => 0x45, 23 | 0xCC => 0x49, 24 | 0xCD => 0x49, 25 | 0xCE => 0x49, 26 | 0xCF => 0x49, 27 | 0xD0 => 0x44, 28 | 0xD1 => 0x4E, 29 | 0xD2 => 0x4F, 30 | 0xD3 => 0x4F, 31 | 0xD4 => 0x4F, 32 | 0xD5 => 0x4F, 33 | 0xD6 => 0x4F, 34 | 0xD8 => 0x4F, 35 | 0xD9 => 0x55, 36 | 0xDA => 0x55, 37 | 0xDB => 0x55, 38 | 0xDC => 0x55, 39 | 0xDD => 0x59, 40 | 0xDE => 0x54, 41 | 0xDF => 0x73, 42 | 0xE0 => 0x61, 43 | 0xE1 => 0x61, 44 | 0xE2 => 0x61, 45 | 0xE3 => 0x61, 46 | 0xE4 => 0x61, 47 | 0xE5 => 0x61, 48 | 0xE6 => 0x61, 49 | 0xE7 => 0x63, 50 | 0xE8 => 0x65, 51 | 0xE9 => 0x65, 52 | 0xEA => 0x65, 53 | 0xEB => 0x65, 54 | 0xEC => 0x69, 55 | 0xED => 0x69, 56 | 0xEE => 0x69, 57 | 0xEF => 0x69, 58 | 0xF0 => 0x64, 59 | 0xF1 => 0x6E, 60 | 0xF2 => 0x6F, 61 | 0xF3 => 0x6F, 62 | 0xF4 => 0x6F, 63 | 0xF5 => 0x6F, 64 | 0xF6 => 0x6F, 65 | 0xF8 => 0x6F, 66 | 0xF9 => 0x75, 67 | 0xFA => 0x75, 68 | 0xFB => 0x75, 69 | 0xFC => 0x75, 70 | 0xFD => 0x79, 71 | 0xFE => 0x74, 72 | 0xFF => 0x79, 73 | 0x100 => 0x41, 74 | 0x101 => 0x61, 75 | 0x102 => 0x41, 76 | 0x103 => 0x61, 77 | 0x104 => 0x41, 78 | 0x105 => 0x61, 79 | 0x106 => 0x43, 80 | 0x107 => 0x63, 81 | 0x108 => 0x43, 82 | 0x109 => 0x63, 83 | 0x10A => 0x43, 84 | 0x10B => 0x63, 85 | 0x10C => 0x43, 86 | 0x10D => 0x63, 87 | 0x10E => 0x44, 88 | 0x10F => 0x64, 89 | 0x110 => 0x44, 90 | 0x111 => 0x64, 91 | 0x112 => 0x45, 92 | 0x113 => 0x65, 93 | 0x114 => 0x45, 94 | 0x115 => 0x65, 95 | 0x116 => 0x45, 96 | 0x117 => 0x65, 97 | 0x118 => 0x45, 98 | 0x119 => 0x65, 99 | 0x11A => 0x45, 100 | 0x11B => 0x65, 101 | 0x11C => 0x47, 102 | 0x11D => 0x67, 103 | 0x11E => 0x47, 104 | 0x11F => 0x67, 105 | 0x120 => 0x47, 106 | 0x121 => 0x67, 107 | 0x122 => 0x47, 108 | 0x123 => 0x67, 109 | 0x124 => 0x48, 110 | 0x125 => 0x68, 111 | 0x126 => 0x48, 112 | 0x127 => 0x68, 113 | 0x128 => 0x49, 114 | 0x129 => 0x69, 115 | 0x12A => 0x49, 116 | 0x12B => 0x69, 117 | 0x12C => 0x49, 118 | 0x12D => 0x69, 119 | 0x12E => 0x49, 120 | 0x12F => 0x69, 121 | 0x130 => 0x49, 122 | 0x131 => 0x69, 123 | 0x132 => 0x49, 124 | 0x133 => 0x69, 125 | 0x134 => 0x4A, 126 | 0x135 => 0x6A, 127 | 0x136 => 0x6B, 128 | 0x137 => 0x6B, 129 | 0x138 => 0x6B, 130 | 0x139 => 0x4C, 131 | 0x13A => 0x6C, 132 | 0x13B => 0x4C, 133 | 0x13C => 0x6C, 134 | 0x13D => 0x4C, 135 | 0x13E => 0x6C, 136 | 0x13F => 0x4C, 137 | 0x140 => 0x6C, 138 | 0x141 => 0x4C, 139 | 0x142 => 0x6C, 140 | 0x143 => 0x4E, 141 | 0x144 => 0x6E, 142 | 0x145 => 0x4E, 143 | 0x146 => 0x6E, 144 | 0x147 => 0x4E, 145 | 0x148 => 0x6E, 146 | 0x149 => 0x6E, 147 | 0x14A => 0x4E, 148 | 0x14B => 0x6E, 149 | 0x14C => 0x4F, 150 | 0x14D => 0x6F, 151 | 0x14E => 0x4F, 152 | 0x14F => 0x6F, 153 | 0x150 => 0x4F, 154 | 0x151 => 0x6F, 155 | 0x152 => 0x4F, 156 | 0x153 => 0x6F, 157 | 0x154 => 0x52, 158 | 0x155 => 0x72, 159 | 0x156 => 0x52, 160 | 0x157 => 0x72, 161 | 0x158 => 0x52, 162 | 0x159 => 0x72, 163 | 0x15A => 0x53, 164 | 0x15B => 0x73, 165 | 0x15C => 0x53, 166 | 0x15D => 0x73, 167 | 0x15E => 0x53, 168 | 0x15F => 0x73, 169 | 0x160 => 0x53, 170 | 0x161 => 0x73, 171 | 0x162 => 0x54, 172 | 0x163 => 0x74, 173 | 0x164 => 0x54, 174 | 0x165 => 0x74, 175 | 0x166 => 0x54, 176 | 0x167 => 0x74, 177 | 0x168 => 0x55, 178 | 0x169 => 0x75, 179 | 0x16A => 0x55, 180 | 0x16B => 0x75, 181 | 0x16C => 0x55, 182 | 0x16D => 0x75, 183 | 0x16E => 0x55, 184 | 0x16F => 0x75, 185 | 0x170 => 0x55, 186 | 0x171 => 0x75, 187 | 0x172 => 0x55, 188 | 0x173 => 0x75, 189 | 0x174 => 0x57, 190 | 0x175 => 0x77, 191 | 0x176 => 0x59, 192 | 0x177 => 0x79, 193 | 0x178 => 0x59, 194 | 0x179 => 0x5A, 195 | 0x17A => 0x7A, 196 | 0x17B => 0x5A, 197 | 0x17C => 0x7A, 198 | 0x17D => 0x5A, 199 | 0x17E => 0x7A, 200 | 0x17F => 0x73, 201 | 0x189 => 0x44, 202 | 0x18A => 0x44, 203 | 0x18B => 0x44, 204 | 0x18C => 0x64, 205 | 0x18F => 0x45, 206 | 0x192 => 0x66, 207 | 0x1A0 => 0x4F, 208 | 0x1A1 => 0x6F, 209 | 0x1AF => 0x55, 210 | 0x1B0 => 0x75, 211 | 0x1CD => 0x41, 212 | 0x1CE => 0x61, 213 | 0x1CF => 0x49, 214 | 0x1D0 => 0x69, 215 | 0x1D1 => 0x4F, 216 | 0x1D2 => 0x6F, 217 | 0x1D3 => 0x55, 218 | 0x1D4 => 0x75, 219 | 0x1D5 => 0x55, 220 | 0x1D6 => 0x75, 221 | 0x1D7 => 0x55, 222 | 0x1D8 => 0x75, 223 | 0x1D9 => 0x55, 224 | 0x1DA => 0x75, 225 | 0x1DB => 0x55, 226 | 0x1DC => 0x75, 227 | 0x1FA => 0x41, 228 | 0x1FB => 0x61, 229 | 0x1FC => 0x41, 230 | 0x1FD => 0x61, 231 | 0x1FE => 0x4F, 232 | 0x1FF => 0x6F, 233 | 0x218 => 0x53, 234 | 0x219 => 0x73, 235 | 0x21A => 0x54, 236 | 0x21B => 0x74, 237 | 0x221 => 0x64, 238 | 0x256 => 0x64, 239 | 0x257 => 0x64, 240 | 0x259 => 0x65, 241 | 0x386 => 0x41, 242 | 0x388 => 0x45, 243 | 0x389 => 0x48, 244 | 0x38A => 0x49, 245 | 0x38C => 0x4F, 246 | 0x38E => 0x59, 247 | 0x38F => 0x57, 248 | 0x390 => 0x69, 249 | 0x391 => 0x41, 250 | 0x392 => 0x42, 251 | 0x393 => 0x47, 252 | 0x394 => 0x44, 253 | 0x395 => 0x45, 254 | 0x396 => 0x5A, 255 | 0x397 => 0x48, 256 | 0x398 => 0x4F, 257 | 0x399 => 0x49, 258 | 0x39A => 0x4B, 259 | 0x39B => 0x4C, 260 | 0x39C => 0x4D, 261 | 0x39D => 0x4E, 262 | 0x39E => 0x58, 263 | 0x39F => 0x4F, 264 | 0x3A0 => 0x50, 265 | 0x3A1 => 0x52, 266 | 0x3A3 => 0x53, 267 | 0x3A4 => 0x54, 268 | 0x3A5 => 0x59, 269 | 0x3A6 => 0x46, 270 | 0x3A7 => 0x58, 271 | 0x3A8 => 0x50, 272 | 0x3A9 => 0x57, 273 | 0x3AA => 0x49, 274 | 0x3AB => 0x59, 275 | 0x3AC => 0x61, 276 | 0x3AD => 0x65, 277 | 0x3AE => 0x68, 278 | 0x3AF => 0x69, 279 | 0x3B0 => 0x79, 280 | 0x3B1 => 0x61, 281 | 0x3B2 => 0x62, 282 | 0x3B3 => 0x67, 283 | 0x3B4 => 0x64, 284 | 0x3B5 => 0x65, 285 | 0x3B6 => 0x7A, 286 | 0x3B7 => 0x68, 287 | 0x3B8 => 0x6F, 288 | 0x3B9 => 0x69, 289 | 0x3BA => 0x6B, 290 | 0x3BB => 0x6C, 291 | 0x3BC => 0x6D, 292 | 0x3BD => 0x6E, 293 | 0x3BE => 0x78, 294 | 0x3BF => 0x6F, 295 | 0x3C0 => 0x70, 296 | 0x3C1 => 0x72, 297 | 0x3C2 => 0x73, 298 | 0x3C3 => 0x73, 299 | 0x3C4 => 0x74, 300 | 0x3C5 => 0x79, 301 | 0x3C6 => 0x66, 302 | 0x3C7 => 0x78, 303 | 0x3C8 => 0x70, 304 | 0x3C9 => 0x77, 305 | 0x3CA => 0x69, 306 | 0x3CB => 0x79, 307 | 0x3CC => 0x6F, 308 | 0x3CD => 0x79, 309 | 0x3CE => 0x77, 310 | 0x3D0 => 0x76, 311 | 0x3D1 => 0x74, 312 | 0x3D2 => 0x49, 313 | 0x401 => 0x45, 314 | 0x402 => 0x44, 315 | 0x404 => 0x45, 316 | 0x406 => 0x49, 317 | 0x407 => 0x49, 318 | 0x408 => 0x6A, 319 | 0x409 => 0x4C, 320 | 0x40A => 0x4E, 321 | 0x40F => 0x44, 322 | 0x410 => 0x41, 323 | 0x411 => 0x42, 324 | 0x412 => 0x56, 325 | 0x413 => 0x47, 326 | 0x414 => 0x44, 327 | 0x415 => 0x45, 328 | 0x416 => 0x5A, 329 | 0x417 => 0x5A, 330 | 0x418 => 0x49, 331 | 0x419 => 0x59, 332 | 0x41A => 0x4B, 333 | 0x41B => 0x4C, 334 | 0x41C => 0x4D, 335 | 0x41D => 0x4E, 336 | 0x41E => 0x4F, 337 | 0x41F => 0x50, 338 | 0x420 => 0x52, 339 | 0x421 => 0x53, 340 | 0x422 => 0x54, 341 | 0x423 => 0x55, 342 | 0x424 => 0x46, 343 | 0x425 => 0x4B, 344 | 0x426 => 0x54, 345 | 0x427 => 0x43, 346 | 0x428 => 0x53, 347 | 0x429 => 0x53, 348 | 0x42A => 0x62, 349 | 0x42B => 0x59, 350 | 0x42C => 0x62, 351 | 0x42D => 0x45, 352 | 0x42E => 0x59, 353 | 0x42F => 0x59, 354 | 0x430 => 0x61, 355 | 0x431 => 0x62, 356 | 0x432 => 0x76, 357 | 0x433 => 0x67, 358 | 0x434 => 0x64, 359 | 0x435 => 0x65, 360 | 0x436 => 0x7A, 361 | 0x437 => 0x7A, 362 | 0x438 => 0x69, 363 | 0x439 => 0x79, 364 | 0x43A => 0x6B, 365 | 0x43B => 0x6C, 366 | 0x43C => 0x6D, 367 | 0x43D => 0x6E, 368 | 0x43E => 0x6F, 369 | 0x43F => 0x70, 370 | 0x440 => 0x72, 371 | 0x441 => 0x73, 372 | 0x442 => 0x74, 373 | 0x443 => 0x75, 374 | 0x444 => 0x66, 375 | 0x445 => 0x6B, 376 | 0x446 => 0x74, 377 | 0x447 => 0x63, 378 | 0x448 => 0x73, 379 | 0x449 => 0x73, 380 | 0x44B => 0x79, 381 | 0x44D => 0x65, 382 | 0x44E => 0x79, 383 | 0x44F => 0x79, 384 | 0x451 => 0x65, 385 | 0x452 => 0x64, 386 | 0x454 => 0x65, 387 | 0x456 => 0x69, 388 | 0x457 => 0x69, 389 | 0x458 => 0x6A, 390 | 0x459 => 0x6C, 391 | 0x45A => 0x6E, 392 | 0x45F => 0x64, 393 | 0x490 => 0x47, 394 | 0x491 => 0x67, 395 | 0x4E8 => 0x4F, 396 | 0x622 => 0x61, 397 | 0x623 => 0x61, 398 | 0x624 => 0x6F, 399 | 0x625 => 0x65, 400 | 0x626 => 0x65, 401 | 0x627 => 0x61, 402 | 0x628 => 0x62, 403 | 0x62A => 0x74, 404 | 0x62B => 0x74, 405 | 0x62C => 0x6A, 406 | 0x62D => 0x68, 407 | 0x62E => 0x6B, 408 | 0x62F => 0x64, 409 | 0x630 => 0x74, 410 | 0x631 => 0x72, 411 | 0x632 => 0x7A, 412 | 0x633 => 0x73, 413 | 0x634 => 0x73, 414 | 0x635 => 0x73, 415 | 0x636 => 0x64, 416 | 0x637 => 0x74, 417 | 0x638 => 0x74, 418 | 0x639 => 0x61, 419 | 0x63A => 0x67, 420 | 0x641 => 0x66, 421 | 0x642 => 0x6B, 422 | 0x643 => 0x6B, 423 | 0x644 => 0x6C, 424 | 0x645 => 0x6D, 425 | 0x646 => 0x6E, 426 | 0x647 => 0x68, 427 | 0x648 => 0x6F, 428 | 0x64A => 0x79, 429 | 0x664 => 0x34, 430 | 0x665 => 0x35, 431 | 0x666 => 0x36, 432 | 0x67E => 0x70, 433 | 0x686 => 0x63, 434 | 0x698 => 0x7A, 435 | 0x6A9 => 0x6B, 436 | 0x6AF => 0x67, 437 | 0x6CC => 0x69, 438 | 0x6F0 => 0x30, 439 | 0x6F1 => 0x31, 440 | 0x6F2 => 0x32, 441 | 0x6F3 => 0x33, 442 | 0x6F4 => 0x34, 443 | 0x6F5 => 0x35, 444 | 0x6F6 => 0x36, 445 | 0x6F7 => 0x37, 446 | 0x6F8 => 0x38, 447 | 0x6F9 => 0x39, 448 | 0x905 => 0x61, 449 | 0x906 => 0x61, 450 | 0x907 => 0x69, 451 | 0x908 => 0x69, 452 | 0x909 => 0x75, 453 | 0x90A => 0x75, 454 | 0x90D => 0x65, 455 | 0x90F => 0x65, 456 | 0x910 => 0x61, 457 | 0x911 => 0x6F, 458 | 0x912 => 0x6F, 459 | 0x913 => 0x6F, 460 | 0x92C => 0x42, 461 | 0x932 => 0x4C, 462 | 0x1000 => 0x6B, 463 | 0x1002 => 0x67, 464 | 0x1005 => 0x73, 465 | 0x1007 => 0x7A, 466 | 0x1009 => 0x75, 467 | 0x100A => 0x69, 468 | 0x100B => 0x74, 469 | 0x100D => 0x64, 470 | 0x1010 => 0x74, 471 | 0x1012 => 0x64, 472 | 0x1014 => 0x6E, 473 | 0x1015 => 0x70, 474 | 0x1017 => 0x62, 475 | 0x1019 => 0x6D, 476 | 0x101A => 0x79, 477 | 0x101C => 0x6C, 478 | 0x101D => 0x77, 479 | 0x101F => 0x68, 480 | 0x1021 => 0x61, 481 | 0x1023 => 0x69, 482 | 0x1027 => 0x65, 483 | 0x102B => 0x61, 484 | 0x102C => 0x61, 485 | 0x102D => 0x6F, 486 | 0x102E => 0x69, 487 | 0x102F => 0x75, 488 | 0x1030 => 0x75, 489 | 0x1031 => 0x65, 490 | 0x1032 => 0x65, 491 | 0x103D => 0x77, 492 | 0x103E => 0x68, 493 | 0x10D0 => 0x61, 494 | 0x10D1 => 0x62, 495 | 0x10D2 => 0x67, 496 | 0x10D3 => 0x64, 497 | 0x10D4 => 0x65, 498 | 0x10D5 => 0x76, 499 | 0x10D6 => 0x7A, 500 | 0x10D7 => 0x74, 501 | 0x10D8 => 0x69, 502 | 0x10D9 => 0x6B, 503 | 0x10DA => 0x6C, 504 | 0x10DB => 0x6D, 505 | 0x10DC => 0x6E, 506 | 0x10DD => 0x6F, 507 | 0x10DE => 0x70, 508 | 0x10DF => 0x7A, 509 | 0x10E0 => 0x72, 510 | 0x10E1 => 0x73, 511 | 0x10E2 => 0x74, 512 | 0x10E3 => 0x75, 513 | 0x10E4 => 0x66, 514 | 0x10E5 => 0x6B, 515 | 0x10E6 => 0x67, 516 | 0x10E7 => 0x71, 517 | 0x10E8 => 0x73, 518 | 0x10E9 => 0x63, 519 | 0x10EA => 0x74, 520 | 0x10EB => 0x64, 521 | 0x10EC => 0x74, 522 | 0x10ED => 0x63, 523 | 0x10EE => 0x6B, 524 | 0x10EF => 0x6A, 525 | 0x10F0 => 0x68, 526 | 0x1D05 => 0x44, 527 | 0x1D06 => 0x44, 528 | 0x1D6D => 0x64, 529 | 0x1D81 => 0x64, 530 | 0x1D91 => 0x64, 531 | 0x1E9E => 0x53, 532 | 0x1EA0 => 0x41, 533 | 0x1EA1 => 0x61, 534 | 0x1EA2 => 0x41, 535 | 0x1EA3 => 0x61, 536 | 0x1EA4 => 0x41, 537 | 0x1EA5 => 0x61, 538 | 0x1EA6 => 0x41, 539 | 0x1EA7 => 0x61, 540 | 0x1EA8 => 0x41, 541 | 0x1EA9 => 0x61, 542 | 0x1EAA => 0x41, 543 | 0x1EAB => 0x61, 544 | 0x1EAC => 0x41, 545 | 0x1EAD => 0x61, 546 | 0x1EAE => 0x41, 547 | 0x1EAF => 0x61, 548 | 0x1EB0 => 0x41, 549 | 0x1EB1 => 0x61, 550 | 0x1EB2 => 0x41, 551 | 0x1EB3 => 0x61, 552 | 0x1EB4 => 0x41, 553 | 0x1EB5 => 0x61, 554 | 0x1EB6 => 0x41, 555 | 0x1EB7 => 0x61, 556 | 0x1EB8 => 0x45, 557 | 0x1EB9 => 0x65, 558 | 0x1EBA => 0x45, 559 | 0x1EBB => 0x65, 560 | 0x1EBC => 0x45, 561 | 0x1EBD => 0x65, 562 | 0x1EBE => 0x45, 563 | 0x1EBF => 0x65, 564 | 0x1EC0 => 0x45, 565 | 0x1EC1 => 0x65, 566 | 0x1EC2 => 0x45, 567 | 0x1EC3 => 0x65, 568 | 0x1EC4 => 0x45, 569 | 0x1EC5 => 0x65, 570 | 0x1EC6 => 0x45, 571 | 0x1EC7 => 0x65, 572 | 0x1EC8 => 0x49, 573 | 0x1EC9 => 0x69, 574 | 0x1ECA => 0x49, 575 | 0x1ECB => 0x69, 576 | 0x1ECC => 0x4F, 577 | 0x1ECD => 0x6F, 578 | 0x1ECE => 0x4F, 579 | 0x1ECF => 0x6F, 580 | 0x1ED0 => 0x4F, 581 | 0x1ED1 => 0x6F, 582 | 0x1ED2 => 0x4F, 583 | 0x1ED3 => 0x6F, 584 | 0x1ED4 => 0x4F, 585 | 0x1ED5 => 0x6F, 586 | 0x1ED6 => 0x4F, 587 | 0x1ED7 => 0x6F, 588 | 0x1ED8 => 0x4F, 589 | 0x1ED9 => 0x6F, 590 | 0x1EDA => 0x4F, 591 | 0x1EDB => 0x6F, 592 | 0x1EDC => 0x4F, 593 | 0x1EDD => 0x6F, 594 | 0x1EDE => 0x4F, 595 | 0x1EDF => 0x6F, 596 | 0x1EE0 => 0x4F, 597 | 0x1EE1 => 0x6F, 598 | 0x1EE2 => 0x4F, 599 | 0x1EE3 => 0x6F, 600 | 0x1EE4 => 0x55, 601 | 0x1EE5 => 0x75, 602 | 0x1EE6 => 0x55, 603 | 0x1EE7 => 0x75, 604 | 0x1EE8 => 0x55, 605 | 0x1EE9 => 0x75, 606 | 0x1EEA => 0x55, 607 | 0x1EEB => 0x75, 608 | 0x1EEC => 0x55, 609 | 0x1EED => 0x75, 610 | 0x1EEE => 0x55, 611 | 0x1EEF => 0x75, 612 | 0x1EF0 => 0x55, 613 | 0x1EF1 => 0x75, 614 | 0x1EF2 => 0x59, 615 | 0x1EF3 => 0x79, 616 | 0x1EF4 => 0x59, 617 | 0x1EF5 => 0x79, 618 | 0x1EF6 => 0x59, 619 | 0x1EF7 => 0x79, 620 | 0x1EF8 => 0x59, 621 | 0x1EF9 => 0x79, 622 | 0x1F00 => 0x61, 623 | 0x1F01 => 0x61, 624 | 0x1F02 => 0x61, 625 | 0x1F03 => 0x61, 626 | 0x1F04 => 0x61, 627 | 0x1F05 => 0x61, 628 | 0x1F06 => 0x61, 629 | 0x1F07 => 0x61, 630 | 0x1F08 => 0x41, 631 | 0x1F09 => 0x41, 632 | 0x1F0A => 0x41, 633 | 0x1F0B => 0x41, 634 | 0x1F0C => 0x41, 635 | 0x1F0D => 0x41, 636 | 0x1F0E => 0x41, 637 | 0x1F0F => 0x41, 638 | 0x1F10 => 0x65, 639 | 0x1F11 => 0x65, 640 | 0x1F12 => 0x65, 641 | 0x1F13 => 0x65, 642 | 0x1F14 => 0x65, 643 | 0x1F15 => 0x65, 644 | 0x1F18 => 0x45, 645 | 0x1F19 => 0x45, 646 | 0x1F1A => 0x45, 647 | 0x1F1B => 0x45, 648 | 0x1F1C => 0x45, 649 | 0x1F1D => 0x45, 650 | 0x1F30 => 0x69, 651 | 0x1F31 => 0x69, 652 | 0x1F32 => 0x69, 653 | 0x1F33 => 0x69, 654 | 0x1F34 => 0x69, 655 | 0x1F35 => 0x69, 656 | 0x1F36 => 0x69, 657 | 0x1F37 => 0x69, 658 | 0x1F38 => 0x49, 659 | 0x1F39 => 0x49, 660 | 0x1F3B => 0x49, 661 | 0x1F3C => 0x49, 662 | 0x1F3D => 0x49, 663 | 0x1F3E => 0x49, 664 | 0x1F3F => 0x49, 665 | 0x1F40 => 0x6F, 666 | 0x1F41 => 0x6F, 667 | 0x1F42 => 0x6F, 668 | 0x1F43 => 0x6F, 669 | 0x1F44 => 0x6F, 670 | 0x1F45 => 0x6F, 671 | 0x1F48 => 0x4F, 672 | 0x1F49 => 0x4F, 673 | 0x1F4A => 0x4F, 674 | 0x1F4B => 0x4F, 675 | 0x1F4C => 0x4F, 676 | 0x1F4D => 0x4F, 677 | 0x1F70 => 0x61, 678 | 0x1F72 => 0x65, 679 | 0x1F76 => 0x69, 680 | 0x1F78 => 0x6F, 681 | 0x1F80 => 0x61, 682 | 0x1F81 => 0x61, 683 | 0x1F82 => 0x61, 684 | 0x1F83 => 0x61, 685 | 0x1F84 => 0x61, 686 | 0x1F85 => 0x61, 687 | 0x1F86 => 0x61, 688 | 0x1F87 => 0x61, 689 | 0x1F88 => 0x41, 690 | 0x1F89 => 0x41, 691 | 0x1F8A => 0x41, 692 | 0x1F8B => 0x41, 693 | 0x1F8C => 0x41, 694 | 0x1F8D => 0x41, 695 | 0x1F8E => 0x41, 696 | 0x1F8F => 0x41, 697 | 0x1FB0 => 0x61, 698 | 0x1FB1 => 0x61, 699 | 0x1FB2 => 0x61, 700 | 0x1FB3 => 0x61, 701 | 0x1FB4 => 0x61, 702 | 0x1FB6 => 0x61, 703 | 0x1FB7 => 0x61, 704 | 0x1FB8 => 0x41, 705 | 0x1FB9 => 0x41, 706 | 0x1FBA => 0x41, 707 | 0x1FBC => 0x41, 708 | 0x1FC8 => 0x45, 709 | 0x1FD0 => 0x69, 710 | 0x1FD1 => 0x69, 711 | 0x1FD2 => 0x69, 712 | 0x1FD6 => 0x69, 713 | 0x1FD7 => 0x69, 714 | 0x1FD8 => 0x49, 715 | 0x1FD9 => 0x49, 716 | 0x1FDA => 0x49, 717 | 0x1FE8 => 0x59, 718 | 0x1FE9 => 0x59, 719 | 0x1FEA => 0x59, 720 | 0x1FF8 => 0x4F, 721 | 0x2000 => 0x20, 722 | 0x2001 => 0x20, 723 | 0x2002 => 0x20, 724 | 0x2003 => 0x20, 725 | 0x2004 => 0x20, 726 | 0x2005 => 0x20, 727 | 0x2006 => 0x20, 728 | 0x2007 => 0x20, 729 | 0x2008 => 0x20, 730 | 0x2009 => 0x20, 731 | 0x200A => 0x20, 732 | 0x202F => 0x20, 733 | 0x205F => 0x20, 734 | 0x2074 => 0x34, 735 | 0x2075 => 0x35, 736 | 0x2076 => 0x36, 737 | 0x2077 => 0x37, 738 | 0x2078 => 0x38, 739 | 0x2079 => 0x39, 740 | 0x2080 => 0x30, 741 | 0x2081 => 0x31, 742 | 0x2082 => 0x32, 743 | 0x2083 => 0x33, 744 | 0x2084 => 0x34, 745 | 0x2085 => 0x35, 746 | 0x2086 => 0x36, 747 | 0x2087 => 0x37, 748 | 0x2088 => 0x38, 749 | 0x2089 => 0x39, 750 | 0x3000 => 0x20, 751 | ]; 752 | -------------------------------------------------------------------------------- /res/lower.php: -------------------------------------------------------------------------------- 1 | 0x61, 4 | 0x42 => 0x62, 5 | 0x43 => 0x63, 6 | 0x44 => 0x64, 7 | 0x45 => 0x65, 8 | 0x46 => 0x66, 9 | 0x47 => 0x67, 10 | 0x48 => 0x68, 11 | 0x49 => 0x69, 12 | 0x4A => 0x6A, 13 | 0x4B => 0x6B, 14 | 0x4C => 0x6C, 15 | 0x4D => 0x6D, 16 | 0x4E => 0x6E, 17 | 0x4F => 0x6F, 18 | 0x50 => 0x70, 19 | 0x51 => 0x71, 20 | 0x52 => 0x72, 21 | 0x53 => 0x73, 22 | 0x54 => 0x74, 23 | 0x55 => 0x75, 24 | 0x56 => 0x76, 25 | 0x57 => 0x77, 26 | 0x58 => 0x78, 27 | 0x59 => 0x79, 28 | 0x5A => 0x7A, 29 | 0xC0 => 0xE0, 30 | 0xC1 => 0xE1, 31 | 0xC2 => 0xE2, 32 | 0xC3 => 0xE3, 33 | 0xC4 => 0xE4, 34 | 0xC5 => 0xE5, 35 | 0xC6 => 0xE6, 36 | 0xC7 => 0xE7, 37 | 0xC8 => 0xE8, 38 | 0xC9 => 0xE9, 39 | 0xCA => 0xEA, 40 | 0xCB => 0xEB, 41 | 0xCC => 0xEC, 42 | 0xCD => 0xED, 43 | 0xCE => 0xEE, 44 | 0xCF => 0xEF, 45 | 0xD0 => 0xF0, 46 | 0xD1 => 0xF1, 47 | 0xD2 => 0xF2, 48 | 0xD3 => 0xF3, 49 | 0xD4 => 0xF4, 50 | 0xD5 => 0xF5, 51 | 0xD6 => 0xF6, 52 | 0xD8 => 0xF8, 53 | 0xD9 => 0xF9, 54 | 0xDA => 0xFA, 55 | 0xDB => 0xFB, 56 | 0xDC => 0xFC, 57 | 0xDD => 0xFD, 58 | 0xDE => 0xFE, 59 | 0x100 => 0x101, 60 | 0x102 => 0x103, 61 | 0x104 => 0x105, 62 | 0x106 => 0x107, 63 | 0x108 => 0x109, 64 | 0x10A => 0x10B, 65 | 0x10C => 0x10D, 66 | 0x10E => 0x10F, 67 | 0x110 => 0x111, 68 | 0x112 => 0x113, 69 | 0x114 => 0x115, 70 | 0x116 => 0x117, 71 | 0x118 => 0x119, 72 | 0x11A => 0x11B, 73 | 0x11C => 0x11D, 74 | 0x11E => 0x11F, 75 | 0x120 => 0x121, 76 | 0x122 => 0x123, 77 | 0x124 => 0x125, 78 | 0x126 => 0x127, 79 | 0x128 => 0x129, 80 | 0x12A => 0x12B, 81 | 0x12C => 0x12D, 82 | 0x12E => 0x12F, 83 | 0x130 => 0x69, 84 | 0x132 => 0x133, 85 | 0x134 => 0x135, 86 | 0x136 => 0x137, 87 | 0x139 => 0x13A, 88 | 0x13B => 0x13C, 89 | 0x13D => 0x13E, 90 | 0x13F => 0x140, 91 | 0x141 => 0x142, 92 | 0x143 => 0x144, 93 | 0x145 => 0x146, 94 | 0x147 => 0x148, 95 | 0x14A => 0x14B, 96 | 0x14C => 0x14D, 97 | 0x14E => 0x14F, 98 | 0x150 => 0x151, 99 | 0x152 => 0x153, 100 | 0x154 => 0x155, 101 | 0x156 => 0x157, 102 | 0x158 => 0x159, 103 | 0x15A => 0x15B, 104 | 0x15C => 0x15D, 105 | 0x15E => 0x15F, 106 | 0x160 => 0x161, 107 | 0x162 => 0x163, 108 | 0x164 => 0x165, 109 | 0x166 => 0x167, 110 | 0x168 => 0x169, 111 | 0x16A => 0x16B, 112 | 0x16C => 0x16D, 113 | 0x16E => 0x16F, 114 | 0x170 => 0x171, 115 | 0x172 => 0x173, 116 | 0x174 => 0x175, 117 | 0x176 => 0x177, 118 | 0x178 => 0xFF, 119 | 0x179 => 0x17A, 120 | 0x17B => 0x17C, 121 | 0x17D => 0x17E, 122 | 0x181 => 0x253, 123 | 0x182 => 0x183, 124 | 0x184 => 0x185, 125 | 0x186 => 0x254, 126 | 0x187 => 0x188, 127 | 0x189 => 0x256, 128 | 0x18A => 0x257, 129 | 0x18B => 0x18C, 130 | 0x18E => 0x1DD, 131 | 0x18F => 0x259, 132 | 0x190 => 0x25B, 133 | 0x191 => 0x192, 134 | 0x193 => 0x260, 135 | 0x194 => 0x263, 136 | 0x196 => 0x269, 137 | 0x197 => 0x268, 138 | 0x198 => 0x199, 139 | 0x19C => 0x26F, 140 | 0x19D => 0x272, 141 | 0x19F => 0x275, 142 | 0x1A0 => 0x1A1, 143 | 0x1A2 => 0x1A3, 144 | 0x1A4 => 0x1A5, 145 | 0x1A6 => 0x280, 146 | 0x1A7 => 0x1A8, 147 | 0x1A9 => 0x283, 148 | 0x1AC => 0x1AD, 149 | 0x1AE => 0x288, 150 | 0x1AF => 0x1B0, 151 | 0x1B1 => 0x28A, 152 | 0x1B2 => 0x28B, 153 | 0x1B3 => 0x1B4, 154 | 0x1B5 => 0x1B6, 155 | 0x1B7 => 0x292, 156 | 0x1B8 => 0x1B9, 157 | 0x1BC => 0x1BD, 158 | 0x1C4 => 0x1C6, 159 | 0x1C5 => 0x1C6, 160 | 0x1C7 => 0x1C9, 161 | 0x1C8 => 0x1C9, 162 | 0x1CA => 0x1CC, 163 | 0x1CB => 0x1CC, 164 | 0x1CD => 0x1CE, 165 | 0x1CF => 0x1D0, 166 | 0x1D1 => 0x1D2, 167 | 0x1D3 => 0x1D4, 168 | 0x1D5 => 0x1D6, 169 | 0x1D7 => 0x1D8, 170 | 0x1D9 => 0x1DA, 171 | 0x1DB => 0x1DC, 172 | 0x1DE => 0x1DF, 173 | 0x1E0 => 0x1E1, 174 | 0x1E2 => 0x1E3, 175 | 0x1E4 => 0x1E5, 176 | 0x1E6 => 0x1E7, 177 | 0x1E8 => 0x1E9, 178 | 0x1EA => 0x1EB, 179 | 0x1EC => 0x1ED, 180 | 0x1EE => 0x1EF, 181 | 0x1F1 => 0x1F3, 182 | 0x1F2 => 0x1F3, 183 | 0x1F4 => 0x1F5, 184 | 0x1F6 => 0x195, 185 | 0x1F7 => 0x1BF, 186 | 0x1F8 => 0x1F9, 187 | 0x1FA => 0x1FB, 188 | 0x1FC => 0x1FD, 189 | 0x1FE => 0x1FF, 190 | 0x200 => 0x201, 191 | 0x202 => 0x203, 192 | 0x204 => 0x205, 193 | 0x206 => 0x207, 194 | 0x208 => 0x209, 195 | 0x20A => 0x20B, 196 | 0x20C => 0x20D, 197 | 0x20E => 0x20F, 198 | 0x210 => 0x211, 199 | 0x212 => 0x213, 200 | 0x214 => 0x215, 201 | 0x216 => 0x217, 202 | 0x218 => 0x219, 203 | 0x21A => 0x21B, 204 | 0x21C => 0x21D, 205 | 0x21E => 0x21F, 206 | 0x220 => 0x19E, 207 | 0x222 => 0x223, 208 | 0x224 => 0x225, 209 | 0x226 => 0x227, 210 | 0x228 => 0x229, 211 | 0x22A => 0x22B, 212 | 0x22C => 0x22D, 213 | 0x22E => 0x22F, 214 | 0x230 => 0x231, 215 | 0x232 => 0x233, 216 | 0x23A => 0x2C65, 217 | 0x23B => 0x23C, 218 | 0x23D => 0x19A, 219 | 0x23E => 0x2C66, 220 | 0x241 => 0x242, 221 | 0x243 => 0x180, 222 | 0x244 => 0x289, 223 | 0x245 => 0x28C, 224 | 0x246 => 0x247, 225 | 0x248 => 0x249, 226 | 0x24A => 0x24B, 227 | 0x24C => 0x24D, 228 | 0x24E => 0x24F, 229 | 0x370 => 0x371, 230 | 0x372 => 0x373, 231 | 0x376 => 0x377, 232 | 0x37F => 0x3F3, 233 | 0x386 => 0x3AC, 234 | 0x388 => 0x3AD, 235 | 0x389 => 0x3AE, 236 | 0x38A => 0x3AF, 237 | 0x38C => 0x3CC, 238 | 0x38E => 0x3CD, 239 | 0x38F => 0x3CE, 240 | 0x391 => 0x3B1, 241 | 0x392 => 0x3B2, 242 | 0x393 => 0x3B3, 243 | 0x394 => 0x3B4, 244 | 0x395 => 0x3B5, 245 | 0x396 => 0x3B6, 246 | 0x397 => 0x3B7, 247 | 0x398 => 0x3B8, 248 | 0x399 => 0x3B9, 249 | 0x39A => 0x3BA, 250 | 0x39B => 0x3BB, 251 | 0x39C => 0x3BC, 252 | 0x39D => 0x3BD, 253 | 0x39E => 0x3BE, 254 | 0x39F => 0x3BF, 255 | 0x3A0 => 0x3C0, 256 | 0x3A1 => 0x3C1, 257 | 0x3A3 => 0x3C3, 258 | 0x3A4 => 0x3C4, 259 | 0x3A5 => 0x3C5, 260 | 0x3A6 => 0x3C6, 261 | 0x3A7 => 0x3C7, 262 | 0x3A8 => 0x3C8, 263 | 0x3A9 => 0x3C9, 264 | 0x3AA => 0x3CA, 265 | 0x3AB => 0x3CB, 266 | 0x3CF => 0x3D7, 267 | 0x3D8 => 0x3D9, 268 | 0x3DA => 0x3DB, 269 | 0x3DC => 0x3DD, 270 | 0x3DE => 0x3DF, 271 | 0x3E0 => 0x3E1, 272 | 0x3E2 => 0x3E3, 273 | 0x3E4 => 0x3E5, 274 | 0x3E6 => 0x3E7, 275 | 0x3E8 => 0x3E9, 276 | 0x3EA => 0x3EB, 277 | 0x3EC => 0x3ED, 278 | 0x3EE => 0x3EF, 279 | 0x3F4 => 0x3B8, 280 | 0x3F7 => 0x3F8, 281 | 0x3F9 => 0x3F2, 282 | 0x3FA => 0x3FB, 283 | 0x3FD => 0x37B, 284 | 0x3FE => 0x37C, 285 | 0x3FF => 0x37D, 286 | 0x400 => 0x450, 287 | 0x401 => 0x451, 288 | 0x402 => 0x452, 289 | 0x403 => 0x453, 290 | 0x404 => 0x454, 291 | 0x405 => 0x455, 292 | 0x406 => 0x456, 293 | 0x407 => 0x457, 294 | 0x408 => 0x458, 295 | 0x409 => 0x459, 296 | 0x40A => 0x45A, 297 | 0x40B => 0x45B, 298 | 0x40C => 0x45C, 299 | 0x40D => 0x45D, 300 | 0x40E => 0x45E, 301 | 0x40F => 0x45F, 302 | 0x410 => 0x430, 303 | 0x411 => 0x431, 304 | 0x412 => 0x432, 305 | 0x413 => 0x433, 306 | 0x414 => 0x434, 307 | 0x415 => 0x435, 308 | 0x416 => 0x436, 309 | 0x417 => 0x437, 310 | 0x418 => 0x438, 311 | 0x419 => 0x439, 312 | 0x41A => 0x43A, 313 | 0x41B => 0x43B, 314 | 0x41C => 0x43C, 315 | 0x41D => 0x43D, 316 | 0x41E => 0x43E, 317 | 0x41F => 0x43F, 318 | 0x420 => 0x440, 319 | 0x421 => 0x441, 320 | 0x422 => 0x442, 321 | 0x423 => 0x443, 322 | 0x424 => 0x444, 323 | 0x425 => 0x445, 324 | 0x426 => 0x446, 325 | 0x427 => 0x447, 326 | 0x428 => 0x448, 327 | 0x429 => 0x449, 328 | 0x42A => 0x44A, 329 | 0x42B => 0x44B, 330 | 0x42C => 0x44C, 331 | 0x42D => 0x44D, 332 | 0x42E => 0x44E, 333 | 0x42F => 0x44F, 334 | 0x460 => 0x461, 335 | 0x462 => 0x463, 336 | 0x464 => 0x465, 337 | 0x466 => 0x467, 338 | 0x468 => 0x469, 339 | 0x46A => 0x46B, 340 | 0x46C => 0x46D, 341 | 0x46E => 0x46F, 342 | 0x470 => 0x471, 343 | 0x472 => 0x473, 344 | 0x474 => 0x475, 345 | 0x476 => 0x477, 346 | 0x478 => 0x479, 347 | 0x47A => 0x47B, 348 | 0x47C => 0x47D, 349 | 0x47E => 0x47F, 350 | 0x480 => 0x481, 351 | 0x48A => 0x48B, 352 | 0x48C => 0x48D, 353 | 0x48E => 0x48F, 354 | 0x490 => 0x491, 355 | 0x492 => 0x493, 356 | 0x494 => 0x495, 357 | 0x496 => 0x497, 358 | 0x498 => 0x499, 359 | 0x49A => 0x49B, 360 | 0x49C => 0x49D, 361 | 0x49E => 0x49F, 362 | 0x4A0 => 0x4A1, 363 | 0x4A2 => 0x4A3, 364 | 0x4A4 => 0x4A5, 365 | 0x4A6 => 0x4A7, 366 | 0x4A8 => 0x4A9, 367 | 0x4AA => 0x4AB, 368 | 0x4AC => 0x4AD, 369 | 0x4AE => 0x4AF, 370 | 0x4B0 => 0x4B1, 371 | 0x4B2 => 0x4B3, 372 | 0x4B4 => 0x4B5, 373 | 0x4B6 => 0x4B7, 374 | 0x4B8 => 0x4B9, 375 | 0x4BA => 0x4BB, 376 | 0x4BC => 0x4BD, 377 | 0x4BE => 0x4BF, 378 | 0x4C0 => 0x4CF, 379 | 0x4C1 => 0x4C2, 380 | 0x4C3 => 0x4C4, 381 | 0x4C5 => 0x4C6, 382 | 0x4C7 => 0x4C8, 383 | 0x4C9 => 0x4CA, 384 | 0x4CB => 0x4CC, 385 | 0x4CD => 0x4CE, 386 | 0x4D0 => 0x4D1, 387 | 0x4D2 => 0x4D3, 388 | 0x4D4 => 0x4D5, 389 | 0x4D6 => 0x4D7, 390 | 0x4D8 => 0x4D9, 391 | 0x4DA => 0x4DB, 392 | 0x4DC => 0x4DD, 393 | 0x4DE => 0x4DF, 394 | 0x4E0 => 0x4E1, 395 | 0x4E2 => 0x4E3, 396 | 0x4E4 => 0x4E5, 397 | 0x4E6 => 0x4E7, 398 | 0x4E8 => 0x4E9, 399 | 0x4EA => 0x4EB, 400 | 0x4EC => 0x4ED, 401 | 0x4EE => 0x4EF, 402 | 0x4F0 => 0x4F1, 403 | 0x4F2 => 0x4F3, 404 | 0x4F4 => 0x4F5, 405 | 0x4F6 => 0x4F7, 406 | 0x4F8 => 0x4F9, 407 | 0x4FA => 0x4FB, 408 | 0x4FC => 0x4FD, 409 | 0x4FE => 0x4FF, 410 | 0x500 => 0x501, 411 | 0x502 => 0x503, 412 | 0x504 => 0x505, 413 | 0x506 => 0x507, 414 | 0x508 => 0x509, 415 | 0x50A => 0x50B, 416 | 0x50C => 0x50D, 417 | 0x50E => 0x50F, 418 | 0x510 => 0x511, 419 | 0x512 => 0x513, 420 | 0x514 => 0x515, 421 | 0x516 => 0x517, 422 | 0x518 => 0x519, 423 | 0x51A => 0x51B, 424 | 0x51C => 0x51D, 425 | 0x51E => 0x51F, 426 | 0x520 => 0x521, 427 | 0x522 => 0x523, 428 | 0x524 => 0x525, 429 | 0x526 => 0x527, 430 | 0x528 => 0x529, 431 | 0x52A => 0x52B, 432 | 0x52C => 0x52D, 433 | 0x52E => 0x52F, 434 | 0x531 => 0x561, 435 | 0x532 => 0x562, 436 | 0x533 => 0x563, 437 | 0x534 => 0x564, 438 | 0x535 => 0x565, 439 | 0x536 => 0x566, 440 | 0x537 => 0x567, 441 | 0x538 => 0x568, 442 | 0x539 => 0x569, 443 | 0x53A => 0x56A, 444 | 0x53B => 0x56B, 445 | 0x53C => 0x56C, 446 | 0x53D => 0x56D, 447 | 0x53E => 0x56E, 448 | 0x53F => 0x56F, 449 | 0x540 => 0x570, 450 | 0x541 => 0x571, 451 | 0x542 => 0x572, 452 | 0x543 => 0x573, 453 | 0x544 => 0x574, 454 | 0x545 => 0x575, 455 | 0x546 => 0x576, 456 | 0x547 => 0x577, 457 | 0x548 => 0x578, 458 | 0x549 => 0x579, 459 | 0x54A => 0x57A, 460 | 0x54B => 0x57B, 461 | 0x54C => 0x57C, 462 | 0x54D => 0x57D, 463 | 0x54E => 0x57E, 464 | 0x54F => 0x57F, 465 | 0x550 => 0x580, 466 | 0x551 => 0x581, 467 | 0x552 => 0x582, 468 | 0x553 => 0x583, 469 | 0x554 => 0x584, 470 | 0x555 => 0x585, 471 | 0x556 => 0x586, 472 | 0x10A0 => 0x2D00, 473 | 0x10A1 => 0x2D01, 474 | 0x10A2 => 0x2D02, 475 | 0x10A3 => 0x2D03, 476 | 0x10A4 => 0x2D04, 477 | 0x10A5 => 0x2D05, 478 | 0x10A6 => 0x2D06, 479 | 0x10A7 => 0x2D07, 480 | 0x10A8 => 0x2D08, 481 | 0x10A9 => 0x2D09, 482 | 0x10AA => 0x2D0A, 483 | 0x10AB => 0x2D0B, 484 | 0x10AC => 0x2D0C, 485 | 0x10AD => 0x2D0D, 486 | 0x10AE => 0x2D0E, 487 | 0x10AF => 0x2D0F, 488 | 0x10B0 => 0x2D10, 489 | 0x10B1 => 0x2D11, 490 | 0x10B2 => 0x2D12, 491 | 0x10B3 => 0x2D13, 492 | 0x10B4 => 0x2D14, 493 | 0x10B5 => 0x2D15, 494 | 0x10B6 => 0x2D16, 495 | 0x10B7 => 0x2D17, 496 | 0x10B8 => 0x2D18, 497 | 0x10B9 => 0x2D19, 498 | 0x10BA => 0x2D1A, 499 | 0x10BB => 0x2D1B, 500 | 0x10BC => 0x2D1C, 501 | 0x10BD => 0x2D1D, 502 | 0x10BE => 0x2D1E, 503 | 0x10BF => 0x2D1F, 504 | 0x10C0 => 0x2D20, 505 | 0x10C1 => 0x2D21, 506 | 0x10C2 => 0x2D22, 507 | 0x10C3 => 0x2D23, 508 | 0x10C4 => 0x2D24, 509 | 0x10C5 => 0x2D25, 510 | 0x10C7 => 0x2D27, 511 | 0x10CD => 0x2D2D, 512 | 0x13A0 => 0xAB70, 513 | 0x13A1 => 0xAB71, 514 | 0x13A2 => 0xAB72, 515 | 0x13A3 => 0xAB73, 516 | 0x13A4 => 0xAB74, 517 | 0x13A5 => 0xAB75, 518 | 0x13A6 => 0xAB76, 519 | 0x13A7 => 0xAB77, 520 | 0x13A8 => 0xAB78, 521 | 0x13A9 => 0xAB79, 522 | 0x13AA => 0xAB7A, 523 | 0x13AB => 0xAB7B, 524 | 0x13AC => 0xAB7C, 525 | 0x13AD => 0xAB7D, 526 | 0x13AE => 0xAB7E, 527 | 0x13AF => 0xAB7F, 528 | 0x13B0 => 0xAB80, 529 | 0x13B1 => 0xAB81, 530 | 0x13B2 => 0xAB82, 531 | 0x13B3 => 0xAB83, 532 | 0x13B4 => 0xAB84, 533 | 0x13B5 => 0xAB85, 534 | 0x13B6 => 0xAB86, 535 | 0x13B7 => 0xAB87, 536 | 0x13B8 => 0xAB88, 537 | 0x13B9 => 0xAB89, 538 | 0x13BA => 0xAB8A, 539 | 0x13BB => 0xAB8B, 540 | 0x13BC => 0xAB8C, 541 | 0x13BD => 0xAB8D, 542 | 0x13BE => 0xAB8E, 543 | 0x13BF => 0xAB8F, 544 | 0x13C0 => 0xAB90, 545 | 0x13C1 => 0xAB91, 546 | 0x13C2 => 0xAB92, 547 | 0x13C3 => 0xAB93, 548 | 0x13C4 => 0xAB94, 549 | 0x13C5 => 0xAB95, 550 | 0x13C6 => 0xAB96, 551 | 0x13C7 => 0xAB97, 552 | 0x13C8 => 0xAB98, 553 | 0x13C9 => 0xAB99, 554 | 0x13CA => 0xAB9A, 555 | 0x13CB => 0xAB9B, 556 | 0x13CC => 0xAB9C, 557 | 0x13CD => 0xAB9D, 558 | 0x13CE => 0xAB9E, 559 | 0x13CF => 0xAB9F, 560 | 0x13D0 => 0xABA0, 561 | 0x13D1 => 0xABA1, 562 | 0x13D2 => 0xABA2, 563 | 0x13D3 => 0xABA3, 564 | 0x13D4 => 0xABA4, 565 | 0x13D5 => 0xABA5, 566 | 0x13D6 => 0xABA6, 567 | 0x13D7 => 0xABA7, 568 | 0x13D8 => 0xABA8, 569 | 0x13D9 => 0xABA9, 570 | 0x13DA => 0xABAA, 571 | 0x13DB => 0xABAB, 572 | 0x13DC => 0xABAC, 573 | 0x13DD => 0xABAD, 574 | 0x13DE => 0xABAE, 575 | 0x13DF => 0xABAF, 576 | 0x13E0 => 0xABB0, 577 | 0x13E1 => 0xABB1, 578 | 0x13E2 => 0xABB2, 579 | 0x13E3 => 0xABB3, 580 | 0x13E4 => 0xABB4, 581 | 0x13E5 => 0xABB5, 582 | 0x13E6 => 0xABB6, 583 | 0x13E7 => 0xABB7, 584 | 0x13E8 => 0xABB8, 585 | 0x13E9 => 0xABB9, 586 | 0x13EA => 0xABBA, 587 | 0x13EB => 0xABBB, 588 | 0x13EC => 0xABBC, 589 | 0x13ED => 0xABBD, 590 | 0x13EE => 0xABBE, 591 | 0x13EF => 0xABBF, 592 | 0x13F0 => 0x13F8, 593 | 0x13F1 => 0x13F9, 594 | 0x13F2 => 0x13FA, 595 | 0x13F3 => 0x13FB, 596 | 0x13F4 => 0x13FC, 597 | 0x13F5 => 0x13FD, 598 | 0x1C90 => 0x10D0, 599 | 0x1C91 => 0x10D1, 600 | 0x1C92 => 0x10D2, 601 | 0x1C93 => 0x10D3, 602 | 0x1C94 => 0x10D4, 603 | 0x1C95 => 0x10D5, 604 | 0x1C96 => 0x10D6, 605 | 0x1C97 => 0x10D7, 606 | 0x1C98 => 0x10D8, 607 | 0x1C99 => 0x10D9, 608 | 0x1C9A => 0x10DA, 609 | 0x1C9B => 0x10DB, 610 | 0x1C9C => 0x10DC, 611 | 0x1C9D => 0x10DD, 612 | 0x1C9E => 0x10DE, 613 | 0x1C9F => 0x10DF, 614 | 0x1CA0 => 0x10E0, 615 | 0x1CA1 => 0x10E1, 616 | 0x1CA2 => 0x10E2, 617 | 0x1CA3 => 0x10E3, 618 | 0x1CA4 => 0x10E4, 619 | 0x1CA5 => 0x10E5, 620 | 0x1CA6 => 0x10E6, 621 | 0x1CA7 => 0x10E7, 622 | 0x1CA8 => 0x10E8, 623 | 0x1CA9 => 0x10E9, 624 | 0x1CAA => 0x10EA, 625 | 0x1CAB => 0x10EB, 626 | 0x1CAC => 0x10EC, 627 | 0x1CAD => 0x10ED, 628 | 0x1CAE => 0x10EE, 629 | 0x1CAF => 0x10EF, 630 | 0x1CB0 => 0x10F0, 631 | 0x1CB1 => 0x10F1, 632 | 0x1CB2 => 0x10F2, 633 | 0x1CB3 => 0x10F3, 634 | 0x1CB4 => 0x10F4, 635 | 0x1CB5 => 0x10F5, 636 | 0x1CB6 => 0x10F6, 637 | 0x1CB7 => 0x10F7, 638 | 0x1CB8 => 0x10F8, 639 | 0x1CB9 => 0x10F9, 640 | 0x1CBA => 0x10FA, 641 | 0x1CBD => 0x10FD, 642 | 0x1CBE => 0x10FE, 643 | 0x1CBF => 0x10FF, 644 | 0x1E00 => 0x1E01, 645 | 0x1E02 => 0x1E03, 646 | 0x1E04 => 0x1E05, 647 | 0x1E06 => 0x1E07, 648 | 0x1E08 => 0x1E09, 649 | 0x1E0A => 0x1E0B, 650 | 0x1E0C => 0x1E0D, 651 | 0x1E0E => 0x1E0F, 652 | 0x1E10 => 0x1E11, 653 | 0x1E12 => 0x1E13, 654 | 0x1E14 => 0x1E15, 655 | 0x1E16 => 0x1E17, 656 | 0x1E18 => 0x1E19, 657 | 0x1E1A => 0x1E1B, 658 | 0x1E1C => 0x1E1D, 659 | 0x1E1E => 0x1E1F, 660 | 0x1E20 => 0x1E21, 661 | 0x1E22 => 0x1E23, 662 | 0x1E24 => 0x1E25, 663 | 0x1E26 => 0x1E27, 664 | 0x1E28 => 0x1E29, 665 | 0x1E2A => 0x1E2B, 666 | 0x1E2C => 0x1E2D, 667 | 0x1E2E => 0x1E2F, 668 | 0x1E30 => 0x1E31, 669 | 0x1E32 => 0x1E33, 670 | 0x1E34 => 0x1E35, 671 | 0x1E36 => 0x1E37, 672 | 0x1E38 => 0x1E39, 673 | 0x1E3A => 0x1E3B, 674 | 0x1E3C => 0x1E3D, 675 | 0x1E3E => 0x1E3F, 676 | 0x1E40 => 0x1E41, 677 | 0x1E42 => 0x1E43, 678 | 0x1E44 => 0x1E45, 679 | 0x1E46 => 0x1E47, 680 | 0x1E48 => 0x1E49, 681 | 0x1E4A => 0x1E4B, 682 | 0x1E4C => 0x1E4D, 683 | 0x1E4E => 0x1E4F, 684 | 0x1E50 => 0x1E51, 685 | 0x1E52 => 0x1E53, 686 | 0x1E54 => 0x1E55, 687 | 0x1E56 => 0x1E57, 688 | 0x1E58 => 0x1E59, 689 | 0x1E5A => 0x1E5B, 690 | 0x1E5C => 0x1E5D, 691 | 0x1E5E => 0x1E5F, 692 | 0x1E60 => 0x1E61, 693 | 0x1E62 => 0x1E63, 694 | 0x1E64 => 0x1E65, 695 | 0x1E66 => 0x1E67, 696 | 0x1E68 => 0x1E69, 697 | 0x1E6A => 0x1E6B, 698 | 0x1E6C => 0x1E6D, 699 | 0x1E6E => 0x1E6F, 700 | 0x1E70 => 0x1E71, 701 | 0x1E72 => 0x1E73, 702 | 0x1E74 => 0x1E75, 703 | 0x1E76 => 0x1E77, 704 | 0x1E78 => 0x1E79, 705 | 0x1E7A => 0x1E7B, 706 | 0x1E7C => 0x1E7D, 707 | 0x1E7E => 0x1E7F, 708 | 0x1E80 => 0x1E81, 709 | 0x1E82 => 0x1E83, 710 | 0x1E84 => 0x1E85, 711 | 0x1E86 => 0x1E87, 712 | 0x1E88 => 0x1E89, 713 | 0x1E8A => 0x1E8B, 714 | 0x1E8C => 0x1E8D, 715 | 0x1E8E => 0x1E8F, 716 | 0x1E90 => 0x1E91, 717 | 0x1E92 => 0x1E93, 718 | 0x1E94 => 0x1E95, 719 | 0x1E9E => 0xDF, 720 | 0x1EA0 => 0x1EA1, 721 | 0x1EA2 => 0x1EA3, 722 | 0x1EA4 => 0x1EA5, 723 | 0x1EA6 => 0x1EA7, 724 | 0x1EA8 => 0x1EA9, 725 | 0x1EAA => 0x1EAB, 726 | 0x1EAC => 0x1EAD, 727 | 0x1EAE => 0x1EAF, 728 | 0x1EB0 => 0x1EB1, 729 | 0x1EB2 => 0x1EB3, 730 | 0x1EB4 => 0x1EB5, 731 | 0x1EB6 => 0x1EB7, 732 | 0x1EB8 => 0x1EB9, 733 | 0x1EBA => 0x1EBB, 734 | 0x1EBC => 0x1EBD, 735 | 0x1EBE => 0x1EBF, 736 | 0x1EC0 => 0x1EC1, 737 | 0x1EC2 => 0x1EC3, 738 | 0x1EC4 => 0x1EC5, 739 | 0x1EC6 => 0x1EC7, 740 | 0x1EC8 => 0x1EC9, 741 | 0x1ECA => 0x1ECB, 742 | 0x1ECC => 0x1ECD, 743 | 0x1ECE => 0x1ECF, 744 | 0x1ED0 => 0x1ED1, 745 | 0x1ED2 => 0x1ED3, 746 | 0x1ED4 => 0x1ED5, 747 | 0x1ED6 => 0x1ED7, 748 | 0x1ED8 => 0x1ED9, 749 | 0x1EDA => 0x1EDB, 750 | 0x1EDC => 0x1EDD, 751 | 0x1EDE => 0x1EDF, 752 | 0x1EE0 => 0x1EE1, 753 | 0x1EE2 => 0x1EE3, 754 | 0x1EE4 => 0x1EE5, 755 | 0x1EE6 => 0x1EE7, 756 | 0x1EE8 => 0x1EE9, 757 | 0x1EEA => 0x1EEB, 758 | 0x1EEC => 0x1EED, 759 | 0x1EEE => 0x1EEF, 760 | 0x1EF0 => 0x1EF1, 761 | 0x1EF2 => 0x1EF3, 762 | 0x1EF4 => 0x1EF5, 763 | 0x1EF6 => 0x1EF7, 764 | 0x1EF8 => 0x1EF9, 765 | 0x1EFA => 0x1EFB, 766 | 0x1EFC => 0x1EFD, 767 | 0x1EFE => 0x1EFF, 768 | 0x1F08 => 0x1F00, 769 | 0x1F09 => 0x1F01, 770 | 0x1F0A => 0x1F02, 771 | 0x1F0B => 0x1F03, 772 | 0x1F0C => 0x1F04, 773 | 0x1F0D => 0x1F05, 774 | 0x1F0E => 0x1F06, 775 | 0x1F0F => 0x1F07, 776 | 0x1F18 => 0x1F10, 777 | 0x1F19 => 0x1F11, 778 | 0x1F1A => 0x1F12, 779 | 0x1F1B => 0x1F13, 780 | 0x1F1C => 0x1F14, 781 | 0x1F1D => 0x1F15, 782 | 0x1F28 => 0x1F20, 783 | 0x1F29 => 0x1F21, 784 | 0x1F2A => 0x1F22, 785 | 0x1F2B => 0x1F23, 786 | 0x1F2C => 0x1F24, 787 | 0x1F2D => 0x1F25, 788 | 0x1F2E => 0x1F26, 789 | 0x1F2F => 0x1F27, 790 | 0x1F38 => 0x1F30, 791 | 0x1F39 => 0x1F31, 792 | 0x1F3A => 0x1F32, 793 | 0x1F3B => 0x1F33, 794 | 0x1F3C => 0x1F34, 795 | 0x1F3D => 0x1F35, 796 | 0x1F3E => 0x1F36, 797 | 0x1F3F => 0x1F37, 798 | 0x1F48 => 0x1F40, 799 | 0x1F49 => 0x1F41, 800 | 0x1F4A => 0x1F42, 801 | 0x1F4B => 0x1F43, 802 | 0x1F4C => 0x1F44, 803 | 0x1F4D => 0x1F45, 804 | 0x1F59 => 0x1F51, 805 | 0x1F5B => 0x1F53, 806 | 0x1F5D => 0x1F55, 807 | 0x1F5F => 0x1F57, 808 | 0x1F68 => 0x1F60, 809 | 0x1F69 => 0x1F61, 810 | 0x1F6A => 0x1F62, 811 | 0x1F6B => 0x1F63, 812 | 0x1F6C => 0x1F64, 813 | 0x1F6D => 0x1F65, 814 | 0x1F6E => 0x1F66, 815 | 0x1F6F => 0x1F67, 816 | 0x1F88 => 0x1F80, 817 | 0x1F89 => 0x1F81, 818 | 0x1F8A => 0x1F82, 819 | 0x1F8B => 0x1F83, 820 | 0x1F8C => 0x1F84, 821 | 0x1F8D => 0x1F85, 822 | 0x1F8E => 0x1F86, 823 | 0x1F8F => 0x1F87, 824 | 0x1F98 => 0x1F90, 825 | 0x1F99 => 0x1F91, 826 | 0x1F9A => 0x1F92, 827 | 0x1F9B => 0x1F93, 828 | 0x1F9C => 0x1F94, 829 | 0x1F9D => 0x1F95, 830 | 0x1F9E => 0x1F96, 831 | 0x1F9F => 0x1F97, 832 | 0x1FA8 => 0x1FA0, 833 | 0x1FA9 => 0x1FA1, 834 | 0x1FAA => 0x1FA2, 835 | 0x1FAB => 0x1FA3, 836 | 0x1FAC => 0x1FA4, 837 | 0x1FAD => 0x1FA5, 838 | 0x1FAE => 0x1FA6, 839 | 0x1FAF => 0x1FA7, 840 | 0x1FB8 => 0x1FB0, 841 | 0x1FB9 => 0x1FB1, 842 | 0x1FBA => 0x1F70, 843 | 0x1FBB => 0x1F71, 844 | 0x1FBC => 0x1FB3, 845 | 0x1FC8 => 0x1F72, 846 | 0x1FC9 => 0x1F73, 847 | 0x1FCA => 0x1F74, 848 | 0x1FCB => 0x1F75, 849 | 0x1FCC => 0x1FC3, 850 | 0x1FD8 => 0x1FD0, 851 | 0x1FD9 => 0x1FD1, 852 | 0x1FDA => 0x1F76, 853 | 0x1FDB => 0x1F77, 854 | 0x1FE8 => 0x1FE0, 855 | 0x1FE9 => 0x1FE1, 856 | 0x1FEA => 0x1F7A, 857 | 0x1FEB => 0x1F7B, 858 | 0x1FEC => 0x1FE5, 859 | 0x1FF8 => 0x1F78, 860 | 0x1FF9 => 0x1F79, 861 | 0x1FFA => 0x1F7C, 862 | 0x1FFB => 0x1F7D, 863 | 0x1FFC => 0x1FF3, 864 | 0x2126 => 0x3C9, 865 | 0x212A => 0x6B, 866 | 0x212B => 0xE5, 867 | 0x2132 => 0x214E, 868 | 0x2160 => 0x2170, 869 | 0x2161 => 0x2171, 870 | 0x2162 => 0x2172, 871 | 0x2163 => 0x2173, 872 | 0x2164 => 0x2174, 873 | 0x2165 => 0x2175, 874 | 0x2166 => 0x2176, 875 | 0x2167 => 0x2177, 876 | 0x2168 => 0x2178, 877 | 0x2169 => 0x2179, 878 | 0x216A => 0x217A, 879 | 0x216B => 0x217B, 880 | 0x216C => 0x217C, 881 | 0x216D => 0x217D, 882 | 0x216E => 0x217E, 883 | 0x216F => 0x217F, 884 | 0x2183 => 0x2184, 885 | 0x24B6 => 0x24D0, 886 | 0x24B7 => 0x24D1, 887 | 0x24B8 => 0x24D2, 888 | 0x24B9 => 0x24D3, 889 | 0x24BA => 0x24D4, 890 | 0x24BB => 0x24D5, 891 | 0x24BC => 0x24D6, 892 | 0x24BD => 0x24D7, 893 | 0x24BE => 0x24D8, 894 | 0x24BF => 0x24D9, 895 | 0x24C0 => 0x24DA, 896 | 0x24C1 => 0x24DB, 897 | 0x24C2 => 0x24DC, 898 | 0x24C3 => 0x24DD, 899 | 0x24C4 => 0x24DE, 900 | 0x24C5 => 0x24DF, 901 | 0x24C6 => 0x24E0, 902 | 0x24C7 => 0x24E1, 903 | 0x24C8 => 0x24E2, 904 | 0x24C9 => 0x24E3, 905 | 0x24CA => 0x24E4, 906 | 0x24CB => 0x24E5, 907 | 0x24CC => 0x24E6, 908 | 0x24CD => 0x24E7, 909 | 0x24CE => 0x24E8, 910 | 0x24CF => 0x24E9, 911 | 0x2C00 => 0x2C30, 912 | 0x2C01 => 0x2C31, 913 | 0x2C02 => 0x2C32, 914 | 0x2C03 => 0x2C33, 915 | 0x2C04 => 0x2C34, 916 | 0x2C05 => 0x2C35, 917 | 0x2C06 => 0x2C36, 918 | 0x2C07 => 0x2C37, 919 | 0x2C08 => 0x2C38, 920 | 0x2C09 => 0x2C39, 921 | 0x2C0A => 0x2C3A, 922 | 0x2C0B => 0x2C3B, 923 | 0x2C0C => 0x2C3C, 924 | 0x2C0D => 0x2C3D, 925 | 0x2C0E => 0x2C3E, 926 | 0x2C0F => 0x2C3F, 927 | 0x2C10 => 0x2C40, 928 | 0x2C11 => 0x2C41, 929 | 0x2C12 => 0x2C42, 930 | 0x2C13 => 0x2C43, 931 | 0x2C14 => 0x2C44, 932 | 0x2C15 => 0x2C45, 933 | 0x2C16 => 0x2C46, 934 | 0x2C17 => 0x2C47, 935 | 0x2C18 => 0x2C48, 936 | 0x2C19 => 0x2C49, 937 | 0x2C1A => 0x2C4A, 938 | 0x2C1B => 0x2C4B, 939 | 0x2C1C => 0x2C4C, 940 | 0x2C1D => 0x2C4D, 941 | 0x2C1E => 0x2C4E, 942 | 0x2C1F => 0x2C4F, 943 | 0x2C20 => 0x2C50, 944 | 0x2C21 => 0x2C51, 945 | 0x2C22 => 0x2C52, 946 | 0x2C23 => 0x2C53, 947 | 0x2C24 => 0x2C54, 948 | 0x2C25 => 0x2C55, 949 | 0x2C26 => 0x2C56, 950 | 0x2C27 => 0x2C57, 951 | 0x2C28 => 0x2C58, 952 | 0x2C29 => 0x2C59, 953 | 0x2C2A => 0x2C5A, 954 | 0x2C2B => 0x2C5B, 955 | 0x2C2C => 0x2C5C, 956 | 0x2C2D => 0x2C5D, 957 | 0x2C2E => 0x2C5E, 958 | 0x2C60 => 0x2C61, 959 | 0x2C62 => 0x26B, 960 | 0x2C63 => 0x1D7D, 961 | 0x2C64 => 0x27D, 962 | 0x2C67 => 0x2C68, 963 | 0x2C69 => 0x2C6A, 964 | 0x2C6B => 0x2C6C, 965 | 0x2C6D => 0x251, 966 | 0x2C6E => 0x271, 967 | 0x2C6F => 0x250, 968 | 0x2C70 => 0x252, 969 | 0x2C72 => 0x2C73, 970 | 0x2C75 => 0x2C76, 971 | 0x2C7E => 0x23F, 972 | 0x2C7F => 0x240, 973 | 0x2C80 => 0x2C81, 974 | 0x2C82 => 0x2C83, 975 | 0x2C84 => 0x2C85, 976 | 0x2C86 => 0x2C87, 977 | 0x2C88 => 0x2C89, 978 | 0x2C8A => 0x2C8B, 979 | 0x2C8C => 0x2C8D, 980 | 0x2C8E => 0x2C8F, 981 | 0x2C90 => 0x2C91, 982 | 0x2C92 => 0x2C93, 983 | 0x2C94 => 0x2C95, 984 | 0x2C96 => 0x2C97, 985 | 0x2C98 => 0x2C99, 986 | 0x2C9A => 0x2C9B, 987 | 0x2C9C => 0x2C9D, 988 | 0x2C9E => 0x2C9F, 989 | 0x2CA0 => 0x2CA1, 990 | 0x2CA2 => 0x2CA3, 991 | 0x2CA4 => 0x2CA5, 992 | 0x2CA6 => 0x2CA7, 993 | 0x2CA8 => 0x2CA9, 994 | 0x2CAA => 0x2CAB, 995 | 0x2CAC => 0x2CAD, 996 | 0x2CAE => 0x2CAF, 997 | 0x2CB0 => 0x2CB1, 998 | 0x2CB2 => 0x2CB3, 999 | 0x2CB4 => 0x2CB5, 1000 | 0x2CB6 => 0x2CB7, 1001 | 0x2CB8 => 0x2CB9, 1002 | 0x2CBA => 0x2CBB, 1003 | 0x2CBC => 0x2CBD, 1004 | 0x2CBE => 0x2CBF, 1005 | 0x2CC0 => 0x2CC1, 1006 | 0x2CC2 => 0x2CC3, 1007 | 0x2CC4 => 0x2CC5, 1008 | 0x2CC6 => 0x2CC7, 1009 | 0x2CC8 => 0x2CC9, 1010 | 0x2CCA => 0x2CCB, 1011 | 0x2CCC => 0x2CCD, 1012 | 0x2CCE => 0x2CCF, 1013 | 0x2CD0 => 0x2CD1, 1014 | 0x2CD2 => 0x2CD3, 1015 | 0x2CD4 => 0x2CD5, 1016 | 0x2CD6 => 0x2CD7, 1017 | 0x2CD8 => 0x2CD9, 1018 | 0x2CDA => 0x2CDB, 1019 | 0x2CDC => 0x2CDD, 1020 | 0x2CDE => 0x2CDF, 1021 | 0x2CE0 => 0x2CE1, 1022 | 0x2CE2 => 0x2CE3, 1023 | 0x2CEB => 0x2CEC, 1024 | 0x2CED => 0x2CEE, 1025 | 0x2CF2 => 0x2CF3, 1026 | 0xA640 => 0xA641, 1027 | 0xA642 => 0xA643, 1028 | 0xA644 => 0xA645, 1029 | 0xA646 => 0xA647, 1030 | 0xA648 => 0xA649, 1031 | 0xA64A => 0xA64B, 1032 | 0xA64C => 0xA64D, 1033 | 0xA64E => 0xA64F, 1034 | 0xA650 => 0xA651, 1035 | 0xA652 => 0xA653, 1036 | 0xA654 => 0xA655, 1037 | 0xA656 => 0xA657, 1038 | 0xA658 => 0xA659, 1039 | 0xA65A => 0xA65B, 1040 | 0xA65C => 0xA65D, 1041 | 0xA65E => 0xA65F, 1042 | 0xA660 => 0xA661, 1043 | 0xA662 => 0xA663, 1044 | 0xA664 => 0xA665, 1045 | 0xA666 => 0xA667, 1046 | 0xA668 => 0xA669, 1047 | 0xA66A => 0xA66B, 1048 | 0xA66C => 0xA66D, 1049 | 0xA680 => 0xA681, 1050 | 0xA682 => 0xA683, 1051 | 0xA684 => 0xA685, 1052 | 0xA686 => 0xA687, 1053 | 0xA688 => 0xA689, 1054 | 0xA68A => 0xA68B, 1055 | 0xA68C => 0xA68D, 1056 | 0xA68E => 0xA68F, 1057 | 0xA690 => 0xA691, 1058 | 0xA692 => 0xA693, 1059 | 0xA694 => 0xA695, 1060 | 0xA696 => 0xA697, 1061 | 0xA698 => 0xA699, 1062 | 0xA69A => 0xA69B, 1063 | 0xA722 => 0xA723, 1064 | 0xA724 => 0xA725, 1065 | 0xA726 => 0xA727, 1066 | 0xA728 => 0xA729, 1067 | 0xA72A => 0xA72B, 1068 | 0xA72C => 0xA72D, 1069 | 0xA72E => 0xA72F, 1070 | 0xA732 => 0xA733, 1071 | 0xA734 => 0xA735, 1072 | 0xA736 => 0xA737, 1073 | 0xA738 => 0xA739, 1074 | 0xA73A => 0xA73B, 1075 | 0xA73C => 0xA73D, 1076 | 0xA73E => 0xA73F, 1077 | 0xA740 => 0xA741, 1078 | 0xA742 => 0xA743, 1079 | 0xA744 => 0xA745, 1080 | 0xA746 => 0xA747, 1081 | 0xA748 => 0xA749, 1082 | 0xA74A => 0xA74B, 1083 | 0xA74C => 0xA74D, 1084 | 0xA74E => 0xA74F, 1085 | 0xA750 => 0xA751, 1086 | 0xA752 => 0xA753, 1087 | 0xA754 => 0xA755, 1088 | 0xA756 => 0xA757, 1089 | 0xA758 => 0xA759, 1090 | 0xA75A => 0xA75B, 1091 | 0xA75C => 0xA75D, 1092 | 0xA75E => 0xA75F, 1093 | 0xA760 => 0xA761, 1094 | 0xA762 => 0xA763, 1095 | 0xA764 => 0xA765, 1096 | 0xA766 => 0xA767, 1097 | 0xA768 => 0xA769, 1098 | 0xA76A => 0xA76B, 1099 | 0xA76C => 0xA76D, 1100 | 0xA76E => 0xA76F, 1101 | 0xA779 => 0xA77A, 1102 | 0xA77B => 0xA77C, 1103 | 0xA77D => 0x1D79, 1104 | 0xA77E => 0xA77F, 1105 | 0xA780 => 0xA781, 1106 | 0xA782 => 0xA783, 1107 | 0xA784 => 0xA785, 1108 | 0xA786 => 0xA787, 1109 | 0xA78B => 0xA78C, 1110 | 0xA78D => 0x265, 1111 | 0xA790 => 0xA791, 1112 | 0xA792 => 0xA793, 1113 | 0xA796 => 0xA797, 1114 | 0xA798 => 0xA799, 1115 | 0xA79A => 0xA79B, 1116 | 0xA79C => 0xA79D, 1117 | 0xA79E => 0xA79F, 1118 | 0xA7A0 => 0xA7A1, 1119 | 0xA7A2 => 0xA7A3, 1120 | 0xA7A4 => 0xA7A5, 1121 | 0xA7A6 => 0xA7A7, 1122 | 0xA7A8 => 0xA7A9, 1123 | 0xA7AA => 0x266, 1124 | 0xA7AB => 0x25C, 1125 | 0xA7AC => 0x261, 1126 | 0xA7AD => 0x26C, 1127 | 0xA7AE => 0x26A, 1128 | 0xA7B0 => 0x29E, 1129 | 0xA7B1 => 0x287, 1130 | 0xA7B2 => 0x29D, 1131 | 0xA7B3 => 0xAB53, 1132 | 0xA7B4 => 0xA7B5, 1133 | 0xA7B6 => 0xA7B7, 1134 | 0xA7B8 => 0xA7B9, 1135 | 0xA7BA => 0xA7BB, 1136 | 0xA7BC => 0xA7BD, 1137 | 0xA7BE => 0xA7BF, 1138 | 0xA7C2 => 0xA7C3, 1139 | 0xA7C4 => 0xA794, 1140 | 0xA7C5 => 0x282, 1141 | 0xA7C6 => 0x1D8E, 1142 | 0xA7C7 => 0xA7C8, 1143 | 0xA7C9 => 0xA7CA, 1144 | 0xA7F5 => 0xA7F6, 1145 | 0xFF21 => 0xFF41, 1146 | 0xFF22 => 0xFF42, 1147 | 0xFF23 => 0xFF43, 1148 | 0xFF24 => 0xFF44, 1149 | 0xFF25 => 0xFF45, 1150 | 0xFF26 => 0xFF46, 1151 | 0xFF27 => 0xFF47, 1152 | 0xFF28 => 0xFF48, 1153 | 0xFF29 => 0xFF49, 1154 | 0xFF2A => 0xFF4A, 1155 | 0xFF2B => 0xFF4B, 1156 | 0xFF2C => 0xFF4C, 1157 | 0xFF2D => 0xFF4D, 1158 | 0xFF2E => 0xFF4E, 1159 | 0xFF2F => 0xFF4F, 1160 | 0xFF30 => 0xFF50, 1161 | 0xFF31 => 0xFF51, 1162 | 0xFF32 => 0xFF52, 1163 | 0xFF33 => 0xFF53, 1164 | 0xFF34 => 0xFF54, 1165 | 0xFF35 => 0xFF55, 1166 | 0xFF36 => 0xFF56, 1167 | 0xFF37 => 0xFF57, 1168 | 0xFF38 => 0xFF58, 1169 | 0xFF39 => 0xFF59, 1170 | 0xFF3A => 0xFF5A, 1171 | 0x10400 => 0x10428, 1172 | 0x10401 => 0x10429, 1173 | 0x10402 => 0x1042A, 1174 | 0x10403 => 0x1042B, 1175 | 0x10404 => 0x1042C, 1176 | 0x10405 => 0x1042D, 1177 | 0x10406 => 0x1042E, 1178 | 0x10407 => 0x1042F, 1179 | 0x10408 => 0x10430, 1180 | 0x10409 => 0x10431, 1181 | 0x1040A => 0x10432, 1182 | 0x1040B => 0x10433, 1183 | 0x1040C => 0x10434, 1184 | 0x1040D => 0x10435, 1185 | 0x1040E => 0x10436, 1186 | 0x1040F => 0x10437, 1187 | 0x10410 => 0x10438, 1188 | 0x10411 => 0x10439, 1189 | 0x10412 => 0x1043A, 1190 | 0x10413 => 0x1043B, 1191 | 0x10414 => 0x1043C, 1192 | 0x10415 => 0x1043D, 1193 | 0x10416 => 0x1043E, 1194 | 0x10417 => 0x1043F, 1195 | 0x10418 => 0x10440, 1196 | 0x10419 => 0x10441, 1197 | 0x1041A => 0x10442, 1198 | 0x1041B => 0x10443, 1199 | 0x1041C => 0x10444, 1200 | 0x1041D => 0x10445, 1201 | 0x1041E => 0x10446, 1202 | 0x1041F => 0x10447, 1203 | 0x10420 => 0x10448, 1204 | 0x10421 => 0x10449, 1205 | 0x10422 => 0x1044A, 1206 | 0x10423 => 0x1044B, 1207 | 0x10424 => 0x1044C, 1208 | 0x10425 => 0x1044D, 1209 | 0x10426 => 0x1044E, 1210 | 0x10427 => 0x1044F, 1211 | 0x104B0 => 0x104D8, 1212 | 0x104B1 => 0x104D9, 1213 | 0x104B2 => 0x104DA, 1214 | 0x104B3 => 0x104DB, 1215 | 0x104B4 => 0x104DC, 1216 | 0x104B5 => 0x104DD, 1217 | 0x104B6 => 0x104DE, 1218 | 0x104B7 => 0x104DF, 1219 | 0x104B8 => 0x104E0, 1220 | 0x104B9 => 0x104E1, 1221 | 0x104BA => 0x104E2, 1222 | 0x104BB => 0x104E3, 1223 | 0x104BC => 0x104E4, 1224 | 0x104BD => 0x104E5, 1225 | 0x104BE => 0x104E6, 1226 | 0x104BF => 0x104E7, 1227 | 0x104C0 => 0x104E8, 1228 | 0x104C1 => 0x104E9, 1229 | 0x104C2 => 0x104EA, 1230 | 0x104C3 => 0x104EB, 1231 | 0x104C4 => 0x104EC, 1232 | 0x104C5 => 0x104ED, 1233 | 0x104C6 => 0x104EE, 1234 | 0x104C7 => 0x104EF, 1235 | 0x104C8 => 0x104F0, 1236 | 0x104C9 => 0x104F1, 1237 | 0x104CA => 0x104F2, 1238 | 0x104CB => 0x104F3, 1239 | 0x104CC => 0x104F4, 1240 | 0x104CD => 0x104F5, 1241 | 0x104CE => 0x104F6, 1242 | 0x104CF => 0x104F7, 1243 | 0x104D0 => 0x104F8, 1244 | 0x104D1 => 0x104F9, 1245 | 0x104D2 => 0x104FA, 1246 | 0x104D3 => 0x104FB, 1247 | 0x10C80 => 0x10CC0, 1248 | 0x10C81 => 0x10CC1, 1249 | 0x10C82 => 0x10CC2, 1250 | 0x10C83 => 0x10CC3, 1251 | 0x10C84 => 0x10CC4, 1252 | 0x10C85 => 0x10CC5, 1253 | 0x10C86 => 0x10CC6, 1254 | 0x10C87 => 0x10CC7, 1255 | 0x10C88 => 0x10CC8, 1256 | 0x10C89 => 0x10CC9, 1257 | 0x10C8A => 0x10CCA, 1258 | 0x10C8B => 0x10CCB, 1259 | 0x10C8C => 0x10CCC, 1260 | 0x10C8D => 0x10CCD, 1261 | 0x10C8E => 0x10CCE, 1262 | 0x10C8F => 0x10CCF, 1263 | 0x10C90 => 0x10CD0, 1264 | 0x10C91 => 0x10CD1, 1265 | 0x10C92 => 0x10CD2, 1266 | 0x10C93 => 0x10CD3, 1267 | 0x10C94 => 0x10CD4, 1268 | 0x10C95 => 0x10CD5, 1269 | 0x10C96 => 0x10CD6, 1270 | 0x10C97 => 0x10CD7, 1271 | 0x10C98 => 0x10CD8, 1272 | 0x10C99 => 0x10CD9, 1273 | 0x10C9A => 0x10CDA, 1274 | 0x10C9B => 0x10CDB, 1275 | 0x10C9C => 0x10CDC, 1276 | 0x10C9D => 0x10CDD, 1277 | 0x10C9E => 0x10CDE, 1278 | 0x10C9F => 0x10CDF, 1279 | 0x10CA0 => 0x10CE0, 1280 | 0x10CA1 => 0x10CE1, 1281 | 0x10CA2 => 0x10CE2, 1282 | 0x10CA3 => 0x10CE3, 1283 | 0x10CA4 => 0x10CE4, 1284 | 0x10CA5 => 0x10CE5, 1285 | 0x10CA6 => 0x10CE6, 1286 | 0x10CA7 => 0x10CE7, 1287 | 0x10CA8 => 0x10CE8, 1288 | 0x10CA9 => 0x10CE9, 1289 | 0x10CAA => 0x10CEA, 1290 | 0x10CAB => 0x10CEB, 1291 | 0x10CAC => 0x10CEC, 1292 | 0x10CAD => 0x10CED, 1293 | 0x10CAE => 0x10CEE, 1294 | 0x10CAF => 0x10CEF, 1295 | 0x10CB0 => 0x10CF0, 1296 | 0x10CB1 => 0x10CF1, 1297 | 0x10CB2 => 0x10CF2, 1298 | 0x118A0 => 0x118C0, 1299 | 0x118A1 => 0x118C1, 1300 | 0x118A2 => 0x118C2, 1301 | 0x118A3 => 0x118C3, 1302 | 0x118A4 => 0x118C4, 1303 | 0x118A5 => 0x118C5, 1304 | 0x118A6 => 0x118C6, 1305 | 0x118A7 => 0x118C7, 1306 | 0x118A8 => 0x118C8, 1307 | 0x118A9 => 0x118C9, 1308 | 0x118AA => 0x118CA, 1309 | 0x118AB => 0x118CB, 1310 | 0x118AC => 0x118CC, 1311 | 0x118AD => 0x118CD, 1312 | 0x118AE => 0x118CE, 1313 | 0x118AF => 0x118CF, 1314 | 0x118B0 => 0x118D0, 1315 | 0x118B1 => 0x118D1, 1316 | 0x118B2 => 0x118D2, 1317 | 0x118B3 => 0x118D3, 1318 | 0x118B4 => 0x118D4, 1319 | 0x118B5 => 0x118D5, 1320 | 0x118B6 => 0x118D6, 1321 | 0x118B7 => 0x118D7, 1322 | 0x118B8 => 0x118D8, 1323 | 0x118B9 => 0x118D9, 1324 | 0x118BA => 0x118DA, 1325 | 0x118BB => 0x118DB, 1326 | 0x118BC => 0x118DC, 1327 | 0x118BD => 0x118DD, 1328 | 0x118BE => 0x118DE, 1329 | 0x118BF => 0x118DF, 1330 | 0x16E40 => 0x16E60, 1331 | 0x16E41 => 0x16E61, 1332 | 0x16E42 => 0x16E62, 1333 | 0x16E43 => 0x16E63, 1334 | 0x16E44 => 0x16E64, 1335 | 0x16E45 => 0x16E65, 1336 | 0x16E46 => 0x16E66, 1337 | 0x16E47 => 0x16E67, 1338 | 0x16E48 => 0x16E68, 1339 | 0x16E49 => 0x16E69, 1340 | 0x16E4A => 0x16E6A, 1341 | 0x16E4B => 0x16E6B, 1342 | 0x16E4C => 0x16E6C, 1343 | 0x16E4D => 0x16E6D, 1344 | 0x16E4E => 0x16E6E, 1345 | 0x16E4F => 0x16E6F, 1346 | 0x16E50 => 0x16E70, 1347 | 0x16E51 => 0x16E71, 1348 | 0x16E52 => 0x16E72, 1349 | 0x16E53 => 0x16E73, 1350 | 0x16E54 => 0x16E74, 1351 | 0x16E55 => 0x16E75, 1352 | 0x16E56 => 0x16E76, 1353 | 0x16E57 => 0x16E77, 1354 | 0x16E58 => 0x16E78, 1355 | 0x16E59 => 0x16E79, 1356 | 0x16E5A => 0x16E7A, 1357 | 0x16E5B => 0x16E7B, 1358 | 0x16E5C => 0x16E7C, 1359 | 0x16E5D => 0x16E7D, 1360 | 0x16E5E => 0x16E7E, 1361 | 0x16E5F => 0x16E7F, 1362 | 0x1E900 => 0x1E922, 1363 | 0x1E901 => 0x1E923, 1364 | 0x1E902 => 0x1E924, 1365 | 0x1E903 => 0x1E925, 1366 | 0x1E904 => 0x1E926, 1367 | 0x1E905 => 0x1E927, 1368 | 0x1E906 => 0x1E928, 1369 | 0x1E907 => 0x1E929, 1370 | 0x1E908 => 0x1E92A, 1371 | 0x1E909 => 0x1E92B, 1372 | 0x1E90A => 0x1E92C, 1373 | 0x1E90B => 0x1E92D, 1374 | 0x1E90C => 0x1E92E, 1375 | 0x1E90D => 0x1E92F, 1376 | 0x1E90E => 0x1E930, 1377 | 0x1E90F => 0x1E931, 1378 | 0x1E910 => 0x1E932, 1379 | 0x1E911 => 0x1E933, 1380 | 0x1E912 => 0x1E934, 1381 | 0x1E913 => 0x1E935, 1382 | 0x1E914 => 0x1E936, 1383 | 0x1E915 => 0x1E937, 1384 | 0x1E916 => 0x1E938, 1385 | 0x1E917 => 0x1E939, 1386 | 0x1E918 => 0x1E93A, 1387 | 0x1E919 => 0x1E93B, 1388 | 0x1E91A => 0x1E93C, 1389 | 0x1E91B => 0x1E93D, 1390 | 0x1E91C => 0x1E93E, 1391 | 0x1E91D => 0x1E93F, 1392 | 0x1E91E => 0x1E940, 1393 | 0x1E91F => 0x1E941, 1394 | 0x1E920 => 0x1E942, 1395 | 0x1E921 => 0x1E943, 1396 | ]; 1397 | -------------------------------------------------------------------------------- /res/upper.php: -------------------------------------------------------------------------------- 1 | 0x41, 4 | 0x62 => 0x42, 5 | 0x63 => 0x43, 6 | 0x64 => 0x44, 7 | 0x65 => 0x45, 8 | 0x66 => 0x46, 9 | 0x67 => 0x47, 10 | 0x68 => 0x48, 11 | 0x69 => 0x49, 12 | 0x6A => 0x4A, 13 | 0x6B => 0x4B, 14 | 0x6C => 0x4C, 15 | 0x6D => 0x4D, 16 | 0x6E => 0x4E, 17 | 0x6F => 0x4F, 18 | 0x70 => 0x50, 19 | 0x71 => 0x51, 20 | 0x72 => 0x52, 21 | 0x73 => 0x53, 22 | 0x74 => 0x54, 23 | 0x75 => 0x55, 24 | 0x76 => 0x56, 25 | 0x77 => 0x57, 26 | 0x78 => 0x58, 27 | 0x79 => 0x59, 28 | 0x7A => 0x5A, 29 | 0xB5 => 0x39C, 30 | 0xE0 => 0xC0, 31 | 0xE1 => 0xC1, 32 | 0xE2 => 0xC2, 33 | 0xE3 => 0xC3, 34 | 0xE4 => 0xC4, 35 | 0xE5 => 0xC5, 36 | 0xE6 => 0xC6, 37 | 0xE7 => 0xC7, 38 | 0xE8 => 0xC8, 39 | 0xE9 => 0xC9, 40 | 0xEA => 0xCA, 41 | 0xEB => 0xCB, 42 | 0xEC => 0xCC, 43 | 0xED => 0xCD, 44 | 0xEE => 0xCE, 45 | 0xEF => 0xCF, 46 | 0xF0 => 0xD0, 47 | 0xF1 => 0xD1, 48 | 0xF2 => 0xD2, 49 | 0xF3 => 0xD3, 50 | 0xF4 => 0xD4, 51 | 0xF5 => 0xD5, 52 | 0xF6 => 0xD6, 53 | 0xF8 => 0xD8, 54 | 0xF9 => 0xD9, 55 | 0xFA => 0xDA, 56 | 0xFB => 0xDB, 57 | 0xFC => 0xDC, 58 | 0xFD => 0xDD, 59 | 0xFE => 0xDE, 60 | 0xFF => 0x178, 61 | 0x101 => 0x100, 62 | 0x103 => 0x102, 63 | 0x105 => 0x104, 64 | 0x107 => 0x106, 65 | 0x109 => 0x108, 66 | 0x10B => 0x10A, 67 | 0x10D => 0x10C, 68 | 0x10F => 0x10E, 69 | 0x111 => 0x110, 70 | 0x113 => 0x112, 71 | 0x115 => 0x114, 72 | 0x117 => 0x116, 73 | 0x119 => 0x118, 74 | 0x11B => 0x11A, 75 | 0x11D => 0x11C, 76 | 0x11F => 0x11E, 77 | 0x121 => 0x120, 78 | 0x123 => 0x122, 79 | 0x125 => 0x124, 80 | 0x127 => 0x126, 81 | 0x129 => 0x128, 82 | 0x12B => 0x12A, 83 | 0x12D => 0x12C, 84 | 0x12F => 0x12E, 85 | 0x131 => 0x49, 86 | 0x133 => 0x132, 87 | 0x135 => 0x134, 88 | 0x137 => 0x136, 89 | 0x13A => 0x139, 90 | 0x13C => 0x13B, 91 | 0x13E => 0x13D, 92 | 0x140 => 0x13F, 93 | 0x142 => 0x141, 94 | 0x144 => 0x143, 95 | 0x146 => 0x145, 96 | 0x148 => 0x147, 97 | 0x14B => 0x14A, 98 | 0x14D => 0x14C, 99 | 0x14F => 0x14E, 100 | 0x151 => 0x150, 101 | 0x153 => 0x152, 102 | 0x155 => 0x154, 103 | 0x157 => 0x156, 104 | 0x159 => 0x158, 105 | 0x15B => 0x15A, 106 | 0x15D => 0x15C, 107 | 0x15F => 0x15E, 108 | 0x161 => 0x160, 109 | 0x163 => 0x162, 110 | 0x165 => 0x164, 111 | 0x167 => 0x166, 112 | 0x169 => 0x168, 113 | 0x16B => 0x16A, 114 | 0x16D => 0x16C, 115 | 0x16F => 0x16E, 116 | 0x171 => 0x170, 117 | 0x173 => 0x172, 118 | 0x175 => 0x174, 119 | 0x177 => 0x176, 120 | 0x17A => 0x179, 121 | 0x17C => 0x17B, 122 | 0x17E => 0x17D, 123 | 0x17F => 0x53, 124 | 0x180 => 0x243, 125 | 0x183 => 0x182, 126 | 0x185 => 0x184, 127 | 0x188 => 0x187, 128 | 0x18C => 0x18B, 129 | 0x192 => 0x191, 130 | 0x195 => 0x1F6, 131 | 0x199 => 0x198, 132 | 0x19A => 0x23D, 133 | 0x19E => 0x220, 134 | 0x1A1 => 0x1A0, 135 | 0x1A3 => 0x1A2, 136 | 0x1A5 => 0x1A4, 137 | 0x1A8 => 0x1A7, 138 | 0x1AD => 0x1AC, 139 | 0x1B0 => 0x1AF, 140 | 0x1B4 => 0x1B3, 141 | 0x1B6 => 0x1B5, 142 | 0x1B9 => 0x1B8, 143 | 0x1BD => 0x1BC, 144 | 0x1BF => 0x1F7, 145 | 0x1C5 => 0x1C4, 146 | 0x1C6 => 0x1C4, 147 | 0x1C8 => 0x1C7, 148 | 0x1C9 => 0x1C7, 149 | 0x1CB => 0x1CA, 150 | 0x1CC => 0x1CA, 151 | 0x1CE => 0x1CD, 152 | 0x1D0 => 0x1CF, 153 | 0x1D2 => 0x1D1, 154 | 0x1D4 => 0x1D3, 155 | 0x1D6 => 0x1D5, 156 | 0x1D8 => 0x1D7, 157 | 0x1DA => 0x1D9, 158 | 0x1DC => 0x1DB, 159 | 0x1DD => 0x18E, 160 | 0x1DF => 0x1DE, 161 | 0x1E1 => 0x1E0, 162 | 0x1E3 => 0x1E2, 163 | 0x1E5 => 0x1E4, 164 | 0x1E7 => 0x1E6, 165 | 0x1E9 => 0x1E8, 166 | 0x1EB => 0x1EA, 167 | 0x1ED => 0x1EC, 168 | 0x1EF => 0x1EE, 169 | 0x1F2 => 0x1F1, 170 | 0x1F3 => 0x1F1, 171 | 0x1F5 => 0x1F4, 172 | 0x1F9 => 0x1F8, 173 | 0x1FB => 0x1FA, 174 | 0x1FD => 0x1FC, 175 | 0x1FF => 0x1FE, 176 | 0x201 => 0x200, 177 | 0x203 => 0x202, 178 | 0x205 => 0x204, 179 | 0x207 => 0x206, 180 | 0x209 => 0x208, 181 | 0x20B => 0x20A, 182 | 0x20D => 0x20C, 183 | 0x20F => 0x20E, 184 | 0x211 => 0x210, 185 | 0x213 => 0x212, 186 | 0x215 => 0x214, 187 | 0x217 => 0x216, 188 | 0x219 => 0x218, 189 | 0x21B => 0x21A, 190 | 0x21D => 0x21C, 191 | 0x21F => 0x21E, 192 | 0x223 => 0x222, 193 | 0x225 => 0x224, 194 | 0x227 => 0x226, 195 | 0x229 => 0x228, 196 | 0x22B => 0x22A, 197 | 0x22D => 0x22C, 198 | 0x22F => 0x22E, 199 | 0x231 => 0x230, 200 | 0x233 => 0x232, 201 | 0x23C => 0x23B, 202 | 0x23F => 0x2C7E, 203 | 0x240 => 0x2C7F, 204 | 0x242 => 0x241, 205 | 0x247 => 0x246, 206 | 0x249 => 0x248, 207 | 0x24B => 0x24A, 208 | 0x24D => 0x24C, 209 | 0x24F => 0x24E, 210 | 0x250 => 0x2C6F, 211 | 0x251 => 0x2C6D, 212 | 0x252 => 0x2C70, 213 | 0x253 => 0x181, 214 | 0x254 => 0x186, 215 | 0x256 => 0x189, 216 | 0x257 => 0x18A, 217 | 0x259 => 0x18F, 218 | 0x25B => 0x190, 219 | 0x25C => 0xA7AB, 220 | 0x260 => 0x193, 221 | 0x261 => 0xA7AC, 222 | 0x263 => 0x194, 223 | 0x265 => 0xA78D, 224 | 0x266 => 0xA7AA, 225 | 0x268 => 0x197, 226 | 0x269 => 0x196, 227 | 0x26A => 0xA7AE, 228 | 0x26B => 0x2C62, 229 | 0x26C => 0xA7AD, 230 | 0x26F => 0x19C, 231 | 0x271 => 0x2C6E, 232 | 0x272 => 0x19D, 233 | 0x275 => 0x19F, 234 | 0x27D => 0x2C64, 235 | 0x280 => 0x1A6, 236 | 0x282 => 0xA7C5, 237 | 0x283 => 0x1A9, 238 | 0x287 => 0xA7B1, 239 | 0x288 => 0x1AE, 240 | 0x289 => 0x244, 241 | 0x28A => 0x1B1, 242 | 0x28B => 0x1B2, 243 | 0x28C => 0x245, 244 | 0x292 => 0x1B7, 245 | 0x29D => 0xA7B2, 246 | 0x29E => 0xA7B0, 247 | 0x345 => 0x399, 248 | 0x371 => 0x370, 249 | 0x373 => 0x372, 250 | 0x377 => 0x376, 251 | 0x37B => 0x3FD, 252 | 0x37C => 0x3FE, 253 | 0x37D => 0x3FF, 254 | 0x3AC => 0x386, 255 | 0x3AD => 0x388, 256 | 0x3AE => 0x389, 257 | 0x3AF => 0x38A, 258 | 0x3B1 => 0x391, 259 | 0x3B2 => 0x392, 260 | 0x3B3 => 0x393, 261 | 0x3B4 => 0x394, 262 | 0x3B5 => 0x395, 263 | 0x3B6 => 0x396, 264 | 0x3B7 => 0x397, 265 | 0x3B8 => 0x398, 266 | 0x3B9 => 0x399, 267 | 0x3BA => 0x39A, 268 | 0x3BB => 0x39B, 269 | 0x3BC => 0x39C, 270 | 0x3BD => 0x39D, 271 | 0x3BE => 0x39E, 272 | 0x3BF => 0x39F, 273 | 0x3C0 => 0x3A0, 274 | 0x3C1 => 0x3A1, 275 | 0x3C2 => 0x3A3, 276 | 0x3C3 => 0x3A3, 277 | 0x3C4 => 0x3A4, 278 | 0x3C5 => 0x3A5, 279 | 0x3C6 => 0x3A6, 280 | 0x3C7 => 0x3A7, 281 | 0x3C8 => 0x3A8, 282 | 0x3C9 => 0x3A9, 283 | 0x3CA => 0x3AA, 284 | 0x3CB => 0x3AB, 285 | 0x3CC => 0x38C, 286 | 0x3CD => 0x38E, 287 | 0x3CE => 0x38F, 288 | 0x3D0 => 0x392, 289 | 0x3D1 => 0x398, 290 | 0x3D5 => 0x3A6, 291 | 0x3D6 => 0x3A0, 292 | 0x3D7 => 0x3CF, 293 | 0x3D9 => 0x3D8, 294 | 0x3DB => 0x3DA, 295 | 0x3DD => 0x3DC, 296 | 0x3DF => 0x3DE, 297 | 0x3E1 => 0x3E0, 298 | 0x3E3 => 0x3E2, 299 | 0x3E5 => 0x3E4, 300 | 0x3E7 => 0x3E6, 301 | 0x3E9 => 0x3E8, 302 | 0x3EB => 0x3EA, 303 | 0x3ED => 0x3EC, 304 | 0x3EF => 0x3EE, 305 | 0x3F0 => 0x39A, 306 | 0x3F1 => 0x3A1, 307 | 0x3F2 => 0x3F9, 308 | 0x3F3 => 0x37F, 309 | 0x3F5 => 0x395, 310 | 0x3F8 => 0x3F7, 311 | 0x3FB => 0x3FA, 312 | 0x430 => 0x410, 313 | 0x431 => 0x411, 314 | 0x432 => 0x412, 315 | 0x433 => 0x413, 316 | 0x434 => 0x414, 317 | 0x435 => 0x415, 318 | 0x436 => 0x416, 319 | 0x437 => 0x417, 320 | 0x438 => 0x418, 321 | 0x439 => 0x419, 322 | 0x43A => 0x41A, 323 | 0x43B => 0x41B, 324 | 0x43C => 0x41C, 325 | 0x43D => 0x41D, 326 | 0x43E => 0x41E, 327 | 0x43F => 0x41F, 328 | 0x440 => 0x420, 329 | 0x441 => 0x421, 330 | 0x442 => 0x422, 331 | 0x443 => 0x423, 332 | 0x444 => 0x424, 333 | 0x445 => 0x425, 334 | 0x446 => 0x426, 335 | 0x447 => 0x427, 336 | 0x448 => 0x428, 337 | 0x449 => 0x429, 338 | 0x44A => 0x42A, 339 | 0x44B => 0x42B, 340 | 0x44C => 0x42C, 341 | 0x44D => 0x42D, 342 | 0x44E => 0x42E, 343 | 0x44F => 0x42F, 344 | 0x450 => 0x400, 345 | 0x451 => 0x401, 346 | 0x452 => 0x402, 347 | 0x453 => 0x403, 348 | 0x454 => 0x404, 349 | 0x455 => 0x405, 350 | 0x456 => 0x406, 351 | 0x457 => 0x407, 352 | 0x458 => 0x408, 353 | 0x459 => 0x409, 354 | 0x45A => 0x40A, 355 | 0x45B => 0x40B, 356 | 0x45C => 0x40C, 357 | 0x45D => 0x40D, 358 | 0x45E => 0x40E, 359 | 0x45F => 0x40F, 360 | 0x461 => 0x460, 361 | 0x463 => 0x462, 362 | 0x465 => 0x464, 363 | 0x467 => 0x466, 364 | 0x469 => 0x468, 365 | 0x46B => 0x46A, 366 | 0x46D => 0x46C, 367 | 0x46F => 0x46E, 368 | 0x471 => 0x470, 369 | 0x473 => 0x472, 370 | 0x475 => 0x474, 371 | 0x477 => 0x476, 372 | 0x479 => 0x478, 373 | 0x47B => 0x47A, 374 | 0x47D => 0x47C, 375 | 0x47F => 0x47E, 376 | 0x481 => 0x480, 377 | 0x48B => 0x48A, 378 | 0x48D => 0x48C, 379 | 0x48F => 0x48E, 380 | 0x491 => 0x490, 381 | 0x493 => 0x492, 382 | 0x495 => 0x494, 383 | 0x497 => 0x496, 384 | 0x499 => 0x498, 385 | 0x49B => 0x49A, 386 | 0x49D => 0x49C, 387 | 0x49F => 0x49E, 388 | 0x4A1 => 0x4A0, 389 | 0x4A3 => 0x4A2, 390 | 0x4A5 => 0x4A4, 391 | 0x4A7 => 0x4A6, 392 | 0x4A9 => 0x4A8, 393 | 0x4AB => 0x4AA, 394 | 0x4AD => 0x4AC, 395 | 0x4AF => 0x4AE, 396 | 0x4B1 => 0x4B0, 397 | 0x4B3 => 0x4B2, 398 | 0x4B5 => 0x4B4, 399 | 0x4B7 => 0x4B6, 400 | 0x4B9 => 0x4B8, 401 | 0x4BB => 0x4BA, 402 | 0x4BD => 0x4BC, 403 | 0x4BF => 0x4BE, 404 | 0x4C2 => 0x4C1, 405 | 0x4C4 => 0x4C3, 406 | 0x4C6 => 0x4C5, 407 | 0x4C8 => 0x4C7, 408 | 0x4CA => 0x4C9, 409 | 0x4CC => 0x4CB, 410 | 0x4CE => 0x4CD, 411 | 0x4CF => 0x4C0, 412 | 0x4D1 => 0x4D0, 413 | 0x4D3 => 0x4D2, 414 | 0x4D5 => 0x4D4, 415 | 0x4D7 => 0x4D6, 416 | 0x4D9 => 0x4D8, 417 | 0x4DB => 0x4DA, 418 | 0x4DD => 0x4DC, 419 | 0x4DF => 0x4DE, 420 | 0x4E1 => 0x4E0, 421 | 0x4E3 => 0x4E2, 422 | 0x4E5 => 0x4E4, 423 | 0x4E7 => 0x4E6, 424 | 0x4E9 => 0x4E8, 425 | 0x4EB => 0x4EA, 426 | 0x4ED => 0x4EC, 427 | 0x4EF => 0x4EE, 428 | 0x4F1 => 0x4F0, 429 | 0x4F3 => 0x4F2, 430 | 0x4F5 => 0x4F4, 431 | 0x4F7 => 0x4F6, 432 | 0x4F9 => 0x4F8, 433 | 0x4FB => 0x4FA, 434 | 0x4FD => 0x4FC, 435 | 0x4FF => 0x4FE, 436 | 0x501 => 0x500, 437 | 0x503 => 0x502, 438 | 0x505 => 0x504, 439 | 0x507 => 0x506, 440 | 0x509 => 0x508, 441 | 0x50B => 0x50A, 442 | 0x50D => 0x50C, 443 | 0x50F => 0x50E, 444 | 0x511 => 0x510, 445 | 0x513 => 0x512, 446 | 0x515 => 0x514, 447 | 0x517 => 0x516, 448 | 0x519 => 0x518, 449 | 0x51B => 0x51A, 450 | 0x51D => 0x51C, 451 | 0x51F => 0x51E, 452 | 0x521 => 0x520, 453 | 0x523 => 0x522, 454 | 0x525 => 0x524, 455 | 0x527 => 0x526, 456 | 0x529 => 0x528, 457 | 0x52B => 0x52A, 458 | 0x52D => 0x52C, 459 | 0x52F => 0x52E, 460 | 0x561 => 0x531, 461 | 0x562 => 0x532, 462 | 0x563 => 0x533, 463 | 0x564 => 0x534, 464 | 0x565 => 0x535, 465 | 0x566 => 0x536, 466 | 0x567 => 0x537, 467 | 0x568 => 0x538, 468 | 0x569 => 0x539, 469 | 0x56A => 0x53A, 470 | 0x56B => 0x53B, 471 | 0x56C => 0x53C, 472 | 0x56D => 0x53D, 473 | 0x56E => 0x53E, 474 | 0x56F => 0x53F, 475 | 0x570 => 0x540, 476 | 0x571 => 0x541, 477 | 0x572 => 0x542, 478 | 0x573 => 0x543, 479 | 0x574 => 0x544, 480 | 0x575 => 0x545, 481 | 0x576 => 0x546, 482 | 0x577 => 0x547, 483 | 0x578 => 0x548, 484 | 0x579 => 0x549, 485 | 0x57A => 0x54A, 486 | 0x57B => 0x54B, 487 | 0x57C => 0x54C, 488 | 0x57D => 0x54D, 489 | 0x57E => 0x54E, 490 | 0x57F => 0x54F, 491 | 0x580 => 0x550, 492 | 0x581 => 0x551, 493 | 0x582 => 0x552, 494 | 0x583 => 0x553, 495 | 0x584 => 0x554, 496 | 0x585 => 0x555, 497 | 0x586 => 0x556, 498 | 0x10D0 => 0x1C90, 499 | 0x10D1 => 0x1C91, 500 | 0x10D2 => 0x1C92, 501 | 0x10D3 => 0x1C93, 502 | 0x10D4 => 0x1C94, 503 | 0x10D5 => 0x1C95, 504 | 0x10D6 => 0x1C96, 505 | 0x10D7 => 0x1C97, 506 | 0x10D8 => 0x1C98, 507 | 0x10D9 => 0x1C99, 508 | 0x10DA => 0x1C9A, 509 | 0x10DB => 0x1C9B, 510 | 0x10DC => 0x1C9C, 511 | 0x10DD => 0x1C9D, 512 | 0x10DE => 0x1C9E, 513 | 0x10DF => 0x1C9F, 514 | 0x10E0 => 0x1CA0, 515 | 0x10E1 => 0x1CA1, 516 | 0x10E2 => 0x1CA2, 517 | 0x10E3 => 0x1CA3, 518 | 0x10E4 => 0x1CA4, 519 | 0x10E5 => 0x1CA5, 520 | 0x10E6 => 0x1CA6, 521 | 0x10E7 => 0x1CA7, 522 | 0x10E8 => 0x1CA8, 523 | 0x10E9 => 0x1CA9, 524 | 0x10EA => 0x1CAA, 525 | 0x10EB => 0x1CAB, 526 | 0x10EC => 0x1CAC, 527 | 0x10ED => 0x1CAD, 528 | 0x10EE => 0x1CAE, 529 | 0x10EF => 0x1CAF, 530 | 0x10F0 => 0x1CB0, 531 | 0x10F1 => 0x1CB1, 532 | 0x10F2 => 0x1CB2, 533 | 0x10F3 => 0x1CB3, 534 | 0x10F4 => 0x1CB4, 535 | 0x10F5 => 0x1CB5, 536 | 0x10F6 => 0x1CB6, 537 | 0x10F7 => 0x1CB7, 538 | 0x10F8 => 0x1CB8, 539 | 0x10F9 => 0x1CB9, 540 | 0x10FA => 0x1CBA, 541 | 0x10FD => 0x1CBD, 542 | 0x10FE => 0x1CBE, 543 | 0x10FF => 0x1CBF, 544 | 0x13F8 => 0x13F0, 545 | 0x13F9 => 0x13F1, 546 | 0x13FA => 0x13F2, 547 | 0x13FB => 0x13F3, 548 | 0x13FC => 0x13F4, 549 | 0x13FD => 0x13F5, 550 | 0x1C80 => 0x412, 551 | 0x1C81 => 0x414, 552 | 0x1C82 => 0x41E, 553 | 0x1C83 => 0x421, 554 | 0x1C84 => 0x422, 555 | 0x1C85 => 0x422, 556 | 0x1C86 => 0x42A, 557 | 0x1C87 => 0x462, 558 | 0x1C88 => 0xA64A, 559 | 0x1D79 => 0xA77D, 560 | 0x1D7D => 0x2C63, 561 | 0x1D8E => 0xA7C6, 562 | 0x1E01 => 0x1E00, 563 | 0x1E03 => 0x1E02, 564 | 0x1E05 => 0x1E04, 565 | 0x1E07 => 0x1E06, 566 | 0x1E09 => 0x1E08, 567 | 0x1E0B => 0x1E0A, 568 | 0x1E0D => 0x1E0C, 569 | 0x1E0F => 0x1E0E, 570 | 0x1E11 => 0x1E10, 571 | 0x1E13 => 0x1E12, 572 | 0x1E15 => 0x1E14, 573 | 0x1E17 => 0x1E16, 574 | 0x1E19 => 0x1E18, 575 | 0x1E1B => 0x1E1A, 576 | 0x1E1D => 0x1E1C, 577 | 0x1E1F => 0x1E1E, 578 | 0x1E21 => 0x1E20, 579 | 0x1E23 => 0x1E22, 580 | 0x1E25 => 0x1E24, 581 | 0x1E27 => 0x1E26, 582 | 0x1E29 => 0x1E28, 583 | 0x1E2B => 0x1E2A, 584 | 0x1E2D => 0x1E2C, 585 | 0x1E2F => 0x1E2E, 586 | 0x1E31 => 0x1E30, 587 | 0x1E33 => 0x1E32, 588 | 0x1E35 => 0x1E34, 589 | 0x1E37 => 0x1E36, 590 | 0x1E39 => 0x1E38, 591 | 0x1E3B => 0x1E3A, 592 | 0x1E3D => 0x1E3C, 593 | 0x1E3F => 0x1E3E, 594 | 0x1E41 => 0x1E40, 595 | 0x1E43 => 0x1E42, 596 | 0x1E45 => 0x1E44, 597 | 0x1E47 => 0x1E46, 598 | 0x1E49 => 0x1E48, 599 | 0x1E4B => 0x1E4A, 600 | 0x1E4D => 0x1E4C, 601 | 0x1E4F => 0x1E4E, 602 | 0x1E51 => 0x1E50, 603 | 0x1E53 => 0x1E52, 604 | 0x1E55 => 0x1E54, 605 | 0x1E57 => 0x1E56, 606 | 0x1E59 => 0x1E58, 607 | 0x1E5B => 0x1E5A, 608 | 0x1E5D => 0x1E5C, 609 | 0x1E5F => 0x1E5E, 610 | 0x1E61 => 0x1E60, 611 | 0x1E63 => 0x1E62, 612 | 0x1E65 => 0x1E64, 613 | 0x1E67 => 0x1E66, 614 | 0x1E69 => 0x1E68, 615 | 0x1E6B => 0x1E6A, 616 | 0x1E6D => 0x1E6C, 617 | 0x1E6F => 0x1E6E, 618 | 0x1E71 => 0x1E70, 619 | 0x1E73 => 0x1E72, 620 | 0x1E75 => 0x1E74, 621 | 0x1E77 => 0x1E76, 622 | 0x1E79 => 0x1E78, 623 | 0x1E7B => 0x1E7A, 624 | 0x1E7D => 0x1E7C, 625 | 0x1E7F => 0x1E7E, 626 | 0x1E81 => 0x1E80, 627 | 0x1E83 => 0x1E82, 628 | 0x1E85 => 0x1E84, 629 | 0x1E87 => 0x1E86, 630 | 0x1E89 => 0x1E88, 631 | 0x1E8B => 0x1E8A, 632 | 0x1E8D => 0x1E8C, 633 | 0x1E8F => 0x1E8E, 634 | 0x1E91 => 0x1E90, 635 | 0x1E93 => 0x1E92, 636 | 0x1E95 => 0x1E94, 637 | 0x1E9B => 0x1E60, 638 | 0x1EA1 => 0x1EA0, 639 | 0x1EA3 => 0x1EA2, 640 | 0x1EA5 => 0x1EA4, 641 | 0x1EA7 => 0x1EA6, 642 | 0x1EA9 => 0x1EA8, 643 | 0x1EAB => 0x1EAA, 644 | 0x1EAD => 0x1EAC, 645 | 0x1EAF => 0x1EAE, 646 | 0x1EB1 => 0x1EB0, 647 | 0x1EB3 => 0x1EB2, 648 | 0x1EB5 => 0x1EB4, 649 | 0x1EB7 => 0x1EB6, 650 | 0x1EB9 => 0x1EB8, 651 | 0x1EBB => 0x1EBA, 652 | 0x1EBD => 0x1EBC, 653 | 0x1EBF => 0x1EBE, 654 | 0x1EC1 => 0x1EC0, 655 | 0x1EC3 => 0x1EC2, 656 | 0x1EC5 => 0x1EC4, 657 | 0x1EC7 => 0x1EC6, 658 | 0x1EC9 => 0x1EC8, 659 | 0x1ECB => 0x1ECA, 660 | 0x1ECD => 0x1ECC, 661 | 0x1ECF => 0x1ECE, 662 | 0x1ED1 => 0x1ED0, 663 | 0x1ED3 => 0x1ED2, 664 | 0x1ED5 => 0x1ED4, 665 | 0x1ED7 => 0x1ED6, 666 | 0x1ED9 => 0x1ED8, 667 | 0x1EDB => 0x1EDA, 668 | 0x1EDD => 0x1EDC, 669 | 0x1EDF => 0x1EDE, 670 | 0x1EE1 => 0x1EE0, 671 | 0x1EE3 => 0x1EE2, 672 | 0x1EE5 => 0x1EE4, 673 | 0x1EE7 => 0x1EE6, 674 | 0x1EE9 => 0x1EE8, 675 | 0x1EEB => 0x1EEA, 676 | 0x1EED => 0x1EEC, 677 | 0x1EEF => 0x1EEE, 678 | 0x1EF1 => 0x1EF0, 679 | 0x1EF3 => 0x1EF2, 680 | 0x1EF5 => 0x1EF4, 681 | 0x1EF7 => 0x1EF6, 682 | 0x1EF9 => 0x1EF8, 683 | 0x1EFB => 0x1EFA, 684 | 0x1EFD => 0x1EFC, 685 | 0x1EFF => 0x1EFE, 686 | 0x1F00 => 0x1F08, 687 | 0x1F01 => 0x1F09, 688 | 0x1F02 => 0x1F0A, 689 | 0x1F03 => 0x1F0B, 690 | 0x1F04 => 0x1F0C, 691 | 0x1F05 => 0x1F0D, 692 | 0x1F06 => 0x1F0E, 693 | 0x1F07 => 0x1F0F, 694 | 0x1F10 => 0x1F18, 695 | 0x1F11 => 0x1F19, 696 | 0x1F12 => 0x1F1A, 697 | 0x1F13 => 0x1F1B, 698 | 0x1F14 => 0x1F1C, 699 | 0x1F15 => 0x1F1D, 700 | 0x1F20 => 0x1F28, 701 | 0x1F21 => 0x1F29, 702 | 0x1F22 => 0x1F2A, 703 | 0x1F23 => 0x1F2B, 704 | 0x1F24 => 0x1F2C, 705 | 0x1F25 => 0x1F2D, 706 | 0x1F26 => 0x1F2E, 707 | 0x1F27 => 0x1F2F, 708 | 0x1F30 => 0x1F38, 709 | 0x1F31 => 0x1F39, 710 | 0x1F32 => 0x1F3A, 711 | 0x1F33 => 0x1F3B, 712 | 0x1F34 => 0x1F3C, 713 | 0x1F35 => 0x1F3D, 714 | 0x1F36 => 0x1F3E, 715 | 0x1F37 => 0x1F3F, 716 | 0x1F40 => 0x1F48, 717 | 0x1F41 => 0x1F49, 718 | 0x1F42 => 0x1F4A, 719 | 0x1F43 => 0x1F4B, 720 | 0x1F44 => 0x1F4C, 721 | 0x1F45 => 0x1F4D, 722 | 0x1F51 => 0x1F59, 723 | 0x1F53 => 0x1F5B, 724 | 0x1F55 => 0x1F5D, 725 | 0x1F57 => 0x1F5F, 726 | 0x1F60 => 0x1F68, 727 | 0x1F61 => 0x1F69, 728 | 0x1F62 => 0x1F6A, 729 | 0x1F63 => 0x1F6B, 730 | 0x1F64 => 0x1F6C, 731 | 0x1F65 => 0x1F6D, 732 | 0x1F66 => 0x1F6E, 733 | 0x1F67 => 0x1F6F, 734 | 0x1F70 => 0x1FBA, 735 | 0x1F71 => 0x1FBB, 736 | 0x1F72 => 0x1FC8, 737 | 0x1F73 => 0x1FC9, 738 | 0x1F74 => 0x1FCA, 739 | 0x1F75 => 0x1FCB, 740 | 0x1F76 => 0x1FDA, 741 | 0x1F77 => 0x1FDB, 742 | 0x1F78 => 0x1FF8, 743 | 0x1F79 => 0x1FF9, 744 | 0x1F7A => 0x1FEA, 745 | 0x1F7B => 0x1FEB, 746 | 0x1F7C => 0x1FFA, 747 | 0x1F7D => 0x1FFB, 748 | 0x1F80 => 0x1F88, 749 | 0x1F81 => 0x1F89, 750 | 0x1F82 => 0x1F8A, 751 | 0x1F83 => 0x1F8B, 752 | 0x1F84 => 0x1F8C, 753 | 0x1F85 => 0x1F8D, 754 | 0x1F86 => 0x1F8E, 755 | 0x1F87 => 0x1F8F, 756 | 0x1F90 => 0x1F98, 757 | 0x1F91 => 0x1F99, 758 | 0x1F92 => 0x1F9A, 759 | 0x1F93 => 0x1F9B, 760 | 0x1F94 => 0x1F9C, 761 | 0x1F95 => 0x1F9D, 762 | 0x1F96 => 0x1F9E, 763 | 0x1F97 => 0x1F9F, 764 | 0x1FA0 => 0x1FA8, 765 | 0x1FA1 => 0x1FA9, 766 | 0x1FA2 => 0x1FAA, 767 | 0x1FA3 => 0x1FAB, 768 | 0x1FA4 => 0x1FAC, 769 | 0x1FA5 => 0x1FAD, 770 | 0x1FA6 => 0x1FAE, 771 | 0x1FA7 => 0x1FAF, 772 | 0x1FB0 => 0x1FB8, 773 | 0x1FB1 => 0x1FB9, 774 | 0x1FB3 => 0x1FBC, 775 | 0x1FBE => 0x399, 776 | 0x1FC3 => 0x1FCC, 777 | 0x1FD0 => 0x1FD8, 778 | 0x1FD1 => 0x1FD9, 779 | 0x1FE0 => 0x1FE8, 780 | 0x1FE1 => 0x1FE9, 781 | 0x1FE5 => 0x1FEC, 782 | 0x1FF3 => 0x1FFC, 783 | 0x214E => 0x2132, 784 | 0x2170 => 0x2160, 785 | 0x2171 => 0x2161, 786 | 0x2172 => 0x2162, 787 | 0x2173 => 0x2163, 788 | 0x2174 => 0x2164, 789 | 0x2175 => 0x2165, 790 | 0x2176 => 0x2166, 791 | 0x2177 => 0x2167, 792 | 0x2178 => 0x2168, 793 | 0x2179 => 0x2169, 794 | 0x217A => 0x216A, 795 | 0x217B => 0x216B, 796 | 0x217C => 0x216C, 797 | 0x217D => 0x216D, 798 | 0x217E => 0x216E, 799 | 0x217F => 0x216F, 800 | 0x2184 => 0x2183, 801 | 0x24D0 => 0x24B6, 802 | 0x24D1 => 0x24B7, 803 | 0x24D2 => 0x24B8, 804 | 0x24D3 => 0x24B9, 805 | 0x24D4 => 0x24BA, 806 | 0x24D5 => 0x24BB, 807 | 0x24D6 => 0x24BC, 808 | 0x24D7 => 0x24BD, 809 | 0x24D8 => 0x24BE, 810 | 0x24D9 => 0x24BF, 811 | 0x24DA => 0x24C0, 812 | 0x24DB => 0x24C1, 813 | 0x24DC => 0x24C2, 814 | 0x24DD => 0x24C3, 815 | 0x24DE => 0x24C4, 816 | 0x24DF => 0x24C5, 817 | 0x24E0 => 0x24C6, 818 | 0x24E1 => 0x24C7, 819 | 0x24E2 => 0x24C8, 820 | 0x24E3 => 0x24C9, 821 | 0x24E4 => 0x24CA, 822 | 0x24E5 => 0x24CB, 823 | 0x24E6 => 0x24CC, 824 | 0x24E7 => 0x24CD, 825 | 0x24E8 => 0x24CE, 826 | 0x24E9 => 0x24CF, 827 | 0x2C30 => 0x2C00, 828 | 0x2C31 => 0x2C01, 829 | 0x2C32 => 0x2C02, 830 | 0x2C33 => 0x2C03, 831 | 0x2C34 => 0x2C04, 832 | 0x2C35 => 0x2C05, 833 | 0x2C36 => 0x2C06, 834 | 0x2C37 => 0x2C07, 835 | 0x2C38 => 0x2C08, 836 | 0x2C39 => 0x2C09, 837 | 0x2C3A => 0x2C0A, 838 | 0x2C3B => 0x2C0B, 839 | 0x2C3C => 0x2C0C, 840 | 0x2C3D => 0x2C0D, 841 | 0x2C3E => 0x2C0E, 842 | 0x2C3F => 0x2C0F, 843 | 0x2C40 => 0x2C10, 844 | 0x2C41 => 0x2C11, 845 | 0x2C42 => 0x2C12, 846 | 0x2C43 => 0x2C13, 847 | 0x2C44 => 0x2C14, 848 | 0x2C45 => 0x2C15, 849 | 0x2C46 => 0x2C16, 850 | 0x2C47 => 0x2C17, 851 | 0x2C48 => 0x2C18, 852 | 0x2C49 => 0x2C19, 853 | 0x2C4A => 0x2C1A, 854 | 0x2C4B => 0x2C1B, 855 | 0x2C4C => 0x2C1C, 856 | 0x2C4D => 0x2C1D, 857 | 0x2C4E => 0x2C1E, 858 | 0x2C4F => 0x2C1F, 859 | 0x2C50 => 0x2C20, 860 | 0x2C51 => 0x2C21, 861 | 0x2C52 => 0x2C22, 862 | 0x2C53 => 0x2C23, 863 | 0x2C54 => 0x2C24, 864 | 0x2C55 => 0x2C25, 865 | 0x2C56 => 0x2C26, 866 | 0x2C57 => 0x2C27, 867 | 0x2C58 => 0x2C28, 868 | 0x2C59 => 0x2C29, 869 | 0x2C5A => 0x2C2A, 870 | 0x2C5B => 0x2C2B, 871 | 0x2C5C => 0x2C2C, 872 | 0x2C5D => 0x2C2D, 873 | 0x2C5E => 0x2C2E, 874 | 0x2C61 => 0x2C60, 875 | 0x2C65 => 0x23A, 876 | 0x2C66 => 0x23E, 877 | 0x2C68 => 0x2C67, 878 | 0x2C6A => 0x2C69, 879 | 0x2C6C => 0x2C6B, 880 | 0x2C73 => 0x2C72, 881 | 0x2C76 => 0x2C75, 882 | 0x2C81 => 0x2C80, 883 | 0x2C83 => 0x2C82, 884 | 0x2C85 => 0x2C84, 885 | 0x2C87 => 0x2C86, 886 | 0x2C89 => 0x2C88, 887 | 0x2C8B => 0x2C8A, 888 | 0x2C8D => 0x2C8C, 889 | 0x2C8F => 0x2C8E, 890 | 0x2C91 => 0x2C90, 891 | 0x2C93 => 0x2C92, 892 | 0x2C95 => 0x2C94, 893 | 0x2C97 => 0x2C96, 894 | 0x2C99 => 0x2C98, 895 | 0x2C9B => 0x2C9A, 896 | 0x2C9D => 0x2C9C, 897 | 0x2C9F => 0x2C9E, 898 | 0x2CA1 => 0x2CA0, 899 | 0x2CA3 => 0x2CA2, 900 | 0x2CA5 => 0x2CA4, 901 | 0x2CA7 => 0x2CA6, 902 | 0x2CA9 => 0x2CA8, 903 | 0x2CAB => 0x2CAA, 904 | 0x2CAD => 0x2CAC, 905 | 0x2CAF => 0x2CAE, 906 | 0x2CB1 => 0x2CB0, 907 | 0x2CB3 => 0x2CB2, 908 | 0x2CB5 => 0x2CB4, 909 | 0x2CB7 => 0x2CB6, 910 | 0x2CB9 => 0x2CB8, 911 | 0x2CBB => 0x2CBA, 912 | 0x2CBD => 0x2CBC, 913 | 0x2CBF => 0x2CBE, 914 | 0x2CC1 => 0x2CC0, 915 | 0x2CC3 => 0x2CC2, 916 | 0x2CC5 => 0x2CC4, 917 | 0x2CC7 => 0x2CC6, 918 | 0x2CC9 => 0x2CC8, 919 | 0x2CCB => 0x2CCA, 920 | 0x2CCD => 0x2CCC, 921 | 0x2CCF => 0x2CCE, 922 | 0x2CD1 => 0x2CD0, 923 | 0x2CD3 => 0x2CD2, 924 | 0x2CD5 => 0x2CD4, 925 | 0x2CD7 => 0x2CD6, 926 | 0x2CD9 => 0x2CD8, 927 | 0x2CDB => 0x2CDA, 928 | 0x2CDD => 0x2CDC, 929 | 0x2CDF => 0x2CDE, 930 | 0x2CE1 => 0x2CE0, 931 | 0x2CE3 => 0x2CE2, 932 | 0x2CEC => 0x2CEB, 933 | 0x2CEE => 0x2CED, 934 | 0x2CF3 => 0x2CF2, 935 | 0x2D00 => 0x10A0, 936 | 0x2D01 => 0x10A1, 937 | 0x2D02 => 0x10A2, 938 | 0x2D03 => 0x10A3, 939 | 0x2D04 => 0x10A4, 940 | 0x2D05 => 0x10A5, 941 | 0x2D06 => 0x10A6, 942 | 0x2D07 => 0x10A7, 943 | 0x2D08 => 0x10A8, 944 | 0x2D09 => 0x10A9, 945 | 0x2D0A => 0x10AA, 946 | 0x2D0B => 0x10AB, 947 | 0x2D0C => 0x10AC, 948 | 0x2D0D => 0x10AD, 949 | 0x2D0E => 0x10AE, 950 | 0x2D0F => 0x10AF, 951 | 0x2D10 => 0x10B0, 952 | 0x2D11 => 0x10B1, 953 | 0x2D12 => 0x10B2, 954 | 0x2D13 => 0x10B3, 955 | 0x2D14 => 0x10B4, 956 | 0x2D15 => 0x10B5, 957 | 0x2D16 => 0x10B6, 958 | 0x2D17 => 0x10B7, 959 | 0x2D18 => 0x10B8, 960 | 0x2D19 => 0x10B9, 961 | 0x2D1A => 0x10BA, 962 | 0x2D1B => 0x10BB, 963 | 0x2D1C => 0x10BC, 964 | 0x2D1D => 0x10BD, 965 | 0x2D1E => 0x10BE, 966 | 0x2D1F => 0x10BF, 967 | 0x2D20 => 0x10C0, 968 | 0x2D21 => 0x10C1, 969 | 0x2D22 => 0x10C2, 970 | 0x2D23 => 0x10C3, 971 | 0x2D24 => 0x10C4, 972 | 0x2D25 => 0x10C5, 973 | 0x2D27 => 0x10C7, 974 | 0x2D2D => 0x10CD, 975 | 0xA641 => 0xA640, 976 | 0xA643 => 0xA642, 977 | 0xA645 => 0xA644, 978 | 0xA647 => 0xA646, 979 | 0xA649 => 0xA648, 980 | 0xA64B => 0xA64A, 981 | 0xA64D => 0xA64C, 982 | 0xA64F => 0xA64E, 983 | 0xA651 => 0xA650, 984 | 0xA653 => 0xA652, 985 | 0xA655 => 0xA654, 986 | 0xA657 => 0xA656, 987 | 0xA659 => 0xA658, 988 | 0xA65B => 0xA65A, 989 | 0xA65D => 0xA65C, 990 | 0xA65F => 0xA65E, 991 | 0xA661 => 0xA660, 992 | 0xA663 => 0xA662, 993 | 0xA665 => 0xA664, 994 | 0xA667 => 0xA666, 995 | 0xA669 => 0xA668, 996 | 0xA66B => 0xA66A, 997 | 0xA66D => 0xA66C, 998 | 0xA681 => 0xA680, 999 | 0xA683 => 0xA682, 1000 | 0xA685 => 0xA684, 1001 | 0xA687 => 0xA686, 1002 | 0xA689 => 0xA688, 1003 | 0xA68B => 0xA68A, 1004 | 0xA68D => 0xA68C, 1005 | 0xA68F => 0xA68E, 1006 | 0xA691 => 0xA690, 1007 | 0xA693 => 0xA692, 1008 | 0xA695 => 0xA694, 1009 | 0xA697 => 0xA696, 1010 | 0xA699 => 0xA698, 1011 | 0xA69B => 0xA69A, 1012 | 0xA723 => 0xA722, 1013 | 0xA725 => 0xA724, 1014 | 0xA727 => 0xA726, 1015 | 0xA729 => 0xA728, 1016 | 0xA72B => 0xA72A, 1017 | 0xA72D => 0xA72C, 1018 | 0xA72F => 0xA72E, 1019 | 0xA733 => 0xA732, 1020 | 0xA735 => 0xA734, 1021 | 0xA737 => 0xA736, 1022 | 0xA739 => 0xA738, 1023 | 0xA73B => 0xA73A, 1024 | 0xA73D => 0xA73C, 1025 | 0xA73F => 0xA73E, 1026 | 0xA741 => 0xA740, 1027 | 0xA743 => 0xA742, 1028 | 0xA745 => 0xA744, 1029 | 0xA747 => 0xA746, 1030 | 0xA749 => 0xA748, 1031 | 0xA74B => 0xA74A, 1032 | 0xA74D => 0xA74C, 1033 | 0xA74F => 0xA74E, 1034 | 0xA751 => 0xA750, 1035 | 0xA753 => 0xA752, 1036 | 0xA755 => 0xA754, 1037 | 0xA757 => 0xA756, 1038 | 0xA759 => 0xA758, 1039 | 0xA75B => 0xA75A, 1040 | 0xA75D => 0xA75C, 1041 | 0xA75F => 0xA75E, 1042 | 0xA761 => 0xA760, 1043 | 0xA763 => 0xA762, 1044 | 0xA765 => 0xA764, 1045 | 0xA767 => 0xA766, 1046 | 0xA769 => 0xA768, 1047 | 0xA76B => 0xA76A, 1048 | 0xA76D => 0xA76C, 1049 | 0xA76F => 0xA76E, 1050 | 0xA77A => 0xA779, 1051 | 0xA77C => 0xA77B, 1052 | 0xA77F => 0xA77E, 1053 | 0xA781 => 0xA780, 1054 | 0xA783 => 0xA782, 1055 | 0xA785 => 0xA784, 1056 | 0xA787 => 0xA786, 1057 | 0xA78C => 0xA78B, 1058 | 0xA791 => 0xA790, 1059 | 0xA793 => 0xA792, 1060 | 0xA794 => 0xA7C4, 1061 | 0xA797 => 0xA796, 1062 | 0xA799 => 0xA798, 1063 | 0xA79B => 0xA79A, 1064 | 0xA79D => 0xA79C, 1065 | 0xA79F => 0xA79E, 1066 | 0xA7A1 => 0xA7A0, 1067 | 0xA7A3 => 0xA7A2, 1068 | 0xA7A5 => 0xA7A4, 1069 | 0xA7A7 => 0xA7A6, 1070 | 0xA7A9 => 0xA7A8, 1071 | 0xA7B5 => 0xA7B4, 1072 | 0xA7B7 => 0xA7B6, 1073 | 0xA7B9 => 0xA7B8, 1074 | 0xA7BB => 0xA7BA, 1075 | 0xA7BD => 0xA7BC, 1076 | 0xA7BF => 0xA7BE, 1077 | 0xA7C3 => 0xA7C2, 1078 | 0xA7C8 => 0xA7C7, 1079 | 0xA7CA => 0xA7C9, 1080 | 0xA7F6 => 0xA7F5, 1081 | 0xAB53 => 0xA7B3, 1082 | 0xAB70 => 0x13A0, 1083 | 0xAB71 => 0x13A1, 1084 | 0xAB72 => 0x13A2, 1085 | 0xAB73 => 0x13A3, 1086 | 0xAB74 => 0x13A4, 1087 | 0xAB75 => 0x13A5, 1088 | 0xAB76 => 0x13A6, 1089 | 0xAB77 => 0x13A7, 1090 | 0xAB78 => 0x13A8, 1091 | 0xAB79 => 0x13A9, 1092 | 0xAB7A => 0x13AA, 1093 | 0xAB7B => 0x13AB, 1094 | 0xAB7C => 0x13AC, 1095 | 0xAB7D => 0x13AD, 1096 | 0xAB7E => 0x13AE, 1097 | 0xAB7F => 0x13AF, 1098 | 0xAB80 => 0x13B0, 1099 | 0xAB81 => 0x13B1, 1100 | 0xAB82 => 0x13B2, 1101 | 0xAB83 => 0x13B3, 1102 | 0xAB84 => 0x13B4, 1103 | 0xAB85 => 0x13B5, 1104 | 0xAB86 => 0x13B6, 1105 | 0xAB87 => 0x13B7, 1106 | 0xAB88 => 0x13B8, 1107 | 0xAB89 => 0x13B9, 1108 | 0xAB8A => 0x13BA, 1109 | 0xAB8B => 0x13BB, 1110 | 0xAB8C => 0x13BC, 1111 | 0xAB8D => 0x13BD, 1112 | 0xAB8E => 0x13BE, 1113 | 0xAB8F => 0x13BF, 1114 | 0xAB90 => 0x13C0, 1115 | 0xAB91 => 0x13C1, 1116 | 0xAB92 => 0x13C2, 1117 | 0xAB93 => 0x13C3, 1118 | 0xAB94 => 0x13C4, 1119 | 0xAB95 => 0x13C5, 1120 | 0xAB96 => 0x13C6, 1121 | 0xAB97 => 0x13C7, 1122 | 0xAB98 => 0x13C8, 1123 | 0xAB99 => 0x13C9, 1124 | 0xAB9A => 0x13CA, 1125 | 0xAB9B => 0x13CB, 1126 | 0xAB9C => 0x13CC, 1127 | 0xAB9D => 0x13CD, 1128 | 0xAB9E => 0x13CE, 1129 | 0xAB9F => 0x13CF, 1130 | 0xABA0 => 0x13D0, 1131 | 0xABA1 => 0x13D1, 1132 | 0xABA2 => 0x13D2, 1133 | 0xABA3 => 0x13D3, 1134 | 0xABA4 => 0x13D4, 1135 | 0xABA5 => 0x13D5, 1136 | 0xABA6 => 0x13D6, 1137 | 0xABA7 => 0x13D7, 1138 | 0xABA8 => 0x13D8, 1139 | 0xABA9 => 0x13D9, 1140 | 0xABAA => 0x13DA, 1141 | 0xABAB => 0x13DB, 1142 | 0xABAC => 0x13DC, 1143 | 0xABAD => 0x13DD, 1144 | 0xABAE => 0x13DE, 1145 | 0xABAF => 0x13DF, 1146 | 0xABB0 => 0x13E0, 1147 | 0xABB1 => 0x13E1, 1148 | 0xABB2 => 0x13E2, 1149 | 0xABB3 => 0x13E3, 1150 | 0xABB4 => 0x13E4, 1151 | 0xABB5 => 0x13E5, 1152 | 0xABB6 => 0x13E6, 1153 | 0xABB7 => 0x13E7, 1154 | 0xABB8 => 0x13E8, 1155 | 0xABB9 => 0x13E9, 1156 | 0xABBA => 0x13EA, 1157 | 0xABBB => 0x13EB, 1158 | 0xABBC => 0x13EC, 1159 | 0xABBD => 0x13ED, 1160 | 0xABBE => 0x13EE, 1161 | 0xABBF => 0x13EF, 1162 | 0xFF41 => 0xFF21, 1163 | 0xFF42 => 0xFF22, 1164 | 0xFF43 => 0xFF23, 1165 | 0xFF44 => 0xFF24, 1166 | 0xFF45 => 0xFF25, 1167 | 0xFF46 => 0xFF26, 1168 | 0xFF47 => 0xFF27, 1169 | 0xFF48 => 0xFF28, 1170 | 0xFF49 => 0xFF29, 1171 | 0xFF4A => 0xFF2A, 1172 | 0xFF4B => 0xFF2B, 1173 | 0xFF4C => 0xFF2C, 1174 | 0xFF4D => 0xFF2D, 1175 | 0xFF4E => 0xFF2E, 1176 | 0xFF4F => 0xFF2F, 1177 | 0xFF50 => 0xFF30, 1178 | 0xFF51 => 0xFF31, 1179 | 0xFF52 => 0xFF32, 1180 | 0xFF53 => 0xFF33, 1181 | 0xFF54 => 0xFF34, 1182 | 0xFF55 => 0xFF35, 1183 | 0xFF56 => 0xFF36, 1184 | 0xFF57 => 0xFF37, 1185 | 0xFF58 => 0xFF38, 1186 | 0xFF59 => 0xFF39, 1187 | 0xFF5A => 0xFF3A, 1188 | 0x10428 => 0x10400, 1189 | 0x10429 => 0x10401, 1190 | 0x1042A => 0x10402, 1191 | 0x1042B => 0x10403, 1192 | 0x1042C => 0x10404, 1193 | 0x1042D => 0x10405, 1194 | 0x1042E => 0x10406, 1195 | 0x1042F => 0x10407, 1196 | 0x10430 => 0x10408, 1197 | 0x10431 => 0x10409, 1198 | 0x10432 => 0x1040A, 1199 | 0x10433 => 0x1040B, 1200 | 0x10434 => 0x1040C, 1201 | 0x10435 => 0x1040D, 1202 | 0x10436 => 0x1040E, 1203 | 0x10437 => 0x1040F, 1204 | 0x10438 => 0x10410, 1205 | 0x10439 => 0x10411, 1206 | 0x1043A => 0x10412, 1207 | 0x1043B => 0x10413, 1208 | 0x1043C => 0x10414, 1209 | 0x1043D => 0x10415, 1210 | 0x1043E => 0x10416, 1211 | 0x1043F => 0x10417, 1212 | 0x10440 => 0x10418, 1213 | 0x10441 => 0x10419, 1214 | 0x10442 => 0x1041A, 1215 | 0x10443 => 0x1041B, 1216 | 0x10444 => 0x1041C, 1217 | 0x10445 => 0x1041D, 1218 | 0x10446 => 0x1041E, 1219 | 0x10447 => 0x1041F, 1220 | 0x10448 => 0x10420, 1221 | 0x10449 => 0x10421, 1222 | 0x1044A => 0x10422, 1223 | 0x1044B => 0x10423, 1224 | 0x1044C => 0x10424, 1225 | 0x1044D => 0x10425, 1226 | 0x1044E => 0x10426, 1227 | 0x1044F => 0x10427, 1228 | 0x104D8 => 0x104B0, 1229 | 0x104D9 => 0x104B1, 1230 | 0x104DA => 0x104B2, 1231 | 0x104DB => 0x104B3, 1232 | 0x104DC => 0x104B4, 1233 | 0x104DD => 0x104B5, 1234 | 0x104DE => 0x104B6, 1235 | 0x104DF => 0x104B7, 1236 | 0x104E0 => 0x104B8, 1237 | 0x104E1 => 0x104B9, 1238 | 0x104E2 => 0x104BA, 1239 | 0x104E3 => 0x104BB, 1240 | 0x104E4 => 0x104BC, 1241 | 0x104E5 => 0x104BD, 1242 | 0x104E6 => 0x104BE, 1243 | 0x104E7 => 0x104BF, 1244 | 0x104E8 => 0x104C0, 1245 | 0x104E9 => 0x104C1, 1246 | 0x104EA => 0x104C2, 1247 | 0x104EB => 0x104C3, 1248 | 0x104EC => 0x104C4, 1249 | 0x104ED => 0x104C5, 1250 | 0x104EE => 0x104C6, 1251 | 0x104EF => 0x104C7, 1252 | 0x104F0 => 0x104C8, 1253 | 0x104F1 => 0x104C9, 1254 | 0x104F2 => 0x104CA, 1255 | 0x104F3 => 0x104CB, 1256 | 0x104F4 => 0x104CC, 1257 | 0x104F5 => 0x104CD, 1258 | 0x104F6 => 0x104CE, 1259 | 0x104F7 => 0x104CF, 1260 | 0x104F8 => 0x104D0, 1261 | 0x104F9 => 0x104D1, 1262 | 0x104FA => 0x104D2, 1263 | 0x104FB => 0x104D3, 1264 | 0x10CC0 => 0x10C80, 1265 | 0x10CC1 => 0x10C81, 1266 | 0x10CC2 => 0x10C82, 1267 | 0x10CC3 => 0x10C83, 1268 | 0x10CC4 => 0x10C84, 1269 | 0x10CC5 => 0x10C85, 1270 | 0x10CC6 => 0x10C86, 1271 | 0x10CC7 => 0x10C87, 1272 | 0x10CC8 => 0x10C88, 1273 | 0x10CC9 => 0x10C89, 1274 | 0x10CCA => 0x10C8A, 1275 | 0x10CCB => 0x10C8B, 1276 | 0x10CCC => 0x10C8C, 1277 | 0x10CCD => 0x10C8D, 1278 | 0x10CCE => 0x10C8E, 1279 | 0x10CCF => 0x10C8F, 1280 | 0x10CD0 => 0x10C90, 1281 | 0x10CD1 => 0x10C91, 1282 | 0x10CD2 => 0x10C92, 1283 | 0x10CD3 => 0x10C93, 1284 | 0x10CD4 => 0x10C94, 1285 | 0x10CD5 => 0x10C95, 1286 | 0x10CD6 => 0x10C96, 1287 | 0x10CD7 => 0x10C97, 1288 | 0x10CD8 => 0x10C98, 1289 | 0x10CD9 => 0x10C99, 1290 | 0x10CDA => 0x10C9A, 1291 | 0x10CDB => 0x10C9B, 1292 | 0x10CDC => 0x10C9C, 1293 | 0x10CDD => 0x10C9D, 1294 | 0x10CDE => 0x10C9E, 1295 | 0x10CDF => 0x10C9F, 1296 | 0x10CE0 => 0x10CA0, 1297 | 0x10CE1 => 0x10CA1, 1298 | 0x10CE2 => 0x10CA2, 1299 | 0x10CE3 => 0x10CA3, 1300 | 0x10CE4 => 0x10CA4, 1301 | 0x10CE5 => 0x10CA5, 1302 | 0x10CE6 => 0x10CA6, 1303 | 0x10CE7 => 0x10CA7, 1304 | 0x10CE8 => 0x10CA8, 1305 | 0x10CE9 => 0x10CA9, 1306 | 0x10CEA => 0x10CAA, 1307 | 0x10CEB => 0x10CAB, 1308 | 0x10CEC => 0x10CAC, 1309 | 0x10CED => 0x10CAD, 1310 | 0x10CEE => 0x10CAE, 1311 | 0x10CEF => 0x10CAF, 1312 | 0x10CF0 => 0x10CB0, 1313 | 0x10CF1 => 0x10CB1, 1314 | 0x10CF2 => 0x10CB2, 1315 | 0x118C0 => 0x118A0, 1316 | 0x118C1 => 0x118A1, 1317 | 0x118C2 => 0x118A2, 1318 | 0x118C3 => 0x118A3, 1319 | 0x118C4 => 0x118A4, 1320 | 0x118C5 => 0x118A5, 1321 | 0x118C6 => 0x118A6, 1322 | 0x118C7 => 0x118A7, 1323 | 0x118C8 => 0x118A8, 1324 | 0x118C9 => 0x118A9, 1325 | 0x118CA => 0x118AA, 1326 | 0x118CB => 0x118AB, 1327 | 0x118CC => 0x118AC, 1328 | 0x118CD => 0x118AD, 1329 | 0x118CE => 0x118AE, 1330 | 0x118CF => 0x118AF, 1331 | 0x118D0 => 0x118B0, 1332 | 0x118D1 => 0x118B1, 1333 | 0x118D2 => 0x118B2, 1334 | 0x118D3 => 0x118B3, 1335 | 0x118D4 => 0x118B4, 1336 | 0x118D5 => 0x118B5, 1337 | 0x118D6 => 0x118B6, 1338 | 0x118D7 => 0x118B7, 1339 | 0x118D8 => 0x118B8, 1340 | 0x118D9 => 0x118B9, 1341 | 0x118DA => 0x118BA, 1342 | 0x118DB => 0x118BB, 1343 | 0x118DC => 0x118BC, 1344 | 0x118DD => 0x118BD, 1345 | 0x118DE => 0x118BE, 1346 | 0x118DF => 0x118BF, 1347 | 0x16E60 => 0x16E40, 1348 | 0x16E61 => 0x16E41, 1349 | 0x16E62 => 0x16E42, 1350 | 0x16E63 => 0x16E43, 1351 | 0x16E64 => 0x16E44, 1352 | 0x16E65 => 0x16E45, 1353 | 0x16E66 => 0x16E46, 1354 | 0x16E67 => 0x16E47, 1355 | 0x16E68 => 0x16E48, 1356 | 0x16E69 => 0x16E49, 1357 | 0x16E6A => 0x16E4A, 1358 | 0x16E6B => 0x16E4B, 1359 | 0x16E6C => 0x16E4C, 1360 | 0x16E6D => 0x16E4D, 1361 | 0x16E6E => 0x16E4E, 1362 | 0x16E6F => 0x16E4F, 1363 | 0x16E70 => 0x16E50, 1364 | 0x16E71 => 0x16E51, 1365 | 0x16E72 => 0x16E52, 1366 | 0x16E73 => 0x16E53, 1367 | 0x16E74 => 0x16E54, 1368 | 0x16E75 => 0x16E55, 1369 | 0x16E76 => 0x16E56, 1370 | 0x16E77 => 0x16E57, 1371 | 0x16E78 => 0x16E58, 1372 | 0x16E79 => 0x16E59, 1373 | 0x16E7A => 0x16E5A, 1374 | 0x16E7B => 0x16E5B, 1375 | 0x16E7C => 0x16E5C, 1376 | 0x16E7D => 0x16E5D, 1377 | 0x16E7E => 0x16E5E, 1378 | 0x16E7F => 0x16E5F, 1379 | 0x1E922 => 0x1E900, 1380 | 0x1E923 => 0x1E901, 1381 | 0x1E924 => 0x1E902, 1382 | 0x1E925 => 0x1E903, 1383 | 0x1E926 => 0x1E904, 1384 | 0x1E927 => 0x1E905, 1385 | 0x1E928 => 0x1E906, 1386 | 0x1E929 => 0x1E907, 1387 | 0x1E92A => 0x1E908, 1388 | 0x1E92B => 0x1E909, 1389 | 0x1E92C => 0x1E90A, 1390 | 0x1E92D => 0x1E90B, 1391 | 0x1E92E => 0x1E90C, 1392 | 0x1E92F => 0x1E90D, 1393 | 0x1E930 => 0x1E90E, 1394 | 0x1E931 => 0x1E90F, 1395 | 0x1E932 => 0x1E910, 1396 | 0x1E933 => 0x1E911, 1397 | 0x1E934 => 0x1E912, 1398 | 0x1E935 => 0x1E913, 1399 | 0x1E936 => 0x1E914, 1400 | 0x1E937 => 0x1E915, 1401 | 0x1E938 => 0x1E916, 1402 | 0x1E939 => 0x1E917, 1403 | 0x1E93A => 0x1E918, 1404 | 0x1E93B => 0x1E919, 1405 | 0x1E93C => 0x1E91A, 1406 | 0x1E93D => 0x1E91B, 1407 | 0x1E93E => 0x1E91C, 1408 | 0x1E93F => 0x1E91D, 1409 | 0x1E940 => 0x1E91E, 1410 | 0x1E941 => 0x1E91F, 1411 | 0x1E942 => 0x1E920, 1412 | 0x1E943 => 0x1E921, 1413 | ]; 1414 | -------------------------------------------------------------------------------- /res/fold.php: -------------------------------------------------------------------------------- 1 | 0x61, 4 | 0x42 => 0x62, 5 | 0x43 => 0x63, 6 | 0x44 => 0x64, 7 | 0x45 => 0x65, 8 | 0x46 => 0x66, 9 | 0x47 => 0x67, 10 | 0x48 => 0x68, 11 | 0x49 => 0x69, 12 | 0x4A => 0x6A, 13 | 0x4B => 0x6B, 14 | 0x4C => 0x6C, 15 | 0x4D => 0x6D, 16 | 0x4E => 0x6E, 17 | 0x4F => 0x6F, 18 | 0x50 => 0x70, 19 | 0x51 => 0x71, 20 | 0x52 => 0x72, 21 | 0x53 => 0x73, 22 | 0x54 => 0x74, 23 | 0x55 => 0x75, 24 | 0x56 => 0x76, 25 | 0x57 => 0x77, 26 | 0x58 => 0x78, 27 | 0x59 => 0x79, 28 | 0x5A => 0x7A, 29 | 0xB5 => 0x3BC, 30 | 0xC0 => 0xE0, 31 | 0xC1 => 0xE1, 32 | 0xC2 => 0xE2, 33 | 0xC3 => 0xE3, 34 | 0xC4 => 0xE4, 35 | 0xC5 => 0xE5, 36 | 0xC6 => 0xE6, 37 | 0xC7 => 0xE7, 38 | 0xC8 => 0xE8, 39 | 0xC9 => 0xE9, 40 | 0xCA => 0xEA, 41 | 0xCB => 0xEB, 42 | 0xCC => 0xEC, 43 | 0xCD => 0xED, 44 | 0xCE => 0xEE, 45 | 0xCF => 0xEF, 46 | 0xD0 => 0xF0, 47 | 0xD1 => 0xF1, 48 | 0xD2 => 0xF2, 49 | 0xD3 => 0xF3, 50 | 0xD4 => 0xF4, 51 | 0xD5 => 0xF5, 52 | 0xD6 => 0xF6, 53 | 0xD8 => 0xF8, 54 | 0xD9 => 0xF9, 55 | 0xDA => 0xFA, 56 | 0xDB => 0xFB, 57 | 0xDC => 0xFC, 58 | 0xDD => 0xFD, 59 | 0xDE => 0xFE, 60 | 0x100 => 0x101, 61 | 0x102 => 0x103, 62 | 0x104 => 0x105, 63 | 0x106 => 0x107, 64 | 0x108 => 0x109, 65 | 0x10A => 0x10B, 66 | 0x10C => 0x10D, 67 | 0x10E => 0x10F, 68 | 0x110 => 0x111, 69 | 0x112 => 0x113, 70 | 0x114 => 0x115, 71 | 0x116 => 0x117, 72 | 0x118 => 0x119, 73 | 0x11A => 0x11B, 74 | 0x11C => 0x11D, 75 | 0x11E => 0x11F, 76 | 0x120 => 0x121, 77 | 0x122 => 0x123, 78 | 0x124 => 0x125, 79 | 0x126 => 0x127, 80 | 0x128 => 0x129, 81 | 0x12A => 0x12B, 82 | 0x12C => 0x12D, 83 | 0x12E => 0x12F, 84 | 0x132 => 0x133, 85 | 0x134 => 0x135, 86 | 0x136 => 0x137, 87 | 0x139 => 0x13A, 88 | 0x13B => 0x13C, 89 | 0x13D => 0x13E, 90 | 0x13F => 0x140, 91 | 0x141 => 0x142, 92 | 0x143 => 0x144, 93 | 0x145 => 0x146, 94 | 0x147 => 0x148, 95 | 0x14A => 0x14B, 96 | 0x14C => 0x14D, 97 | 0x14E => 0x14F, 98 | 0x150 => 0x151, 99 | 0x152 => 0x153, 100 | 0x154 => 0x155, 101 | 0x156 => 0x157, 102 | 0x158 => 0x159, 103 | 0x15A => 0x15B, 104 | 0x15C => 0x15D, 105 | 0x15E => 0x15F, 106 | 0x160 => 0x161, 107 | 0x162 => 0x163, 108 | 0x164 => 0x165, 109 | 0x166 => 0x167, 110 | 0x168 => 0x169, 111 | 0x16A => 0x16B, 112 | 0x16C => 0x16D, 113 | 0x16E => 0x16F, 114 | 0x170 => 0x171, 115 | 0x172 => 0x173, 116 | 0x174 => 0x175, 117 | 0x176 => 0x177, 118 | 0x178 => 0xFF, 119 | 0x179 => 0x17A, 120 | 0x17B => 0x17C, 121 | 0x17D => 0x17E, 122 | 0x17F => 0x73, 123 | 0x181 => 0x253, 124 | 0x182 => 0x183, 125 | 0x184 => 0x185, 126 | 0x186 => 0x254, 127 | 0x187 => 0x188, 128 | 0x189 => 0x256, 129 | 0x18A => 0x257, 130 | 0x18B => 0x18C, 131 | 0x18E => 0x1DD, 132 | 0x18F => 0x259, 133 | 0x190 => 0x25B, 134 | 0x191 => 0x192, 135 | 0x193 => 0x260, 136 | 0x194 => 0x263, 137 | 0x196 => 0x269, 138 | 0x197 => 0x268, 139 | 0x198 => 0x199, 140 | 0x19C => 0x26F, 141 | 0x19D => 0x272, 142 | 0x19F => 0x275, 143 | 0x1A0 => 0x1A1, 144 | 0x1A2 => 0x1A3, 145 | 0x1A4 => 0x1A5, 146 | 0x1A6 => 0x280, 147 | 0x1A7 => 0x1A8, 148 | 0x1A9 => 0x283, 149 | 0x1AC => 0x1AD, 150 | 0x1AE => 0x288, 151 | 0x1AF => 0x1B0, 152 | 0x1B1 => 0x28A, 153 | 0x1B2 => 0x28B, 154 | 0x1B3 => 0x1B4, 155 | 0x1B5 => 0x1B6, 156 | 0x1B7 => 0x292, 157 | 0x1B8 => 0x1B9, 158 | 0x1BC => 0x1BD, 159 | 0x1C4 => 0x1C6, 160 | 0x1C5 => 0x1C6, 161 | 0x1C7 => 0x1C9, 162 | 0x1C8 => 0x1C9, 163 | 0x1CA => 0x1CC, 164 | 0x1CB => 0x1CC, 165 | 0x1CD => 0x1CE, 166 | 0x1CF => 0x1D0, 167 | 0x1D1 => 0x1D2, 168 | 0x1D3 => 0x1D4, 169 | 0x1D5 => 0x1D6, 170 | 0x1D7 => 0x1D8, 171 | 0x1D9 => 0x1DA, 172 | 0x1DB => 0x1DC, 173 | 0x1DE => 0x1DF, 174 | 0x1E0 => 0x1E1, 175 | 0x1E2 => 0x1E3, 176 | 0x1E4 => 0x1E5, 177 | 0x1E6 => 0x1E7, 178 | 0x1E8 => 0x1E9, 179 | 0x1EA => 0x1EB, 180 | 0x1EC => 0x1ED, 181 | 0x1EE => 0x1EF, 182 | 0x1F1 => 0x1F3, 183 | 0x1F2 => 0x1F3, 184 | 0x1F4 => 0x1F5, 185 | 0x1F6 => 0x195, 186 | 0x1F7 => 0x1BF, 187 | 0x1F8 => 0x1F9, 188 | 0x1FA => 0x1FB, 189 | 0x1FC => 0x1FD, 190 | 0x1FE => 0x1FF, 191 | 0x200 => 0x201, 192 | 0x202 => 0x203, 193 | 0x204 => 0x205, 194 | 0x206 => 0x207, 195 | 0x208 => 0x209, 196 | 0x20A => 0x20B, 197 | 0x20C => 0x20D, 198 | 0x20E => 0x20F, 199 | 0x210 => 0x211, 200 | 0x212 => 0x213, 201 | 0x214 => 0x215, 202 | 0x216 => 0x217, 203 | 0x218 => 0x219, 204 | 0x21A => 0x21B, 205 | 0x21C => 0x21D, 206 | 0x21E => 0x21F, 207 | 0x220 => 0x19E, 208 | 0x222 => 0x223, 209 | 0x224 => 0x225, 210 | 0x226 => 0x227, 211 | 0x228 => 0x229, 212 | 0x22A => 0x22B, 213 | 0x22C => 0x22D, 214 | 0x22E => 0x22F, 215 | 0x230 => 0x231, 216 | 0x232 => 0x233, 217 | 0x23A => 0x2C65, 218 | 0x23B => 0x23C, 219 | 0x23D => 0x19A, 220 | 0x23E => 0x2C66, 221 | 0x241 => 0x242, 222 | 0x243 => 0x180, 223 | 0x244 => 0x289, 224 | 0x245 => 0x28C, 225 | 0x246 => 0x247, 226 | 0x248 => 0x249, 227 | 0x24A => 0x24B, 228 | 0x24C => 0x24D, 229 | 0x24E => 0x24F, 230 | 0x345 => 0x3B9, 231 | 0x370 => 0x371, 232 | 0x372 => 0x373, 233 | 0x376 => 0x377, 234 | 0x37F => 0x3F3, 235 | 0x386 => 0x3AC, 236 | 0x388 => 0x3AD, 237 | 0x389 => 0x3AE, 238 | 0x38A => 0x3AF, 239 | 0x38C => 0x3CC, 240 | 0x38E => 0x3CD, 241 | 0x38F => 0x3CE, 242 | 0x391 => 0x3B1, 243 | 0x392 => 0x3B2, 244 | 0x393 => 0x3B3, 245 | 0x394 => 0x3B4, 246 | 0x395 => 0x3B5, 247 | 0x396 => 0x3B6, 248 | 0x397 => 0x3B7, 249 | 0x398 => 0x3B8, 250 | 0x399 => 0x3B9, 251 | 0x39A => 0x3BA, 252 | 0x39B => 0x3BB, 253 | 0x39C => 0x3BC, 254 | 0x39D => 0x3BD, 255 | 0x39E => 0x3BE, 256 | 0x39F => 0x3BF, 257 | 0x3A0 => 0x3C0, 258 | 0x3A1 => 0x3C1, 259 | 0x3A3 => 0x3C3, 260 | 0x3A4 => 0x3C4, 261 | 0x3A5 => 0x3C5, 262 | 0x3A6 => 0x3C6, 263 | 0x3A7 => 0x3C7, 264 | 0x3A8 => 0x3C8, 265 | 0x3A9 => 0x3C9, 266 | 0x3AA => 0x3CA, 267 | 0x3AB => 0x3CB, 268 | 0x3C2 => 0x3C3, 269 | 0x3CF => 0x3D7, 270 | 0x3D0 => 0x3B2, 271 | 0x3D1 => 0x3B8, 272 | 0x3D5 => 0x3C6, 273 | 0x3D6 => 0x3C0, 274 | 0x3D8 => 0x3D9, 275 | 0x3DA => 0x3DB, 276 | 0x3DC => 0x3DD, 277 | 0x3DE => 0x3DF, 278 | 0x3E0 => 0x3E1, 279 | 0x3E2 => 0x3E3, 280 | 0x3E4 => 0x3E5, 281 | 0x3E6 => 0x3E7, 282 | 0x3E8 => 0x3E9, 283 | 0x3EA => 0x3EB, 284 | 0x3EC => 0x3ED, 285 | 0x3EE => 0x3EF, 286 | 0x3F0 => 0x3BA, 287 | 0x3F1 => 0x3C1, 288 | 0x3F4 => 0x3B8, 289 | 0x3F5 => 0x3B5, 290 | 0x3F7 => 0x3F8, 291 | 0x3F9 => 0x3F2, 292 | 0x3FA => 0x3FB, 293 | 0x3FD => 0x37B, 294 | 0x3FE => 0x37C, 295 | 0x3FF => 0x37D, 296 | 0x400 => 0x450, 297 | 0x401 => 0x451, 298 | 0x402 => 0x452, 299 | 0x403 => 0x453, 300 | 0x404 => 0x454, 301 | 0x405 => 0x455, 302 | 0x406 => 0x456, 303 | 0x407 => 0x457, 304 | 0x408 => 0x458, 305 | 0x409 => 0x459, 306 | 0x40A => 0x45A, 307 | 0x40B => 0x45B, 308 | 0x40C => 0x45C, 309 | 0x40D => 0x45D, 310 | 0x40E => 0x45E, 311 | 0x40F => 0x45F, 312 | 0x410 => 0x430, 313 | 0x411 => 0x431, 314 | 0x412 => 0x432, 315 | 0x413 => 0x433, 316 | 0x414 => 0x434, 317 | 0x415 => 0x435, 318 | 0x416 => 0x436, 319 | 0x417 => 0x437, 320 | 0x418 => 0x438, 321 | 0x419 => 0x439, 322 | 0x41A => 0x43A, 323 | 0x41B => 0x43B, 324 | 0x41C => 0x43C, 325 | 0x41D => 0x43D, 326 | 0x41E => 0x43E, 327 | 0x41F => 0x43F, 328 | 0x420 => 0x440, 329 | 0x421 => 0x441, 330 | 0x422 => 0x442, 331 | 0x423 => 0x443, 332 | 0x424 => 0x444, 333 | 0x425 => 0x445, 334 | 0x426 => 0x446, 335 | 0x427 => 0x447, 336 | 0x428 => 0x448, 337 | 0x429 => 0x449, 338 | 0x42A => 0x44A, 339 | 0x42B => 0x44B, 340 | 0x42C => 0x44C, 341 | 0x42D => 0x44D, 342 | 0x42E => 0x44E, 343 | 0x42F => 0x44F, 344 | 0x460 => 0x461, 345 | 0x462 => 0x463, 346 | 0x464 => 0x465, 347 | 0x466 => 0x467, 348 | 0x468 => 0x469, 349 | 0x46A => 0x46B, 350 | 0x46C => 0x46D, 351 | 0x46E => 0x46F, 352 | 0x470 => 0x471, 353 | 0x472 => 0x473, 354 | 0x474 => 0x475, 355 | 0x476 => 0x477, 356 | 0x478 => 0x479, 357 | 0x47A => 0x47B, 358 | 0x47C => 0x47D, 359 | 0x47E => 0x47F, 360 | 0x480 => 0x481, 361 | 0x48A => 0x48B, 362 | 0x48C => 0x48D, 363 | 0x48E => 0x48F, 364 | 0x490 => 0x491, 365 | 0x492 => 0x493, 366 | 0x494 => 0x495, 367 | 0x496 => 0x497, 368 | 0x498 => 0x499, 369 | 0x49A => 0x49B, 370 | 0x49C => 0x49D, 371 | 0x49E => 0x49F, 372 | 0x4A0 => 0x4A1, 373 | 0x4A2 => 0x4A3, 374 | 0x4A4 => 0x4A5, 375 | 0x4A6 => 0x4A7, 376 | 0x4A8 => 0x4A9, 377 | 0x4AA => 0x4AB, 378 | 0x4AC => 0x4AD, 379 | 0x4AE => 0x4AF, 380 | 0x4B0 => 0x4B1, 381 | 0x4B2 => 0x4B3, 382 | 0x4B4 => 0x4B5, 383 | 0x4B6 => 0x4B7, 384 | 0x4B8 => 0x4B9, 385 | 0x4BA => 0x4BB, 386 | 0x4BC => 0x4BD, 387 | 0x4BE => 0x4BF, 388 | 0x4C0 => 0x4CF, 389 | 0x4C1 => 0x4C2, 390 | 0x4C3 => 0x4C4, 391 | 0x4C5 => 0x4C6, 392 | 0x4C7 => 0x4C8, 393 | 0x4C9 => 0x4CA, 394 | 0x4CB => 0x4CC, 395 | 0x4CD => 0x4CE, 396 | 0x4D0 => 0x4D1, 397 | 0x4D2 => 0x4D3, 398 | 0x4D4 => 0x4D5, 399 | 0x4D6 => 0x4D7, 400 | 0x4D8 => 0x4D9, 401 | 0x4DA => 0x4DB, 402 | 0x4DC => 0x4DD, 403 | 0x4DE => 0x4DF, 404 | 0x4E0 => 0x4E1, 405 | 0x4E2 => 0x4E3, 406 | 0x4E4 => 0x4E5, 407 | 0x4E6 => 0x4E7, 408 | 0x4E8 => 0x4E9, 409 | 0x4EA => 0x4EB, 410 | 0x4EC => 0x4ED, 411 | 0x4EE => 0x4EF, 412 | 0x4F0 => 0x4F1, 413 | 0x4F2 => 0x4F3, 414 | 0x4F4 => 0x4F5, 415 | 0x4F6 => 0x4F7, 416 | 0x4F8 => 0x4F9, 417 | 0x4FA => 0x4FB, 418 | 0x4FC => 0x4FD, 419 | 0x4FE => 0x4FF, 420 | 0x500 => 0x501, 421 | 0x502 => 0x503, 422 | 0x504 => 0x505, 423 | 0x506 => 0x507, 424 | 0x508 => 0x509, 425 | 0x50A => 0x50B, 426 | 0x50C => 0x50D, 427 | 0x50E => 0x50F, 428 | 0x510 => 0x511, 429 | 0x512 => 0x513, 430 | 0x514 => 0x515, 431 | 0x516 => 0x517, 432 | 0x518 => 0x519, 433 | 0x51A => 0x51B, 434 | 0x51C => 0x51D, 435 | 0x51E => 0x51F, 436 | 0x520 => 0x521, 437 | 0x522 => 0x523, 438 | 0x524 => 0x525, 439 | 0x526 => 0x527, 440 | 0x528 => 0x529, 441 | 0x52A => 0x52B, 442 | 0x52C => 0x52D, 443 | 0x52E => 0x52F, 444 | 0x531 => 0x561, 445 | 0x532 => 0x562, 446 | 0x533 => 0x563, 447 | 0x534 => 0x564, 448 | 0x535 => 0x565, 449 | 0x536 => 0x566, 450 | 0x537 => 0x567, 451 | 0x538 => 0x568, 452 | 0x539 => 0x569, 453 | 0x53A => 0x56A, 454 | 0x53B => 0x56B, 455 | 0x53C => 0x56C, 456 | 0x53D => 0x56D, 457 | 0x53E => 0x56E, 458 | 0x53F => 0x56F, 459 | 0x540 => 0x570, 460 | 0x541 => 0x571, 461 | 0x542 => 0x572, 462 | 0x543 => 0x573, 463 | 0x544 => 0x574, 464 | 0x545 => 0x575, 465 | 0x546 => 0x576, 466 | 0x547 => 0x577, 467 | 0x548 => 0x578, 468 | 0x549 => 0x579, 469 | 0x54A => 0x57A, 470 | 0x54B => 0x57B, 471 | 0x54C => 0x57C, 472 | 0x54D => 0x57D, 473 | 0x54E => 0x57E, 474 | 0x54F => 0x57F, 475 | 0x550 => 0x580, 476 | 0x551 => 0x581, 477 | 0x552 => 0x582, 478 | 0x553 => 0x583, 479 | 0x554 => 0x584, 480 | 0x555 => 0x585, 481 | 0x556 => 0x586, 482 | 0x10A0 => 0x2D00, 483 | 0x10A1 => 0x2D01, 484 | 0x10A2 => 0x2D02, 485 | 0x10A3 => 0x2D03, 486 | 0x10A4 => 0x2D04, 487 | 0x10A5 => 0x2D05, 488 | 0x10A6 => 0x2D06, 489 | 0x10A7 => 0x2D07, 490 | 0x10A8 => 0x2D08, 491 | 0x10A9 => 0x2D09, 492 | 0x10AA => 0x2D0A, 493 | 0x10AB => 0x2D0B, 494 | 0x10AC => 0x2D0C, 495 | 0x10AD => 0x2D0D, 496 | 0x10AE => 0x2D0E, 497 | 0x10AF => 0x2D0F, 498 | 0x10B0 => 0x2D10, 499 | 0x10B1 => 0x2D11, 500 | 0x10B2 => 0x2D12, 501 | 0x10B3 => 0x2D13, 502 | 0x10B4 => 0x2D14, 503 | 0x10B5 => 0x2D15, 504 | 0x10B6 => 0x2D16, 505 | 0x10B7 => 0x2D17, 506 | 0x10B8 => 0x2D18, 507 | 0x10B9 => 0x2D19, 508 | 0x10BA => 0x2D1A, 509 | 0x10BB => 0x2D1B, 510 | 0x10BC => 0x2D1C, 511 | 0x10BD => 0x2D1D, 512 | 0x10BE => 0x2D1E, 513 | 0x10BF => 0x2D1F, 514 | 0x10C0 => 0x2D20, 515 | 0x10C1 => 0x2D21, 516 | 0x10C2 => 0x2D22, 517 | 0x10C3 => 0x2D23, 518 | 0x10C4 => 0x2D24, 519 | 0x10C5 => 0x2D25, 520 | 0x10C7 => 0x2D27, 521 | 0x10CD => 0x2D2D, 522 | 0x13F8 => 0x13F0, 523 | 0x13F9 => 0x13F1, 524 | 0x13FA => 0x13F2, 525 | 0x13FB => 0x13F3, 526 | 0x13FC => 0x13F4, 527 | 0x13FD => 0x13F5, 528 | 0x1C80 => 0x432, 529 | 0x1C81 => 0x434, 530 | 0x1C82 => 0x43E, 531 | 0x1C83 => 0x441, 532 | 0x1C84 => 0x442, 533 | 0x1C85 => 0x442, 534 | 0x1C86 => 0x44A, 535 | 0x1C87 => 0x463, 536 | 0x1C88 => 0xA64B, 537 | 0x1C90 => 0x10D0, 538 | 0x1C91 => 0x10D1, 539 | 0x1C92 => 0x10D2, 540 | 0x1C93 => 0x10D3, 541 | 0x1C94 => 0x10D4, 542 | 0x1C95 => 0x10D5, 543 | 0x1C96 => 0x10D6, 544 | 0x1C97 => 0x10D7, 545 | 0x1C98 => 0x10D8, 546 | 0x1C99 => 0x10D9, 547 | 0x1C9A => 0x10DA, 548 | 0x1C9B => 0x10DB, 549 | 0x1C9C => 0x10DC, 550 | 0x1C9D => 0x10DD, 551 | 0x1C9E => 0x10DE, 552 | 0x1C9F => 0x10DF, 553 | 0x1CA0 => 0x10E0, 554 | 0x1CA1 => 0x10E1, 555 | 0x1CA2 => 0x10E2, 556 | 0x1CA3 => 0x10E3, 557 | 0x1CA4 => 0x10E4, 558 | 0x1CA5 => 0x10E5, 559 | 0x1CA6 => 0x10E6, 560 | 0x1CA7 => 0x10E7, 561 | 0x1CA8 => 0x10E8, 562 | 0x1CA9 => 0x10E9, 563 | 0x1CAA => 0x10EA, 564 | 0x1CAB => 0x10EB, 565 | 0x1CAC => 0x10EC, 566 | 0x1CAD => 0x10ED, 567 | 0x1CAE => 0x10EE, 568 | 0x1CAF => 0x10EF, 569 | 0x1CB0 => 0x10F0, 570 | 0x1CB1 => 0x10F1, 571 | 0x1CB2 => 0x10F2, 572 | 0x1CB3 => 0x10F3, 573 | 0x1CB4 => 0x10F4, 574 | 0x1CB5 => 0x10F5, 575 | 0x1CB6 => 0x10F6, 576 | 0x1CB7 => 0x10F7, 577 | 0x1CB8 => 0x10F8, 578 | 0x1CB9 => 0x10F9, 579 | 0x1CBA => 0x10FA, 580 | 0x1CBD => 0x10FD, 581 | 0x1CBE => 0x10FE, 582 | 0x1CBF => 0x10FF, 583 | 0x1E00 => 0x1E01, 584 | 0x1E02 => 0x1E03, 585 | 0x1E04 => 0x1E05, 586 | 0x1E06 => 0x1E07, 587 | 0x1E08 => 0x1E09, 588 | 0x1E0A => 0x1E0B, 589 | 0x1E0C => 0x1E0D, 590 | 0x1E0E => 0x1E0F, 591 | 0x1E10 => 0x1E11, 592 | 0x1E12 => 0x1E13, 593 | 0x1E14 => 0x1E15, 594 | 0x1E16 => 0x1E17, 595 | 0x1E18 => 0x1E19, 596 | 0x1E1A => 0x1E1B, 597 | 0x1E1C => 0x1E1D, 598 | 0x1E1E => 0x1E1F, 599 | 0x1E20 => 0x1E21, 600 | 0x1E22 => 0x1E23, 601 | 0x1E24 => 0x1E25, 602 | 0x1E26 => 0x1E27, 603 | 0x1E28 => 0x1E29, 604 | 0x1E2A => 0x1E2B, 605 | 0x1E2C => 0x1E2D, 606 | 0x1E2E => 0x1E2F, 607 | 0x1E30 => 0x1E31, 608 | 0x1E32 => 0x1E33, 609 | 0x1E34 => 0x1E35, 610 | 0x1E36 => 0x1E37, 611 | 0x1E38 => 0x1E39, 612 | 0x1E3A => 0x1E3B, 613 | 0x1E3C => 0x1E3D, 614 | 0x1E3E => 0x1E3F, 615 | 0x1E40 => 0x1E41, 616 | 0x1E42 => 0x1E43, 617 | 0x1E44 => 0x1E45, 618 | 0x1E46 => 0x1E47, 619 | 0x1E48 => 0x1E49, 620 | 0x1E4A => 0x1E4B, 621 | 0x1E4C => 0x1E4D, 622 | 0x1E4E => 0x1E4F, 623 | 0x1E50 => 0x1E51, 624 | 0x1E52 => 0x1E53, 625 | 0x1E54 => 0x1E55, 626 | 0x1E56 => 0x1E57, 627 | 0x1E58 => 0x1E59, 628 | 0x1E5A => 0x1E5B, 629 | 0x1E5C => 0x1E5D, 630 | 0x1E5E => 0x1E5F, 631 | 0x1E60 => 0x1E61, 632 | 0x1E62 => 0x1E63, 633 | 0x1E64 => 0x1E65, 634 | 0x1E66 => 0x1E67, 635 | 0x1E68 => 0x1E69, 636 | 0x1E6A => 0x1E6B, 637 | 0x1E6C => 0x1E6D, 638 | 0x1E6E => 0x1E6F, 639 | 0x1E70 => 0x1E71, 640 | 0x1E72 => 0x1E73, 641 | 0x1E74 => 0x1E75, 642 | 0x1E76 => 0x1E77, 643 | 0x1E78 => 0x1E79, 644 | 0x1E7A => 0x1E7B, 645 | 0x1E7C => 0x1E7D, 646 | 0x1E7E => 0x1E7F, 647 | 0x1E80 => 0x1E81, 648 | 0x1E82 => 0x1E83, 649 | 0x1E84 => 0x1E85, 650 | 0x1E86 => 0x1E87, 651 | 0x1E88 => 0x1E89, 652 | 0x1E8A => 0x1E8B, 653 | 0x1E8C => 0x1E8D, 654 | 0x1E8E => 0x1E8F, 655 | 0x1E90 => 0x1E91, 656 | 0x1E92 => 0x1E93, 657 | 0x1E94 => 0x1E95, 658 | 0x1E9B => 0x1E61, 659 | 0x1E9E => 0xDF, 660 | 0x1EA0 => 0x1EA1, 661 | 0x1EA2 => 0x1EA3, 662 | 0x1EA4 => 0x1EA5, 663 | 0x1EA6 => 0x1EA7, 664 | 0x1EA8 => 0x1EA9, 665 | 0x1EAA => 0x1EAB, 666 | 0x1EAC => 0x1EAD, 667 | 0x1EAE => 0x1EAF, 668 | 0x1EB0 => 0x1EB1, 669 | 0x1EB2 => 0x1EB3, 670 | 0x1EB4 => 0x1EB5, 671 | 0x1EB6 => 0x1EB7, 672 | 0x1EB8 => 0x1EB9, 673 | 0x1EBA => 0x1EBB, 674 | 0x1EBC => 0x1EBD, 675 | 0x1EBE => 0x1EBF, 676 | 0x1EC0 => 0x1EC1, 677 | 0x1EC2 => 0x1EC3, 678 | 0x1EC4 => 0x1EC5, 679 | 0x1EC6 => 0x1EC7, 680 | 0x1EC8 => 0x1EC9, 681 | 0x1ECA => 0x1ECB, 682 | 0x1ECC => 0x1ECD, 683 | 0x1ECE => 0x1ECF, 684 | 0x1ED0 => 0x1ED1, 685 | 0x1ED2 => 0x1ED3, 686 | 0x1ED4 => 0x1ED5, 687 | 0x1ED6 => 0x1ED7, 688 | 0x1ED8 => 0x1ED9, 689 | 0x1EDA => 0x1EDB, 690 | 0x1EDC => 0x1EDD, 691 | 0x1EDE => 0x1EDF, 692 | 0x1EE0 => 0x1EE1, 693 | 0x1EE2 => 0x1EE3, 694 | 0x1EE4 => 0x1EE5, 695 | 0x1EE6 => 0x1EE7, 696 | 0x1EE8 => 0x1EE9, 697 | 0x1EEA => 0x1EEB, 698 | 0x1EEC => 0x1EED, 699 | 0x1EEE => 0x1EEF, 700 | 0x1EF0 => 0x1EF1, 701 | 0x1EF2 => 0x1EF3, 702 | 0x1EF4 => 0x1EF5, 703 | 0x1EF6 => 0x1EF7, 704 | 0x1EF8 => 0x1EF9, 705 | 0x1EFA => 0x1EFB, 706 | 0x1EFC => 0x1EFD, 707 | 0x1EFE => 0x1EFF, 708 | 0x1F08 => 0x1F00, 709 | 0x1F09 => 0x1F01, 710 | 0x1F0A => 0x1F02, 711 | 0x1F0B => 0x1F03, 712 | 0x1F0C => 0x1F04, 713 | 0x1F0D => 0x1F05, 714 | 0x1F0E => 0x1F06, 715 | 0x1F0F => 0x1F07, 716 | 0x1F18 => 0x1F10, 717 | 0x1F19 => 0x1F11, 718 | 0x1F1A => 0x1F12, 719 | 0x1F1B => 0x1F13, 720 | 0x1F1C => 0x1F14, 721 | 0x1F1D => 0x1F15, 722 | 0x1F28 => 0x1F20, 723 | 0x1F29 => 0x1F21, 724 | 0x1F2A => 0x1F22, 725 | 0x1F2B => 0x1F23, 726 | 0x1F2C => 0x1F24, 727 | 0x1F2D => 0x1F25, 728 | 0x1F2E => 0x1F26, 729 | 0x1F2F => 0x1F27, 730 | 0x1F38 => 0x1F30, 731 | 0x1F39 => 0x1F31, 732 | 0x1F3A => 0x1F32, 733 | 0x1F3B => 0x1F33, 734 | 0x1F3C => 0x1F34, 735 | 0x1F3D => 0x1F35, 736 | 0x1F3E => 0x1F36, 737 | 0x1F3F => 0x1F37, 738 | 0x1F48 => 0x1F40, 739 | 0x1F49 => 0x1F41, 740 | 0x1F4A => 0x1F42, 741 | 0x1F4B => 0x1F43, 742 | 0x1F4C => 0x1F44, 743 | 0x1F4D => 0x1F45, 744 | 0x1F59 => 0x1F51, 745 | 0x1F5B => 0x1F53, 746 | 0x1F5D => 0x1F55, 747 | 0x1F5F => 0x1F57, 748 | 0x1F68 => 0x1F60, 749 | 0x1F69 => 0x1F61, 750 | 0x1F6A => 0x1F62, 751 | 0x1F6B => 0x1F63, 752 | 0x1F6C => 0x1F64, 753 | 0x1F6D => 0x1F65, 754 | 0x1F6E => 0x1F66, 755 | 0x1F6F => 0x1F67, 756 | 0x1F88 => 0x1F80, 757 | 0x1F89 => 0x1F81, 758 | 0x1F8A => 0x1F82, 759 | 0x1F8B => 0x1F83, 760 | 0x1F8C => 0x1F84, 761 | 0x1F8D => 0x1F85, 762 | 0x1F8E => 0x1F86, 763 | 0x1F8F => 0x1F87, 764 | 0x1F98 => 0x1F90, 765 | 0x1F99 => 0x1F91, 766 | 0x1F9A => 0x1F92, 767 | 0x1F9B => 0x1F93, 768 | 0x1F9C => 0x1F94, 769 | 0x1F9D => 0x1F95, 770 | 0x1F9E => 0x1F96, 771 | 0x1F9F => 0x1F97, 772 | 0x1FA8 => 0x1FA0, 773 | 0x1FA9 => 0x1FA1, 774 | 0x1FAA => 0x1FA2, 775 | 0x1FAB => 0x1FA3, 776 | 0x1FAC => 0x1FA4, 777 | 0x1FAD => 0x1FA5, 778 | 0x1FAE => 0x1FA6, 779 | 0x1FAF => 0x1FA7, 780 | 0x1FB8 => 0x1FB0, 781 | 0x1FB9 => 0x1FB1, 782 | 0x1FBA => 0x1F70, 783 | 0x1FBB => 0x1F71, 784 | 0x1FBC => 0x1FB3, 785 | 0x1FBE => 0x3B9, 786 | 0x1FC8 => 0x1F72, 787 | 0x1FC9 => 0x1F73, 788 | 0x1FCA => 0x1F74, 789 | 0x1FCB => 0x1F75, 790 | 0x1FCC => 0x1FC3, 791 | 0x1FD8 => 0x1FD0, 792 | 0x1FD9 => 0x1FD1, 793 | 0x1FDA => 0x1F76, 794 | 0x1FDB => 0x1F77, 795 | 0x1FE8 => 0x1FE0, 796 | 0x1FE9 => 0x1FE1, 797 | 0x1FEA => 0x1F7A, 798 | 0x1FEB => 0x1F7B, 799 | 0x1FEC => 0x1FE5, 800 | 0x1FF8 => 0x1F78, 801 | 0x1FF9 => 0x1F79, 802 | 0x1FFA => 0x1F7C, 803 | 0x1FFB => 0x1F7D, 804 | 0x1FFC => 0x1FF3, 805 | 0x2126 => 0x3C9, 806 | 0x212A => 0x6B, 807 | 0x212B => 0xE5, 808 | 0x2132 => 0x214E, 809 | 0x2160 => 0x2170, 810 | 0x2161 => 0x2171, 811 | 0x2162 => 0x2172, 812 | 0x2163 => 0x2173, 813 | 0x2164 => 0x2174, 814 | 0x2165 => 0x2175, 815 | 0x2166 => 0x2176, 816 | 0x2167 => 0x2177, 817 | 0x2168 => 0x2178, 818 | 0x2169 => 0x2179, 819 | 0x216A => 0x217A, 820 | 0x216B => 0x217B, 821 | 0x216C => 0x217C, 822 | 0x216D => 0x217D, 823 | 0x216E => 0x217E, 824 | 0x216F => 0x217F, 825 | 0x2183 => 0x2184, 826 | 0x24B6 => 0x24D0, 827 | 0x24B7 => 0x24D1, 828 | 0x24B8 => 0x24D2, 829 | 0x24B9 => 0x24D3, 830 | 0x24BA => 0x24D4, 831 | 0x24BB => 0x24D5, 832 | 0x24BC => 0x24D6, 833 | 0x24BD => 0x24D7, 834 | 0x24BE => 0x24D8, 835 | 0x24BF => 0x24D9, 836 | 0x24C0 => 0x24DA, 837 | 0x24C1 => 0x24DB, 838 | 0x24C2 => 0x24DC, 839 | 0x24C3 => 0x24DD, 840 | 0x24C4 => 0x24DE, 841 | 0x24C5 => 0x24DF, 842 | 0x24C6 => 0x24E0, 843 | 0x24C7 => 0x24E1, 844 | 0x24C8 => 0x24E2, 845 | 0x24C9 => 0x24E3, 846 | 0x24CA => 0x24E4, 847 | 0x24CB => 0x24E5, 848 | 0x24CC => 0x24E6, 849 | 0x24CD => 0x24E7, 850 | 0x24CE => 0x24E8, 851 | 0x24CF => 0x24E9, 852 | 0x2C00 => 0x2C30, 853 | 0x2C01 => 0x2C31, 854 | 0x2C02 => 0x2C32, 855 | 0x2C03 => 0x2C33, 856 | 0x2C04 => 0x2C34, 857 | 0x2C05 => 0x2C35, 858 | 0x2C06 => 0x2C36, 859 | 0x2C07 => 0x2C37, 860 | 0x2C08 => 0x2C38, 861 | 0x2C09 => 0x2C39, 862 | 0x2C0A => 0x2C3A, 863 | 0x2C0B => 0x2C3B, 864 | 0x2C0C => 0x2C3C, 865 | 0x2C0D => 0x2C3D, 866 | 0x2C0E => 0x2C3E, 867 | 0x2C0F => 0x2C3F, 868 | 0x2C10 => 0x2C40, 869 | 0x2C11 => 0x2C41, 870 | 0x2C12 => 0x2C42, 871 | 0x2C13 => 0x2C43, 872 | 0x2C14 => 0x2C44, 873 | 0x2C15 => 0x2C45, 874 | 0x2C16 => 0x2C46, 875 | 0x2C17 => 0x2C47, 876 | 0x2C18 => 0x2C48, 877 | 0x2C19 => 0x2C49, 878 | 0x2C1A => 0x2C4A, 879 | 0x2C1B => 0x2C4B, 880 | 0x2C1C => 0x2C4C, 881 | 0x2C1D => 0x2C4D, 882 | 0x2C1E => 0x2C4E, 883 | 0x2C1F => 0x2C4F, 884 | 0x2C20 => 0x2C50, 885 | 0x2C21 => 0x2C51, 886 | 0x2C22 => 0x2C52, 887 | 0x2C23 => 0x2C53, 888 | 0x2C24 => 0x2C54, 889 | 0x2C25 => 0x2C55, 890 | 0x2C26 => 0x2C56, 891 | 0x2C27 => 0x2C57, 892 | 0x2C28 => 0x2C58, 893 | 0x2C29 => 0x2C59, 894 | 0x2C2A => 0x2C5A, 895 | 0x2C2B => 0x2C5B, 896 | 0x2C2C => 0x2C5C, 897 | 0x2C2D => 0x2C5D, 898 | 0x2C2E => 0x2C5E, 899 | 0x2C60 => 0x2C61, 900 | 0x2C62 => 0x26B, 901 | 0x2C63 => 0x1D7D, 902 | 0x2C64 => 0x27D, 903 | 0x2C67 => 0x2C68, 904 | 0x2C69 => 0x2C6A, 905 | 0x2C6B => 0x2C6C, 906 | 0x2C6D => 0x251, 907 | 0x2C6E => 0x271, 908 | 0x2C6F => 0x250, 909 | 0x2C70 => 0x252, 910 | 0x2C72 => 0x2C73, 911 | 0x2C75 => 0x2C76, 912 | 0x2C7E => 0x23F, 913 | 0x2C7F => 0x240, 914 | 0x2C80 => 0x2C81, 915 | 0x2C82 => 0x2C83, 916 | 0x2C84 => 0x2C85, 917 | 0x2C86 => 0x2C87, 918 | 0x2C88 => 0x2C89, 919 | 0x2C8A => 0x2C8B, 920 | 0x2C8C => 0x2C8D, 921 | 0x2C8E => 0x2C8F, 922 | 0x2C90 => 0x2C91, 923 | 0x2C92 => 0x2C93, 924 | 0x2C94 => 0x2C95, 925 | 0x2C96 => 0x2C97, 926 | 0x2C98 => 0x2C99, 927 | 0x2C9A => 0x2C9B, 928 | 0x2C9C => 0x2C9D, 929 | 0x2C9E => 0x2C9F, 930 | 0x2CA0 => 0x2CA1, 931 | 0x2CA2 => 0x2CA3, 932 | 0x2CA4 => 0x2CA5, 933 | 0x2CA6 => 0x2CA7, 934 | 0x2CA8 => 0x2CA9, 935 | 0x2CAA => 0x2CAB, 936 | 0x2CAC => 0x2CAD, 937 | 0x2CAE => 0x2CAF, 938 | 0x2CB0 => 0x2CB1, 939 | 0x2CB2 => 0x2CB3, 940 | 0x2CB4 => 0x2CB5, 941 | 0x2CB6 => 0x2CB7, 942 | 0x2CB8 => 0x2CB9, 943 | 0x2CBA => 0x2CBB, 944 | 0x2CBC => 0x2CBD, 945 | 0x2CBE => 0x2CBF, 946 | 0x2CC0 => 0x2CC1, 947 | 0x2CC2 => 0x2CC3, 948 | 0x2CC4 => 0x2CC5, 949 | 0x2CC6 => 0x2CC7, 950 | 0x2CC8 => 0x2CC9, 951 | 0x2CCA => 0x2CCB, 952 | 0x2CCC => 0x2CCD, 953 | 0x2CCE => 0x2CCF, 954 | 0x2CD0 => 0x2CD1, 955 | 0x2CD2 => 0x2CD3, 956 | 0x2CD4 => 0x2CD5, 957 | 0x2CD6 => 0x2CD7, 958 | 0x2CD8 => 0x2CD9, 959 | 0x2CDA => 0x2CDB, 960 | 0x2CDC => 0x2CDD, 961 | 0x2CDE => 0x2CDF, 962 | 0x2CE0 => 0x2CE1, 963 | 0x2CE2 => 0x2CE3, 964 | 0x2CEB => 0x2CEC, 965 | 0x2CED => 0x2CEE, 966 | 0x2CF2 => 0x2CF3, 967 | 0xA640 => 0xA641, 968 | 0xA642 => 0xA643, 969 | 0xA644 => 0xA645, 970 | 0xA646 => 0xA647, 971 | 0xA648 => 0xA649, 972 | 0xA64A => 0xA64B, 973 | 0xA64C => 0xA64D, 974 | 0xA64E => 0xA64F, 975 | 0xA650 => 0xA651, 976 | 0xA652 => 0xA653, 977 | 0xA654 => 0xA655, 978 | 0xA656 => 0xA657, 979 | 0xA658 => 0xA659, 980 | 0xA65A => 0xA65B, 981 | 0xA65C => 0xA65D, 982 | 0xA65E => 0xA65F, 983 | 0xA660 => 0xA661, 984 | 0xA662 => 0xA663, 985 | 0xA664 => 0xA665, 986 | 0xA666 => 0xA667, 987 | 0xA668 => 0xA669, 988 | 0xA66A => 0xA66B, 989 | 0xA66C => 0xA66D, 990 | 0xA680 => 0xA681, 991 | 0xA682 => 0xA683, 992 | 0xA684 => 0xA685, 993 | 0xA686 => 0xA687, 994 | 0xA688 => 0xA689, 995 | 0xA68A => 0xA68B, 996 | 0xA68C => 0xA68D, 997 | 0xA68E => 0xA68F, 998 | 0xA690 => 0xA691, 999 | 0xA692 => 0xA693, 1000 | 0xA694 => 0xA695, 1001 | 0xA696 => 0xA697, 1002 | 0xA698 => 0xA699, 1003 | 0xA69A => 0xA69B, 1004 | 0xA722 => 0xA723, 1005 | 0xA724 => 0xA725, 1006 | 0xA726 => 0xA727, 1007 | 0xA728 => 0xA729, 1008 | 0xA72A => 0xA72B, 1009 | 0xA72C => 0xA72D, 1010 | 0xA72E => 0xA72F, 1011 | 0xA732 => 0xA733, 1012 | 0xA734 => 0xA735, 1013 | 0xA736 => 0xA737, 1014 | 0xA738 => 0xA739, 1015 | 0xA73A => 0xA73B, 1016 | 0xA73C => 0xA73D, 1017 | 0xA73E => 0xA73F, 1018 | 0xA740 => 0xA741, 1019 | 0xA742 => 0xA743, 1020 | 0xA744 => 0xA745, 1021 | 0xA746 => 0xA747, 1022 | 0xA748 => 0xA749, 1023 | 0xA74A => 0xA74B, 1024 | 0xA74C => 0xA74D, 1025 | 0xA74E => 0xA74F, 1026 | 0xA750 => 0xA751, 1027 | 0xA752 => 0xA753, 1028 | 0xA754 => 0xA755, 1029 | 0xA756 => 0xA757, 1030 | 0xA758 => 0xA759, 1031 | 0xA75A => 0xA75B, 1032 | 0xA75C => 0xA75D, 1033 | 0xA75E => 0xA75F, 1034 | 0xA760 => 0xA761, 1035 | 0xA762 => 0xA763, 1036 | 0xA764 => 0xA765, 1037 | 0xA766 => 0xA767, 1038 | 0xA768 => 0xA769, 1039 | 0xA76A => 0xA76B, 1040 | 0xA76C => 0xA76D, 1041 | 0xA76E => 0xA76F, 1042 | 0xA779 => 0xA77A, 1043 | 0xA77B => 0xA77C, 1044 | 0xA77D => 0x1D79, 1045 | 0xA77E => 0xA77F, 1046 | 0xA780 => 0xA781, 1047 | 0xA782 => 0xA783, 1048 | 0xA784 => 0xA785, 1049 | 0xA786 => 0xA787, 1050 | 0xA78B => 0xA78C, 1051 | 0xA78D => 0x265, 1052 | 0xA790 => 0xA791, 1053 | 0xA792 => 0xA793, 1054 | 0xA796 => 0xA797, 1055 | 0xA798 => 0xA799, 1056 | 0xA79A => 0xA79B, 1057 | 0xA79C => 0xA79D, 1058 | 0xA79E => 0xA79F, 1059 | 0xA7A0 => 0xA7A1, 1060 | 0xA7A2 => 0xA7A3, 1061 | 0xA7A4 => 0xA7A5, 1062 | 0xA7A6 => 0xA7A7, 1063 | 0xA7A8 => 0xA7A9, 1064 | 0xA7AA => 0x266, 1065 | 0xA7AB => 0x25C, 1066 | 0xA7AC => 0x261, 1067 | 0xA7AD => 0x26C, 1068 | 0xA7AE => 0x26A, 1069 | 0xA7B0 => 0x29E, 1070 | 0xA7B1 => 0x287, 1071 | 0xA7B2 => 0x29D, 1072 | 0xA7B3 => 0xAB53, 1073 | 0xA7B4 => 0xA7B5, 1074 | 0xA7B6 => 0xA7B7, 1075 | 0xA7B8 => 0xA7B9, 1076 | 0xA7BA => 0xA7BB, 1077 | 0xA7BC => 0xA7BD, 1078 | 0xA7BE => 0xA7BF, 1079 | 0xA7C2 => 0xA7C3, 1080 | 0xA7C4 => 0xA794, 1081 | 0xA7C5 => 0x282, 1082 | 0xA7C6 => 0x1D8E, 1083 | 0xA7C7 => 0xA7C8, 1084 | 0xA7C9 => 0xA7CA, 1085 | 0xA7F5 => 0xA7F6, 1086 | 0xAB70 => 0x13A0, 1087 | 0xAB71 => 0x13A1, 1088 | 0xAB72 => 0x13A2, 1089 | 0xAB73 => 0x13A3, 1090 | 0xAB74 => 0x13A4, 1091 | 0xAB75 => 0x13A5, 1092 | 0xAB76 => 0x13A6, 1093 | 0xAB77 => 0x13A7, 1094 | 0xAB78 => 0x13A8, 1095 | 0xAB79 => 0x13A9, 1096 | 0xAB7A => 0x13AA, 1097 | 0xAB7B => 0x13AB, 1098 | 0xAB7C => 0x13AC, 1099 | 0xAB7D => 0x13AD, 1100 | 0xAB7E => 0x13AE, 1101 | 0xAB7F => 0x13AF, 1102 | 0xAB80 => 0x13B0, 1103 | 0xAB81 => 0x13B1, 1104 | 0xAB82 => 0x13B2, 1105 | 0xAB83 => 0x13B3, 1106 | 0xAB84 => 0x13B4, 1107 | 0xAB85 => 0x13B5, 1108 | 0xAB86 => 0x13B6, 1109 | 0xAB87 => 0x13B7, 1110 | 0xAB88 => 0x13B8, 1111 | 0xAB89 => 0x13B9, 1112 | 0xAB8A => 0x13BA, 1113 | 0xAB8B => 0x13BB, 1114 | 0xAB8C => 0x13BC, 1115 | 0xAB8D => 0x13BD, 1116 | 0xAB8E => 0x13BE, 1117 | 0xAB8F => 0x13BF, 1118 | 0xAB90 => 0x13C0, 1119 | 0xAB91 => 0x13C1, 1120 | 0xAB92 => 0x13C2, 1121 | 0xAB93 => 0x13C3, 1122 | 0xAB94 => 0x13C4, 1123 | 0xAB95 => 0x13C5, 1124 | 0xAB96 => 0x13C6, 1125 | 0xAB97 => 0x13C7, 1126 | 0xAB98 => 0x13C8, 1127 | 0xAB99 => 0x13C9, 1128 | 0xAB9A => 0x13CA, 1129 | 0xAB9B => 0x13CB, 1130 | 0xAB9C => 0x13CC, 1131 | 0xAB9D => 0x13CD, 1132 | 0xAB9E => 0x13CE, 1133 | 0xAB9F => 0x13CF, 1134 | 0xABA0 => 0x13D0, 1135 | 0xABA1 => 0x13D1, 1136 | 0xABA2 => 0x13D2, 1137 | 0xABA3 => 0x13D3, 1138 | 0xABA4 => 0x13D4, 1139 | 0xABA5 => 0x13D5, 1140 | 0xABA6 => 0x13D6, 1141 | 0xABA7 => 0x13D7, 1142 | 0xABA8 => 0x13D8, 1143 | 0xABA9 => 0x13D9, 1144 | 0xABAA => 0x13DA, 1145 | 0xABAB => 0x13DB, 1146 | 0xABAC => 0x13DC, 1147 | 0xABAD => 0x13DD, 1148 | 0xABAE => 0x13DE, 1149 | 0xABAF => 0x13DF, 1150 | 0xABB0 => 0x13E0, 1151 | 0xABB1 => 0x13E1, 1152 | 0xABB2 => 0x13E2, 1153 | 0xABB3 => 0x13E3, 1154 | 0xABB4 => 0x13E4, 1155 | 0xABB5 => 0x13E5, 1156 | 0xABB6 => 0x13E6, 1157 | 0xABB7 => 0x13E7, 1158 | 0xABB8 => 0x13E8, 1159 | 0xABB9 => 0x13E9, 1160 | 0xABBA => 0x13EA, 1161 | 0xABBB => 0x13EB, 1162 | 0xABBC => 0x13EC, 1163 | 0xABBD => 0x13ED, 1164 | 0xABBE => 0x13EE, 1165 | 0xABBF => 0x13EF, 1166 | 0xFF21 => 0xFF41, 1167 | 0xFF22 => 0xFF42, 1168 | 0xFF23 => 0xFF43, 1169 | 0xFF24 => 0xFF44, 1170 | 0xFF25 => 0xFF45, 1171 | 0xFF26 => 0xFF46, 1172 | 0xFF27 => 0xFF47, 1173 | 0xFF28 => 0xFF48, 1174 | 0xFF29 => 0xFF49, 1175 | 0xFF2A => 0xFF4A, 1176 | 0xFF2B => 0xFF4B, 1177 | 0xFF2C => 0xFF4C, 1178 | 0xFF2D => 0xFF4D, 1179 | 0xFF2E => 0xFF4E, 1180 | 0xFF2F => 0xFF4F, 1181 | 0xFF30 => 0xFF50, 1182 | 0xFF31 => 0xFF51, 1183 | 0xFF32 => 0xFF52, 1184 | 0xFF33 => 0xFF53, 1185 | 0xFF34 => 0xFF54, 1186 | 0xFF35 => 0xFF55, 1187 | 0xFF36 => 0xFF56, 1188 | 0xFF37 => 0xFF57, 1189 | 0xFF38 => 0xFF58, 1190 | 0xFF39 => 0xFF59, 1191 | 0xFF3A => 0xFF5A, 1192 | 0x10400 => 0x10428, 1193 | 0x10401 => 0x10429, 1194 | 0x10402 => 0x1042A, 1195 | 0x10403 => 0x1042B, 1196 | 0x10404 => 0x1042C, 1197 | 0x10405 => 0x1042D, 1198 | 0x10406 => 0x1042E, 1199 | 0x10407 => 0x1042F, 1200 | 0x10408 => 0x10430, 1201 | 0x10409 => 0x10431, 1202 | 0x1040A => 0x10432, 1203 | 0x1040B => 0x10433, 1204 | 0x1040C => 0x10434, 1205 | 0x1040D => 0x10435, 1206 | 0x1040E => 0x10436, 1207 | 0x1040F => 0x10437, 1208 | 0x10410 => 0x10438, 1209 | 0x10411 => 0x10439, 1210 | 0x10412 => 0x1043A, 1211 | 0x10413 => 0x1043B, 1212 | 0x10414 => 0x1043C, 1213 | 0x10415 => 0x1043D, 1214 | 0x10416 => 0x1043E, 1215 | 0x10417 => 0x1043F, 1216 | 0x10418 => 0x10440, 1217 | 0x10419 => 0x10441, 1218 | 0x1041A => 0x10442, 1219 | 0x1041B => 0x10443, 1220 | 0x1041C => 0x10444, 1221 | 0x1041D => 0x10445, 1222 | 0x1041E => 0x10446, 1223 | 0x1041F => 0x10447, 1224 | 0x10420 => 0x10448, 1225 | 0x10421 => 0x10449, 1226 | 0x10422 => 0x1044A, 1227 | 0x10423 => 0x1044B, 1228 | 0x10424 => 0x1044C, 1229 | 0x10425 => 0x1044D, 1230 | 0x10426 => 0x1044E, 1231 | 0x10427 => 0x1044F, 1232 | 0x104B0 => 0x104D8, 1233 | 0x104B1 => 0x104D9, 1234 | 0x104B2 => 0x104DA, 1235 | 0x104B3 => 0x104DB, 1236 | 0x104B4 => 0x104DC, 1237 | 0x104B5 => 0x104DD, 1238 | 0x104B6 => 0x104DE, 1239 | 0x104B7 => 0x104DF, 1240 | 0x104B8 => 0x104E0, 1241 | 0x104B9 => 0x104E1, 1242 | 0x104BA => 0x104E2, 1243 | 0x104BB => 0x104E3, 1244 | 0x104BC => 0x104E4, 1245 | 0x104BD => 0x104E5, 1246 | 0x104BE => 0x104E6, 1247 | 0x104BF => 0x104E7, 1248 | 0x104C0 => 0x104E8, 1249 | 0x104C1 => 0x104E9, 1250 | 0x104C2 => 0x104EA, 1251 | 0x104C3 => 0x104EB, 1252 | 0x104C4 => 0x104EC, 1253 | 0x104C5 => 0x104ED, 1254 | 0x104C6 => 0x104EE, 1255 | 0x104C7 => 0x104EF, 1256 | 0x104C8 => 0x104F0, 1257 | 0x104C9 => 0x104F1, 1258 | 0x104CA => 0x104F2, 1259 | 0x104CB => 0x104F3, 1260 | 0x104CC => 0x104F4, 1261 | 0x104CD => 0x104F5, 1262 | 0x104CE => 0x104F6, 1263 | 0x104CF => 0x104F7, 1264 | 0x104D0 => 0x104F8, 1265 | 0x104D1 => 0x104F9, 1266 | 0x104D2 => 0x104FA, 1267 | 0x104D3 => 0x104FB, 1268 | 0x10C80 => 0x10CC0, 1269 | 0x10C81 => 0x10CC1, 1270 | 0x10C82 => 0x10CC2, 1271 | 0x10C83 => 0x10CC3, 1272 | 0x10C84 => 0x10CC4, 1273 | 0x10C85 => 0x10CC5, 1274 | 0x10C86 => 0x10CC6, 1275 | 0x10C87 => 0x10CC7, 1276 | 0x10C88 => 0x10CC8, 1277 | 0x10C89 => 0x10CC9, 1278 | 0x10C8A => 0x10CCA, 1279 | 0x10C8B => 0x10CCB, 1280 | 0x10C8C => 0x10CCC, 1281 | 0x10C8D => 0x10CCD, 1282 | 0x10C8E => 0x10CCE, 1283 | 0x10C8F => 0x10CCF, 1284 | 0x10C90 => 0x10CD0, 1285 | 0x10C91 => 0x10CD1, 1286 | 0x10C92 => 0x10CD2, 1287 | 0x10C93 => 0x10CD3, 1288 | 0x10C94 => 0x10CD4, 1289 | 0x10C95 => 0x10CD5, 1290 | 0x10C96 => 0x10CD6, 1291 | 0x10C97 => 0x10CD7, 1292 | 0x10C98 => 0x10CD8, 1293 | 0x10C99 => 0x10CD9, 1294 | 0x10C9A => 0x10CDA, 1295 | 0x10C9B => 0x10CDB, 1296 | 0x10C9C => 0x10CDC, 1297 | 0x10C9D => 0x10CDD, 1298 | 0x10C9E => 0x10CDE, 1299 | 0x10C9F => 0x10CDF, 1300 | 0x10CA0 => 0x10CE0, 1301 | 0x10CA1 => 0x10CE1, 1302 | 0x10CA2 => 0x10CE2, 1303 | 0x10CA3 => 0x10CE3, 1304 | 0x10CA4 => 0x10CE4, 1305 | 0x10CA5 => 0x10CE5, 1306 | 0x10CA6 => 0x10CE6, 1307 | 0x10CA7 => 0x10CE7, 1308 | 0x10CA8 => 0x10CE8, 1309 | 0x10CA9 => 0x10CE9, 1310 | 0x10CAA => 0x10CEA, 1311 | 0x10CAB => 0x10CEB, 1312 | 0x10CAC => 0x10CEC, 1313 | 0x10CAD => 0x10CED, 1314 | 0x10CAE => 0x10CEE, 1315 | 0x10CAF => 0x10CEF, 1316 | 0x10CB0 => 0x10CF0, 1317 | 0x10CB1 => 0x10CF1, 1318 | 0x10CB2 => 0x10CF2, 1319 | 0x118A0 => 0x118C0, 1320 | 0x118A1 => 0x118C1, 1321 | 0x118A2 => 0x118C2, 1322 | 0x118A3 => 0x118C3, 1323 | 0x118A4 => 0x118C4, 1324 | 0x118A5 => 0x118C5, 1325 | 0x118A6 => 0x118C6, 1326 | 0x118A7 => 0x118C7, 1327 | 0x118A8 => 0x118C8, 1328 | 0x118A9 => 0x118C9, 1329 | 0x118AA => 0x118CA, 1330 | 0x118AB => 0x118CB, 1331 | 0x118AC => 0x118CC, 1332 | 0x118AD => 0x118CD, 1333 | 0x118AE => 0x118CE, 1334 | 0x118AF => 0x118CF, 1335 | 0x118B0 => 0x118D0, 1336 | 0x118B1 => 0x118D1, 1337 | 0x118B2 => 0x118D2, 1338 | 0x118B3 => 0x118D3, 1339 | 0x118B4 => 0x118D4, 1340 | 0x118B5 => 0x118D5, 1341 | 0x118B6 => 0x118D6, 1342 | 0x118B7 => 0x118D7, 1343 | 0x118B8 => 0x118D8, 1344 | 0x118B9 => 0x118D9, 1345 | 0x118BA => 0x118DA, 1346 | 0x118BB => 0x118DB, 1347 | 0x118BC => 0x118DC, 1348 | 0x118BD => 0x118DD, 1349 | 0x118BE => 0x118DE, 1350 | 0x118BF => 0x118DF, 1351 | 0x16E40 => 0x16E60, 1352 | 0x16E41 => 0x16E61, 1353 | 0x16E42 => 0x16E62, 1354 | 0x16E43 => 0x16E63, 1355 | 0x16E44 => 0x16E64, 1356 | 0x16E45 => 0x16E65, 1357 | 0x16E46 => 0x16E66, 1358 | 0x16E47 => 0x16E67, 1359 | 0x16E48 => 0x16E68, 1360 | 0x16E49 => 0x16E69, 1361 | 0x16E4A => 0x16E6A, 1362 | 0x16E4B => 0x16E6B, 1363 | 0x16E4C => 0x16E6C, 1364 | 0x16E4D => 0x16E6D, 1365 | 0x16E4E => 0x16E6E, 1366 | 0x16E4F => 0x16E6F, 1367 | 0x16E50 => 0x16E70, 1368 | 0x16E51 => 0x16E71, 1369 | 0x16E52 => 0x16E72, 1370 | 0x16E53 => 0x16E73, 1371 | 0x16E54 => 0x16E74, 1372 | 0x16E55 => 0x16E75, 1373 | 0x16E56 => 0x16E76, 1374 | 0x16E57 => 0x16E77, 1375 | 0x16E58 => 0x16E78, 1376 | 0x16E59 => 0x16E79, 1377 | 0x16E5A => 0x16E7A, 1378 | 0x16E5B => 0x16E7B, 1379 | 0x16E5C => 0x16E7C, 1380 | 0x16E5D => 0x16E7D, 1381 | 0x16E5E => 0x16E7E, 1382 | 0x16E5F => 0x16E7F, 1383 | 0x1E900 => 0x1E922, 1384 | 0x1E901 => 0x1E923, 1385 | 0x1E902 => 0x1E924, 1386 | 0x1E903 => 0x1E925, 1387 | 0x1E904 => 0x1E926, 1388 | 0x1E905 => 0x1E927, 1389 | 0x1E906 => 0x1E928, 1390 | 0x1E907 => 0x1E929, 1391 | 0x1E908 => 0x1E92A, 1392 | 0x1E909 => 0x1E92B, 1393 | 0x1E90A => 0x1E92C, 1394 | 0x1E90B => 0x1E92D, 1395 | 0x1E90C => 0x1E92E, 1396 | 0x1E90D => 0x1E92F, 1397 | 0x1E90E => 0x1E930, 1398 | 0x1E90F => 0x1E931, 1399 | 0x1E910 => 0x1E932, 1400 | 0x1E911 => 0x1E933, 1401 | 0x1E912 => 0x1E934, 1402 | 0x1E913 => 0x1E935, 1403 | 0x1E914 => 0x1E936, 1404 | 0x1E915 => 0x1E937, 1405 | 0x1E916 => 0x1E938, 1406 | 0x1E917 => 0x1E939, 1407 | 0x1E918 => 0x1E93A, 1408 | 0x1E919 => 0x1E93B, 1409 | 0x1E91A => 0x1E93C, 1410 | 0x1E91B => 0x1E93D, 1411 | 0x1E91C => 0x1E93E, 1412 | 0x1E91D => 0x1E93F, 1413 | 0x1E91E => 0x1E940, 1414 | 0x1E91F => 0x1E941, 1415 | 0x1E920 => 0x1E942, 1416 | 0x1E921 => 0x1E943, 1417 | ]; 1418 | -------------------------------------------------------------------------------- /src/UnicodeString.php: -------------------------------------------------------------------------------- 1 | codes = $codes; 66 | $this->length = count($codes); 67 | } 68 | 69 | /** 70 | * @return int[] 71 | */ 72 | public function codePoints(): array 73 | { 74 | return $this->codes; 75 | } 76 | 77 | /** 78 | * @return string[] 79 | */ 80 | public function chars(): array 81 | { 82 | if ($this->chars === null) { 83 | $this->chars = self::getCharsFromCodePoints($this->codes); 84 | } 85 | return $this->chars; 86 | } 87 | 88 | /** 89 | * @return int 90 | */ 91 | public function length(): int 92 | { 93 | return $this->length; 94 | } 95 | 96 | /** 97 | * @return bool 98 | */ 99 | public function isEmpty(): bool 100 | { 101 | return $this->length === 0; 102 | } 103 | 104 | /** 105 | * @param string|self|int[]|string[] $text 106 | * @param bool $ignoreCase 107 | * @return bool 108 | */ 109 | public function equals($text, bool $ignoreCase = false): bool 110 | { 111 | return $this->compareTo($text, $ignoreCase) === 0; 112 | } 113 | 114 | /** 115 | * @param string|self|int[]|string[] $text 116 | * @param bool $ignoreCase 117 | * @return int 118 | */ 119 | public function compareTo($text, bool $ignoreCase = false): int 120 | { 121 | $mode = $ignoreCase ? self::FOLD_CASE : self::KEEP_CASE; 122 | 123 | $text = self::resolveCodePoints($text, $mode); 124 | 125 | $length = count($text); 126 | 127 | if ($length !== $this->length) { 128 | return $this->length <=> $length; 129 | } 130 | 131 | return $this->getMappedCodes($mode) <=> $text; 132 | } 133 | 134 | /** 135 | * @param string|self|int[]|string[] $text 136 | * @param bool $ignoreCase 137 | * @return bool 138 | */ 139 | public function contains($text, bool $ignoreCase = false): bool 140 | { 141 | return $this->indexOf($text, 0, $ignoreCase) !== -1; 142 | } 143 | 144 | /** 145 | * @param string|self|int[]|string[] $text 146 | * @param bool $ignoreCase 147 | * @return bool 148 | */ 149 | public function startsWith($text, bool $ignoreCase = false): bool 150 | { 151 | $mode = $ignoreCase ? self::FOLD_CASE : self::KEEP_CASE; 152 | 153 | $text = self::resolveCodePoints($text, $mode); 154 | 155 | $len = count($text); 156 | 157 | if ($len === 0 || $len > $this->length) { 158 | return false; 159 | } 160 | 161 | return array_slice($this->getMappedCodes($mode), 0, $len) === $text; 162 | } 163 | 164 | /** 165 | * @param string|self|int[]|string[] $text 166 | * @param bool $ignoreCase 167 | * @return bool 168 | */ 169 | public function endsWith($text, bool $ignoreCase = false): bool 170 | { 171 | $mode = $ignoreCase ? self::FOLD_CASE : self::KEEP_CASE; 172 | 173 | $text = self::resolveCodePoints($text, $mode); 174 | 175 | if (empty($text)) { 176 | return false; 177 | } 178 | 179 | $codes = $this->getMappedCodes($mode); 180 | 181 | $offset = $this->length - count($text); 182 | 183 | if ($offset < 0) { 184 | return false; 185 | } 186 | 187 | return array_slice($codes, $offset) === $text; 188 | } 189 | 190 | /** 191 | * @param string|self|int[]|string[] $text 192 | * @param int $offset 193 | * @param bool $ignoreCase 194 | * @return int 195 | */ 196 | public function indexOf($text, int $offset = 0, bool $ignoreCase = false): int 197 | { 198 | if ($offset < 0) { 199 | $offset += $this->length; 200 | } 201 | if ($offset < 0 || $offset >= $this->length) { 202 | return -1; 203 | } 204 | 205 | $mode = $ignoreCase ? self::FOLD_CASE : self::KEEP_CASE; 206 | 207 | $text = self::resolveCodePoints($text, $mode); 208 | 209 | $len = count($text); 210 | 211 | if ($len === 0 || $offset + $len > $this->length) { 212 | return -1; 213 | } 214 | 215 | return $this->doIndexOf($this->getMappedCodes($mode), $text, $offset); 216 | } 217 | 218 | /** 219 | * @param string|self|int[]|string[] $text 220 | * @param int $offset 221 | * @param bool $ignoreCase 222 | * @return int 223 | */ 224 | public function lastIndexOf($text, int $offset = 0, bool $ignoreCase = false): int 225 | { 226 | if ($offset < 0) { 227 | $start = $this->length + $offset; 228 | if ($start < 0) { 229 | return -1; 230 | } 231 | $last = 0; 232 | } else { 233 | if ($offset >= $this->length) { 234 | return -1; 235 | } 236 | $start = $this->length - 1; 237 | $last = $offset; 238 | } 239 | 240 | $mode = $ignoreCase ? self::FOLD_CASE : self::KEEP_CASE; 241 | 242 | $text = self::resolveCodePoints($text, $mode); 243 | 244 | $len = count($text); 245 | 246 | if ($len === 0) { 247 | return -1; 248 | } 249 | 250 | if ($offset < 0) { 251 | if ($len > $this->length) { 252 | return -1; 253 | } 254 | $start = min($start, $this->length - $len); 255 | } elseif ($offset + $len > $this->length) { 256 | return -1; 257 | } 258 | 259 | $codes = $this->getMappedCodes($mode); 260 | 261 | for ($i = $start; $i >= $last; $i--) { 262 | $match = true; 263 | 264 | for ($j = 0; $j < $len; $j++) { 265 | if ($codes[$i + $j] !== $text[$j]) { 266 | $match = false; 267 | break; 268 | } 269 | } 270 | 271 | if ($match) { 272 | return $i; 273 | } 274 | } 275 | 276 | return -1; 277 | } 278 | 279 | /** 280 | * @param string|self|int[]|string[] $text 281 | * @param bool $ignoreCase 282 | * @param bool $allowPrefixOnly If true the result can contain only the prefix 283 | * @return $this 284 | */ 285 | public function ensurePrefix($text, bool $ignoreCase = false, bool $allowPrefixOnly = true): self 286 | { 287 | $text = self::resolveCodePoints($text); 288 | 289 | $len = count($text); 290 | 291 | if ($len === 0) { 292 | return clone $this; 293 | } 294 | 295 | if ($this->length === 0) { 296 | return new static($text); 297 | } 298 | 299 | if ($ignoreCase) { 300 | $prefix = self::getMappedCodePoints($text, self::FOLD_CASE); 301 | } else { 302 | $prefix = &$text; 303 | } 304 | 305 | if ($this->length === $len) { 306 | $part = $this->getMappedCodes($ignoreCase ? self::FOLD_CASE : self::KEEP_CASE); 307 | if ($allowPrefixOnly && $part === $prefix) { 308 | return clone $this; 309 | } 310 | // Remove last element to avoid double check 311 | array_pop($part); 312 | } elseif ($this->length < $len) { 313 | $part = $this->getMappedCodes($ignoreCase ? self::FOLD_CASE : self::KEEP_CASE); 314 | // Checks if this can be a suffix 315 | if ($allowPrefixOnly && (array_slice($prefix, 0, $this->length) === $part)) { 316 | $text = array_slice($text, $this->length); 317 | return new static(array_merge($this->codes, $text)); 318 | } 319 | } else { 320 | $part = array_slice($this->codes, 0, $len); 321 | if ($ignoreCase) { 322 | $part = self::getMappedCodePoints($part, self::FOLD_CASE); 323 | } 324 | if ($part === $prefix) { 325 | return clone $this; 326 | } 327 | // Remove last element to avoid double check 328 | array_pop($part); 329 | } 330 | 331 | $copy = $len; 332 | 333 | $part_len = count($part); 334 | 335 | while ($part_len) { 336 | if ($part === array_slice($prefix, -$part_len)) { 337 | $copy = $len - $part_len; 338 | break; 339 | } 340 | array_pop($part); 341 | $part_len--; 342 | } 343 | 344 | if ($copy === 0) { 345 | return clone $this; 346 | } 347 | 348 | if ($copy < $len) { 349 | $text = array_slice($text, 0, $copy); 350 | } 351 | 352 | return new static(array_merge($text, $this->codes)); 353 | } 354 | 355 | /** 356 | * @param string|self|int[]|string[] $text 357 | * @param bool $ignoreCase 358 | * @param bool $allowSuffixOnly If true the result can contain only the suffix 359 | * @return static 360 | */ 361 | public function ensureSuffix($text, bool $ignoreCase = false, bool $allowSuffixOnly = true): self 362 | { 363 | $text = self::resolveCodePoints($text); 364 | 365 | $len = count($text); 366 | 367 | if ($len === 0) { 368 | return clone $this; 369 | } 370 | 371 | if ($this->length === 0) { 372 | return new static($text); 373 | } 374 | 375 | if ($ignoreCase) { 376 | $suffix = self::getMappedCodePoints($text, self::FOLD_CASE); 377 | } else { 378 | $suffix = &$text; 379 | } 380 | 381 | if ($this->length === $len) { 382 | $part = $this->getMappedCodes($ignoreCase ? self::FOLD_CASE : self::KEEP_CASE); 383 | if ($allowSuffixOnly && $part === $suffix) { 384 | return clone $this; 385 | } 386 | // Remove first element to avoid double check 387 | array_shift($part); 388 | } elseif ($this->length < $len) { 389 | $part = $this->getMappedCodes($ignoreCase ? self::FOLD_CASE : self::KEEP_CASE); 390 | // Checks if this can be a prefix 391 | if ($allowSuffixOnly && (array_slice($suffix, -$this->length) === $part)) { 392 | $text = array_slice($text, 0, $len - $this->length); 393 | return new static(array_merge($text, $this->codes)); 394 | } 395 | } else { 396 | $part = array_slice($this->codes, -$len); 397 | if ($ignoreCase) { 398 | $part = self::getMappedCodePoints($part, self::FOLD_CASE); 399 | } 400 | if ($part === $suffix) { 401 | return clone $this; 402 | } 403 | // Remove first element to avoid double check 404 | array_shift($part); 405 | } 406 | 407 | $skip = 0; 408 | 409 | $part_len = count($part); 410 | 411 | while ($part_len) { 412 | if ($part === array_slice($suffix, 0, $part_len)) { 413 | $skip = $part_len; 414 | break; 415 | } 416 | array_shift($part); 417 | $part_len--; 418 | } 419 | 420 | if ($skip === $len) { 421 | return clone $this; 422 | } 423 | 424 | if ($skip) { 425 | array_splice($text, 0, $skip); 426 | } 427 | 428 | return new static(array_merge($this->codes, $text)); 429 | } 430 | 431 | /** 432 | * @param string|self|int[]|string[] $text 433 | * @param int $mode 434 | * @return static 435 | */ 436 | public function append($text, int $mode = self::KEEP_CASE): self 437 | { 438 | return new static(array_merge($this->codes, self::resolveCodePoints($text, $mode))); 439 | } 440 | 441 | /** 442 | * @param string|self|int[]|string[] $text 443 | * @param int $mode 444 | * @return static 445 | */ 446 | public function prepend($text, int $mode = self::KEEP_CASE): self 447 | { 448 | return new static(array_merge(self::resolveCodePoints($text, $mode), $this->codes)); 449 | } 450 | 451 | /** 452 | * @param string|self|int[]|string[] $text 453 | * @param int $offset 454 | * @param int $mode 455 | * @return static 456 | */ 457 | public function insert($text, int $offset, int $mode = self::KEEP_CASE): self 458 | { 459 | $codes = $this->codes; 460 | 461 | array_splice($codes, $offset, 0, self::resolveCodePoints($text, $mode)); 462 | 463 | return new static($codes); 464 | } 465 | 466 | /** 467 | * @param int $offset 468 | * @param int|null $length 469 | * @return static 470 | */ 471 | public function remove(int $offset, ?int $length = null): self 472 | { 473 | $codes = $this->codes; 474 | 475 | if ($length === null) { 476 | array_splice($codes, $offset); 477 | } else { 478 | array_splice($codes, $offset, $length); 479 | } 480 | 481 | return new static($codes); 482 | } 483 | 484 | /** 485 | * @param string|self|int[]|string[] $mask 486 | * @return static 487 | */ 488 | public function trim($mask = " \t\n\r\0\x0B"): self 489 | { 490 | return $this->doTrim($mask, true, true); 491 | } 492 | 493 | /** 494 | * @param string|self|int[]|string[] $mask 495 | * @return static 496 | */ 497 | public function trimLeft($mask = " \t\n\r\0\x0B"): self 498 | { 499 | return $this->doTrim($mask, true, false); 500 | } 501 | 502 | /** 503 | * @param string|self|int[]|string[] $mask 504 | * @return static 505 | */ 506 | public function trimRight($mask = " \t\n\r\0\x0B"): self 507 | { 508 | return $this->doTrim($mask, false, true); 509 | } 510 | 511 | /** 512 | * @return static 513 | */ 514 | public function reverse(): self 515 | { 516 | return new static(array_reverse($this->codes)); 517 | } 518 | 519 | /** 520 | * @param int $times 521 | * @return static 522 | */ 523 | public function repeat(int $times = 1): self 524 | { 525 | if ($times <= 1) { 526 | return clone $this; 527 | } 528 | 529 | $codes = []; 530 | 531 | while ($times--) { 532 | $codes = array_merge($codes, $this->codes); 533 | } 534 | 535 | return new static($codes); 536 | } 537 | 538 | /** 539 | * @param string|self|int[]|string[] $subject 540 | * @param string|self|int[]|string[] $replace 541 | * @param int $offset 542 | * @param bool $ignoreCase 543 | * @return static 544 | */ 545 | public function replace($subject, $replace, int $offset = 0, bool $ignoreCase = false): self 546 | { 547 | if ($offset < 0) { 548 | $offset += $this->length; 549 | } 550 | if ($offset < 0 || $offset >= $this->length) { 551 | return clone $this; 552 | } 553 | 554 | $mode = $ignoreCase ? self::FOLD_CASE : self::KEEP_CASE; 555 | 556 | $subject = self::resolveCodePoints($subject, $mode); 557 | 558 | $len = count($subject); 559 | 560 | if ($len === 0 || $offset + $len > $this->length) { 561 | return clone $this; 562 | } 563 | 564 | $offset = $this->doIndexOf($this->getMappedCodes($mode), $subject, $offset); 565 | 566 | if ($offset === -1) { 567 | return clone $this; 568 | } 569 | 570 | $codes = $this->codes; 571 | 572 | array_splice($codes, $offset, count($subject), self::resolveCodePoints($replace)); 573 | 574 | return new static($codes); 575 | } 576 | 577 | /** 578 | * @param string|self|int[]|string[] $subject 579 | * @param string|self|int[]|string[] $replace 580 | * @param bool $ignoreCase 581 | * @param int $offset 582 | * @return static 583 | */ 584 | public function replaceAll($subject, $replace, int $offset = 0, bool $ignoreCase = false): self 585 | { 586 | if ($offset < 0) { 587 | $offset += $this->length; 588 | } 589 | if ($offset < 0 || $offset >= $this->length) { 590 | return clone $this; 591 | } 592 | 593 | $mode = $ignoreCase ? self::FOLD_CASE : self::KEEP_CASE; 594 | 595 | $subject = self::resolveCodePoints($subject, $mode); 596 | 597 | $len = count($subject); 598 | 599 | if ($len === 0 || $offset + $len > $this->length) { 600 | return clone $this; 601 | } 602 | 603 | $replace = self::resolveCodePoints($replace); 604 | 605 | $codes = $this->getMappedCodes($mode); 606 | 607 | $copy = $this->codes; 608 | 609 | $fix = count($replace) - $len; 610 | 611 | $t = 0; 612 | 613 | while (($pos = $this->doIndexOf($codes, $subject, $offset)) >= 0) { 614 | array_splice($copy, $pos + $t * $fix, $len, $replace); 615 | $offset = $pos + $len; 616 | $t++; 617 | } 618 | 619 | return new static($copy); 620 | } 621 | 622 | /** 623 | * @param string|self|int[]|string[] $delimiter 624 | * @param bool $ignoreCase 625 | * @return array 626 | */ 627 | public function split($delimiter = '', bool $ignoreCase = false): array 628 | { 629 | $mode = $ignoreCase ? self::FOLD_CASE : self::KEEP_CASE; 630 | $delimiter = self::resolveCodePoints($delimiter, $mode); 631 | $len = count($delimiter); 632 | 633 | $ret = []; 634 | 635 | if ($len === 0) { 636 | foreach ($this->codes as $code) { 637 | $ret[] = new static([$code]); 638 | } 639 | } else { 640 | $codes = $this->getMappedCodes($mode); 641 | 642 | $offset = 0; 643 | 644 | while (($pos = $this->doIndexOf($codes, $delimiter, $offset)) >= 0) { 645 | $ret[] = new static(array_slice($this->codes, $offset, $pos - $offset)); 646 | $offset = $pos + $len; 647 | } 648 | 649 | $ret[] = new static(array_slice($this->codes, $offset)); 650 | } 651 | 652 | return $ret; 653 | } 654 | 655 | /** 656 | * @param int $start 657 | * @param int|null $length 658 | * @return static 659 | */ 660 | public function substring(int $start, ?int $length = null): self 661 | { 662 | return new static(array_slice($this->codes, $start, $length)); 663 | } 664 | 665 | /** 666 | * @param int $size If negative then pad left otherwise pad right 667 | * @param self|string|int $char A char or a code point 668 | * @return static 669 | */ 670 | public function pad(int $size, $char = 0x20): self 671 | { 672 | return new static(array_pad($this->codes, $size, self::resolveFirstCodePoint($char, 0x20))); 673 | } 674 | 675 | /** 676 | * @param int $size 677 | * @param self|string|int $char 678 | * @return static 679 | */ 680 | public function padLeft(int $size, $char = 0x20): self 681 | { 682 | if ($size > 0) { 683 | $size = -$size; 684 | } 685 | 686 | return $this->pad($size, $char); 687 | } 688 | 689 | /** 690 | * @param int $size 691 | * @param self|string|int $char 692 | * @return static 693 | */ 694 | public function padRight(int $size, $char = 0x20): self 695 | { 696 | if ($size < 0) { 697 | $size = -$size; 698 | } 699 | 700 | return $this->pad($size, $char); 701 | } 702 | 703 | /** 704 | * @return bool 705 | */ 706 | public function isLowerCase(): bool 707 | { 708 | return $this->isCase(self::LOWER_CASE); 709 | } 710 | 711 | /** 712 | * @return bool 713 | */ 714 | public function isUpperCase(): bool 715 | { 716 | return $this->isCase(self::UPPER_CASE); 717 | } 718 | 719 | /** 720 | * @return bool 721 | */ 722 | public function isAscii(): bool 723 | { 724 | $key = 'i' . self::ASCII_CONV; 725 | 726 | if (!isset($this->cache[$key])) { 727 | $ok = true; 728 | 729 | foreach ($this->codes as $code) { 730 | if ($code >= 0x80) { 731 | $ok = false; 732 | break; 733 | } 734 | } 735 | 736 | $this->cache[$key] = $ok; 737 | } 738 | 739 | return $this->cache[$key]; 740 | } 741 | 742 | /** 743 | * Convert all chars to lower case (where possible) 744 | * @return static 745 | */ 746 | public function toLower(): self 747 | { 748 | if ($this->cache['i' . self::LOWER_CASE] ?? false) { 749 | return clone $this; 750 | } 751 | return new static($this->getMappedCodes(self::LOWER_CASE)); 752 | } 753 | 754 | /** 755 | * Convert all chars to upper case (where possible) 756 | * @return static 757 | */ 758 | public function toUpper(): self 759 | { 760 | if ($this->cache['i' . self::UPPER_CASE] ?? false) { 761 | return clone $this; 762 | } 763 | return new static($this->getMappedCodes(self::UPPER_CASE)); 764 | } 765 | 766 | /** 767 | * Converts all chars to their ASCII equivalent (if any) 768 | * @return static 769 | */ 770 | public function toAscii(): self 771 | { 772 | if ($this->cache['i' . self::ASCII_CONV] ?? false) { 773 | return clone $this; 774 | } 775 | return new static($this->getMappedCodes(self::ASCII_CONV)); 776 | } 777 | 778 | /** 779 | * @param int $index 780 | * @return string 781 | */ 782 | public function charAt(int $index): string 783 | { 784 | // Allow negative index 785 | if ($index < 0 && $index + $this->length >= 0) { 786 | $index += $this->length; 787 | } 788 | 789 | if ($index < 0 || $index >= $this->length) { 790 | return ''; 791 | } 792 | 793 | return $this->chars()[$index]; 794 | } 795 | 796 | /** 797 | * @param int $index 798 | * @return int 799 | */ 800 | public function codePointAt(int $index): int 801 | { 802 | // Allow negative index 803 | if ($index < 0 && $index + $this->length >= 0) { 804 | $index += $this->length; 805 | } 806 | 807 | if ($index < 0 || $index >= $this->length) { 808 | return -1; 809 | } 810 | 811 | return $this->codes[$index]; 812 | } 813 | 814 | /** 815 | * @param int $offset 816 | * @return int 817 | */ 818 | public function __invoke(int $offset): int 819 | { 820 | if ($offset < 0) { 821 | if ($offset + $this->length < 0) { 822 | throw new OutOfBoundsException("Undefined offset: {$offset}"); 823 | } 824 | $offset += $this->length; 825 | } elseif ($offset >= $this->length) { 826 | throw new OutOfBoundsException("Undefined offset: {$offset}"); 827 | } 828 | 829 | return $this->codes[$offset]; 830 | } 831 | 832 | /** 833 | * @inheritDoc 834 | */ 835 | public function offsetExists($offset): bool 836 | { 837 | // Allow negative index 838 | if ($offset < 0) { 839 | $offset += $this->length; 840 | } 841 | 842 | return isset($this->codes[$offset]); 843 | } 844 | 845 | /** 846 | * @inheritDoc 847 | */ 848 | public function offsetGet($offset): string 849 | { 850 | if ($offset < 0) { 851 | if ($offset + $this->length < 0) { 852 | throw new OutOfBoundsException("Undefined offset: {$offset}"); 853 | } 854 | $offset += $this->length; 855 | } elseif ($offset >= $this->length) { 856 | throw new OutOfBoundsException("Undefined offset: {$offset}"); 857 | } 858 | 859 | return $this->chars()[$offset]; 860 | } 861 | 862 | /** 863 | * @inheritDoc 864 | */ 865 | #[\ReturnTypeWillChange] 866 | public function offsetSet($offset, $value) 867 | { 868 | // Allow negative index 869 | if ($offset < 0) { 870 | $offset += $this->length; 871 | } 872 | 873 | if (!isset($this->codes[$offset])) { 874 | return; 875 | } 876 | 877 | 878 | $value = self::resolveFirstCodePoint($value); 879 | if ($value === -1) { 880 | return; 881 | } 882 | 883 | if ($value === $this->codes[$offset]) { 884 | // Same value, nothing to do 885 | return; 886 | } 887 | 888 | $this->codes[$offset] = $value; 889 | 890 | // Clear cache 891 | $this->str = null; 892 | $this->cache = null; 893 | if ($this->chars) { 894 | $this->chars[$offset] = self::getCharFromCodePoint($value); 895 | } 896 | } 897 | 898 | /** 899 | * @inheritDoc 900 | */ 901 | #[\ReturnTypeWillChange] 902 | public function offsetUnset($offset) 903 | { 904 | throw new RuntimeException("Invalid operation"); 905 | } 906 | 907 | /** 908 | * @inheritDoc 909 | */ 910 | public function count(): int 911 | { 912 | return $this->length; 913 | } 914 | 915 | /** 916 | * @return string 917 | */ 918 | public function __toString(): string 919 | { 920 | if ($this->str === null) { 921 | $this->str = self::getStringFromCodePoints($this->codes); 922 | } 923 | 924 | return $this->str; 925 | } 926 | 927 | /** 928 | * @inheritDoc 929 | */ 930 | public function jsonSerialize(): string 931 | { 932 | return $this->__toString(); 933 | } 934 | 935 | public function __serialize(): array 936 | { 937 | return [ 938 | 'value' => $this->__toString(), 939 | ]; 940 | } 941 | 942 | public function __unserialize(array $data): void 943 | { 944 | $this->str = $data['value']; 945 | $this->codes = self::getCodePointsFromString($this->str); 946 | $this->length = count($this->codes); 947 | } 948 | 949 | /** 950 | * Creates an unicode string instance from raw string 951 | * @param string $string 952 | * @param string|null $encoding Defaults to UTF-8 953 | * @param int $mode 954 | * @return static 955 | * @throws InvalidStringException 956 | */ 957 | public static function from(string $string, ?string $encoding = null, int $mode = self::KEEP_CASE): self 958 | { 959 | if ($encoding !== null && strcasecmp($encoding, 'UTF-8') !== 0) { 960 | if (false === $string = @iconv($encoding, 'UTF-8', $string)) { 961 | throw new UnicodeException("Could not convert string from '$encoding' encoding to UTF-8 encoding"); 962 | } 963 | } 964 | 965 | $instance = new static(self::getCodePointsFromString($string, $mode)); 966 | if ($mode === self::KEEP_CASE) { 967 | $instance->str = $string; 968 | } 969 | return $instance; 970 | } 971 | 972 | /** 973 | * Creates an unicode string instance from code points 974 | * @param int[] $codes 975 | * @param int $mode 976 | * @return static 977 | * @throws InvalidCodePointException 978 | */ 979 | public static function fromCodePoints(array $codes, int $mode = self::KEEP_CASE): self 980 | { 981 | $map = self::getMapByMode($mode); 982 | 983 | foreach ($codes as &$code) { 984 | if (!is_int($codes) || !self::isValidCodePoint($code)) { 985 | throw new InvalidCodePointException($code); 986 | } else { 987 | $code = $map[$code] ?? $code; 988 | } 989 | } 990 | 991 | return new static(array_values($codes)); 992 | } 993 | 994 | /** 995 | * Converts the code point to corresponding char 996 | * @param int $code 997 | * @return string The char or an empty string if code point is invalid 998 | */ 999 | public static function getCharFromCodePoint(int $code): string 1000 | { 1001 | if ($code < 0) { 1002 | return ''; 1003 | } 1004 | 1005 | if ($code < 0x80) { 1006 | return chr($code); 1007 | } 1008 | 1009 | if ($code < 0x800) { 1010 | return chr(($code >> 6) + 0xC0) . chr(($code & 0x3F) + 0x80); 1011 | } 1012 | 1013 | if ($code >= 0xD800 && $code <= 0xDFFF) { 1014 | /* 1015 | The definition of UTF-8 prohibits encoding character numbers between 1016 | U+D800 and U+DFFF, which are reserved for use with the UTF-16 1017 | encoding form (as surrogate pairs) and do not directly represent characters. 1018 | */ 1019 | return ''; 1020 | } 1021 | 1022 | if ($code <= 0xFFFF) { 1023 | return 1024 | chr(($code >> 12) + 0xE0) . 1025 | chr((($code >> 6) & 0x3F) + 0x80) . 1026 | chr(($code & 0x3F) + 0x80); 1027 | } 1028 | 1029 | if ($code <= 0x10FFFF) { 1030 | return 1031 | chr(($code >> 18) + 0xF0) . 1032 | chr((($code >> 12) & 0x3F) + 0x80) . 1033 | chr((($code >> 6) & 0x3F) + 0x80) . 1034 | chr(($code & 0x3F) + 0x80); 1035 | } 1036 | 1037 | /* 1038 | Restricted the range of characters to 0000-10FFFF (the UTF-16 accessible range). 1039 | */ 1040 | 1041 | return ''; 1042 | } 1043 | 1044 | /** 1045 | * Convert a string to a code point array 1046 | * @param string $str 1047 | * @param int $mode 1048 | * @return array 1049 | * @throws InvalidStringException 1050 | */ 1051 | public static function getCodePointsFromString(string $str, int $mode = self::KEEP_CASE): array 1052 | { 1053 | // 0x00-0x7F 1054 | // 0xC2-0xDF 0x80-0xBF 1055 | // 0xE0-0xE0 0xA0-0xBF 0x80-0xBF 1056 | // 0xE1-0xEC 0x80-0xBF 0x80-0xBF 1057 | // 0xED-0xED 0x80-0x9F 0x80-0xBF 1058 | // 0xEE-0xEF 0x80-0xBF 0x80-0xBF 1059 | // 0xF0-0xF0 0x90-0xBF 0x80-0xBF 0x80-0xBF 1060 | // 0xF1-0xF3 0x80-0xBF 0x80-0xBF 0x80-0xBF 1061 | // 0xF4-0xF4 0x80-0x8F 0x80-0xBF 0x80-0xBF 1062 | 1063 | $codes = []; 1064 | $length = strlen($str); 1065 | $mode = self::getMapByMode($mode); 1066 | 1067 | $i = 0; 1068 | while ($i < $length) { 1069 | $ord0 = ord($str[$i++]); 1070 | 1071 | if ($ord0 < 0x80) { 1072 | $codes[] = $mode[$ord0] ?? $ord0; 1073 | continue; 1074 | } 1075 | 1076 | if ($i === $length || $ord0 < 0xC2 || $ord0 > 0xF4) { 1077 | throw new InvalidStringException($str, $i - 1); 1078 | } 1079 | 1080 | $ord1 = ord($str[$i++]); 1081 | 1082 | if ($ord0 < 0xE0) { 1083 | if ($ord1 < 0x80 || $ord1 >= 0xC0) { 1084 | throw new InvalidStringException($str, $i - 1); 1085 | } 1086 | 1087 | $ord1 = ($ord0 - 0xC0) * 64 + $ord1 - 0x80; 1088 | $codes[] = $mode[$ord1] ?? $ord1; 1089 | 1090 | continue; 1091 | } 1092 | 1093 | if ($i === $length) { 1094 | throw new InvalidStringException($str, $i - 1); 1095 | } 1096 | 1097 | $ord2 = ord($str[$i++]); 1098 | 1099 | if ($ord0 < 0xF0) { 1100 | if ($ord0 === 0xE0) { 1101 | if ($ord1 < 0xA0 || $ord1 >= 0xC0) { 1102 | throw new InvalidStringException($str, $i - 2); 1103 | } 1104 | } elseif ($ord0 === 0xED) { 1105 | if ($ord1 < 0x80 || $ord1 >= 0xA0) { 1106 | throw new InvalidStringException($str, $i - 2); 1107 | } 1108 | } elseif ($ord1 < 0x80 || $ord1 >= 0xC0) { 1109 | throw new InvalidStringException($str, $i - 2); 1110 | } 1111 | 1112 | if ($ord2 < 0x80 || $ord2 >= 0xC0) { 1113 | throw new InvalidStringException($str, $i - 1); 1114 | } 1115 | 1116 | $ord2 = ($ord0 - 0xE0) * 0x1000 + ($ord1 - 0x80) * 64 + $ord2 - 0x80; 1117 | $codes[] = $mode[$ord2] ?? $ord2; 1118 | 1119 | continue; 1120 | } 1121 | 1122 | if ($i === $length) { 1123 | throw new InvalidStringException($str, $i - 1); 1124 | } 1125 | 1126 | $ord3 = ord($str[$i++]); 1127 | 1128 | if ($ord0 < 0xF5) { 1129 | if ($ord0 === 0xF0) { 1130 | if ($ord1 < 0x90 || $ord1 >= 0xC0) { 1131 | throw new InvalidStringException($str, $i - 3); 1132 | } 1133 | } elseif ($ord0 === 0xF4) { 1134 | if ($ord1 < 0x80 || $ord1 >= 0x90) { 1135 | throw new InvalidStringException($str, $i - 3); 1136 | } 1137 | } elseif ($ord1 < 0x80 || $ord1 >= 0xC0) { 1138 | throw new InvalidStringException($str, $i - 3); 1139 | } 1140 | 1141 | if ($ord2 < 0x80 || $ord2 >= 0xC0) { 1142 | throw new InvalidStringException($str, $i - 2); 1143 | } 1144 | 1145 | if ($ord3 < 0x80 || $ord3 >= 0xC0) { 1146 | throw new InvalidStringException($str, $i - 1); 1147 | } 1148 | 1149 | $ord3 = ($ord0 - 0xF0) * 0x40000 + ($ord1 - 0x80) * 0x1000 + ($ord2 - 0x80) * 64 + $ord3 - 0x80; 1150 | $codes[] = $mode[$ord3] ?? $ord3; 1151 | 1152 | continue; 1153 | } 1154 | 1155 | throw new InvalidStringException($str, $i - 1); 1156 | } 1157 | 1158 | return $codes; 1159 | } 1160 | 1161 | /** 1162 | * @param string $str 1163 | * @return iterable 1164 | * 1165 | * The key represents the current char index 1166 | * Value is a two element array 1167 | * - first element is an integer representing the code point 1168 | * - second element is an array of integers (length 1 to 4) representing bytes 1169 | */ 1170 | public static function walkString(string $str): iterable 1171 | { 1172 | $i = 0; 1173 | $length = strlen($str); 1174 | 1175 | while ($i < $length) { 1176 | $index = $i; 1177 | 1178 | $ord0 = ord($str[$i++]); 1179 | 1180 | if ($ord0 < 0x80) { 1181 | yield $index => [ 1182 | $ord0, 1183 | [$ord0] 1184 | ]; 1185 | continue; 1186 | } 1187 | 1188 | if ($i === $length || $ord0 < 0xC2 || $ord0 > 0xF4) { 1189 | throw new InvalidStringException($str, $i - 1); 1190 | } 1191 | 1192 | $ord1 = ord($str[$i++]); 1193 | 1194 | if ($ord0 < 0xE0) { 1195 | if ($ord1 < 0x80 || $ord1 >= 0xC0) { 1196 | throw new InvalidStringException($str, $i - 1); 1197 | } 1198 | 1199 | yield $index => [ 1200 | ($ord0 - 0xC0) * 64 + $ord1 - 0x80, 1201 | [$ord0, $ord1] 1202 | ]; 1203 | 1204 | continue; 1205 | } 1206 | 1207 | if ($i === $length) { 1208 | throw new InvalidStringException($str, $i - 1); 1209 | } 1210 | 1211 | $ord2 = ord($str[$i++]); 1212 | 1213 | if ($ord0 < 0xF0) { 1214 | if ($ord0 === 0xE0) { 1215 | if ($ord1 < 0xA0 || $ord1 >= 0xC0) { 1216 | throw new InvalidStringException($str, $i - 2); 1217 | } 1218 | } elseif ($ord0 === 0xED) { 1219 | if ($ord1 < 0x80 || $ord1 >= 0xA0) { 1220 | throw new InvalidStringException($str, $i - 2); 1221 | } 1222 | } elseif ($ord1 < 0x80 || $ord1 >= 0xC0) { 1223 | throw new InvalidStringException($str, $i - 2); 1224 | } 1225 | 1226 | if ($ord2 < 0x80 || $ord2 >= 0xC0) { 1227 | throw new InvalidStringException($str, $i - 1); 1228 | } 1229 | 1230 | yield $index => [ 1231 | ($ord0 - 0xE0) * 0x1000 + ($ord1 - 0x80) * 64 + $ord2 - 0x80, 1232 | [$ord0, $ord1, $ord2] 1233 | ]; 1234 | 1235 | continue; 1236 | } 1237 | 1238 | if ($i === $length) { 1239 | throw new InvalidStringException($str, $i - 1); 1240 | } 1241 | 1242 | $ord3 = ord($str[$i++]); 1243 | 1244 | if ($ord0 < 0xF5) { 1245 | if ($ord0 === 0xF0) { 1246 | if ($ord1 < 0x90 || $ord1 >= 0xC0) { 1247 | throw new InvalidStringException($str, $i - 3); 1248 | } 1249 | } elseif ($ord0 === 0xF4) { 1250 | if ($ord1 < 0x80 || $ord1 >= 0x90) { 1251 | throw new InvalidStringException($str, $i - 3); 1252 | } 1253 | } elseif ($ord1 < 0x80 || $ord1 >= 0xC0) { 1254 | throw new InvalidStringException($str, $i - 3); 1255 | } 1256 | 1257 | if ($ord2 < 0x80 || $ord2 >= 0xC0) { 1258 | throw new InvalidStringException($str, $i - 2); 1259 | } 1260 | 1261 | if ($ord3 < 0x80 || $ord3 >= 0xC0) { 1262 | throw new InvalidStringException($str, $i - 1); 1263 | } 1264 | 1265 | yield $index => [ 1266 | ($ord0 - 0xF0) * 0x40000 + ($ord1 - 0x80) * 0x1000 + ($ord2 - 0x80) * 64 + $ord3 - 0x80, 1267 | [$ord0, $ord1, $ord2, $ord3] 1268 | ]; 1269 | 1270 | continue; 1271 | } 1272 | 1273 | throw new InvalidStringException($str, $i - 1); 1274 | } 1275 | } 1276 | 1277 | /** 1278 | * Compute string length 1279 | * @param string $str 1280 | * @return int 1281 | * @throws InvalidStringException 1282 | */ 1283 | public static function getStringLength(string $str): int 1284 | { 1285 | $count = 0; 1286 | $length = strlen($str); 1287 | 1288 | $i = 0; 1289 | while ($i < $length) { 1290 | $ord0 = ord($str[$i++]); 1291 | 1292 | if ($ord0 < 0x80) { 1293 | $count++; 1294 | continue; 1295 | } 1296 | 1297 | if ($i === $length || $ord0 < 0xC2 || $ord0 > 0xF4) { 1298 | throw new InvalidStringException($str, $i - 1); 1299 | } 1300 | 1301 | $ord1 = ord($str[$i++]); 1302 | 1303 | if ($ord0 < 0xE0) { 1304 | if ($ord1 < 0x80 || $ord1 >= 0xC0) { 1305 | throw new InvalidStringException($str, $i - 1); 1306 | } 1307 | 1308 | // $ord1 = ($ord0 - 0xC0) * 64 + $ord1 - 0x80; 1309 | $count++; 1310 | 1311 | continue; 1312 | } 1313 | 1314 | if ($i === $length) { 1315 | throw new InvalidStringException($str, $i - 1); 1316 | } 1317 | 1318 | $ord2 = ord($str[$i++]); 1319 | 1320 | if ($ord0 < 0xF0) { 1321 | if ($ord0 === 0xE0) { 1322 | if ($ord1 < 0xA0 || $ord1 >= 0xC0) { 1323 | throw new InvalidStringException($str, $i - 2); 1324 | } 1325 | } elseif ($ord0 === 0xED) { 1326 | if ($ord1 < 0x80 || $ord1 >= 0xA0) { 1327 | throw new InvalidStringException($str, $i - 2); 1328 | } 1329 | } elseif ($ord1 < 0x80 || $ord1 >= 0xC0) { 1330 | throw new InvalidStringException($str, $i - 2); 1331 | } 1332 | 1333 | if ($ord2 < 0x80 || $ord2 >= 0xC0) { 1334 | throw new InvalidStringException($str, $i - 1); 1335 | } 1336 | 1337 | // $ord2 = ($ord0 - 0xE0) * 0x1000 + ($ord1 - 0x80) * 64 + $ord2 - 0x80; 1338 | $count++; 1339 | 1340 | continue; 1341 | } 1342 | 1343 | if ($i === $length) { 1344 | throw new InvalidStringException($str, $i - 1); 1345 | } 1346 | 1347 | $ord3 = ord($str[$i++]); 1348 | 1349 | if ($ord0 < 0xF5) { 1350 | if ($ord0 === 0xF0) { 1351 | if ($ord1 < 0x90 || $ord1 >= 0xC0) { 1352 | throw new InvalidStringException($str, $i - 3); 1353 | } 1354 | } elseif ($ord0 === 0xF4) { 1355 | if ($ord1 < 0x80 || $ord1 >= 0x90) { 1356 | throw new InvalidStringException($str, $i - 3); 1357 | } 1358 | } elseif ($ord1 < 0x80 || $ord1 >= 0xC0) { 1359 | throw new InvalidStringException($str, $i - 3); 1360 | } 1361 | 1362 | if ($ord2 < 0x80 || $ord2 >= 0xC0) { 1363 | throw new InvalidStringException($str, $i - 2); 1364 | } 1365 | 1366 | if ($ord3 < 0x80 || $ord3 >= 0xC0) { 1367 | throw new InvalidStringException($str, $i - 1); 1368 | } 1369 | 1370 | // $ord3 = ($ord0 - 0xF0) * 0x40000 + ($ord1 - 0x80) * 0x1000 + ($ord2 - 0x80) * 64 + $ord3 - 0x80; 1371 | $count++; 1372 | 1373 | continue; 1374 | } 1375 | 1376 | throw new InvalidStringException($str, $i - 1); 1377 | } 1378 | 1379 | return $count; 1380 | } 1381 | 1382 | /** 1383 | * Converts each code point to a char 1384 | * @param array $codes 1385 | * @param int $mode 1386 | * @return array 1387 | * @throws InvalidCodePointException 1388 | */ 1389 | public static function getCharsFromCodePoints(array $codes, int $mode = self::KEEP_CASE): array 1390 | { 1391 | $mode = self::getMapByMode($mode); 1392 | 1393 | foreach ($codes as &$code) { 1394 | $char = self::getCharFromCodePoint($mode[$code] ?? $code); 1395 | if ($char === '') { 1396 | throw new InvalidCodePointException($code); 1397 | } else { 1398 | $code = $char; 1399 | } 1400 | } 1401 | 1402 | return $codes; 1403 | } 1404 | 1405 | /** 1406 | * @param string $str 1407 | * @param int $mode 1408 | * @return string[] 1409 | */ 1410 | public static function getCharsFromString(string $str, int $mode = self::KEEP_CASE): array 1411 | { 1412 | return self::getCharsFromCodePoints(self::getCodePointsFromString($str), $mode); 1413 | } 1414 | 1415 | /** 1416 | * Converts all code points to chars and returns the string 1417 | * Invalid code points are ignored 1418 | * @param array $codes 1419 | * @param int $mode 1420 | * @return string 1421 | */ 1422 | public static function getStringFromCodePoints(array $codes, int $mode = self::KEEP_CASE): string 1423 | { 1424 | $str = ''; 1425 | 1426 | $mode = self::getMapByMode($mode); 1427 | 1428 | foreach ($codes as $code) { 1429 | if (isset($mode[$code])) { 1430 | $code = $mode[$code]; 1431 | } 1432 | 1433 | if ($code < 0x80) { 1434 | $str .= chr($code); 1435 | continue; 1436 | } 1437 | 1438 | if ($code < 0x800) { 1439 | $str .= chr(($code >> 6) + 0xC0) . chr(($code & 0x3F) + 0x80); 1440 | continue; 1441 | } 1442 | 1443 | if ($code >= 0xD800 && $code <= 0xDFFF) { 1444 | continue; 1445 | } 1446 | 1447 | if ($code <= 0xFFFF) { 1448 | $str .= 1449 | chr(($code >> 12) + 0xE0) . 1450 | chr((($code >> 6) & 0x3F) + 0x80) . 1451 | chr(($code & 0x3F) + 0x80); 1452 | continue; 1453 | } 1454 | 1455 | if ($code <= 0x10FFFF) { 1456 | $str .= 1457 | chr(($code >> 18) + 0xF0) . 1458 | chr((($code >> 12) & 0x3F) + 0x80) . 1459 | chr((($code >> 6) & 0x3F) + 0x80) . 1460 | chr(($code & 0x3F) + 0x80); 1461 | } 1462 | } 1463 | 1464 | return $str; 1465 | } 1466 | 1467 | /** 1468 | * @param array $codes 1469 | * @param int $mode 1470 | * @return array 1471 | */ 1472 | public static function getMappedCodePoints(array $codes, int $mode): array 1473 | { 1474 | if ($mode === self::KEEP_CASE) { 1475 | return $codes; 1476 | } 1477 | 1478 | $mode = self::getMapByMode($mode); 1479 | 1480 | if (empty($mode)) { 1481 | return $codes; 1482 | } 1483 | 1484 | foreach ($codes as &$code) { 1485 | $code = $mode[$code] ?? $code; 1486 | } 1487 | 1488 | return $codes; 1489 | } 1490 | 1491 | /** 1492 | * Checks if a code point is valid 1493 | * @param int $code 1494 | * @return bool 1495 | */ 1496 | public static function isValidCodePoint(int $code): bool 1497 | { 1498 | if ($code < 0 || $code > 0x10FFFF) { 1499 | return false; 1500 | } 1501 | 1502 | return $code < 0xD800 || $code > 0xDFFF; 1503 | } 1504 | 1505 | /** 1506 | * @param int $mode 1507 | * @return int[] 1508 | */ 1509 | private function getMappedCodes(int $mode): array 1510 | { 1511 | if ($mode === self::KEEP_CASE || ($this->cache['i' . $mode] ?? false)) { 1512 | return $this->codes; 1513 | } 1514 | 1515 | $key = 'm' . $mode; 1516 | 1517 | if (!isset($this->cache[$key])) { 1518 | $this->cache[$key] = self::getMappedCodePoints($this->codes, $mode); 1519 | } 1520 | 1521 | return $this->cache[$key]; 1522 | } 1523 | 1524 | /** 1525 | * @param int $mode 1526 | * @return bool 1527 | */ 1528 | private function isCase(int $mode): bool 1529 | { 1530 | $key = 'i' . $mode; 1531 | 1532 | if (!isset($this->cache[$key])) { 1533 | $list = self::getMapByMode($mode); 1534 | foreach ($this->codes as $code) { 1535 | if (isset($list[$code])) { 1536 | return $this->cache[$key] = false; 1537 | } 1538 | } 1539 | 1540 | return $this->cache[$key] = true; 1541 | } 1542 | 1543 | return $this->cache[$key]; 1544 | } 1545 | 1546 | /** 1547 | * @param int[] $codes 1548 | * @param int[] $text 1549 | * @param int $offset 1550 | * @return int 1551 | */ 1552 | private function doIndexOf(array $codes, array $text, int $offset = 0): int 1553 | { 1554 | $len = count($text); 1555 | 1556 | for ($i = $offset, $last = count($codes) - $len; $i <= $last; $i++) { 1557 | $match = true; 1558 | 1559 | for ($j = 0; $j < $len; $j++) { 1560 | if ($codes[$i + $j] !== $text[$j]) { 1561 | $match = false; 1562 | break; 1563 | } 1564 | } 1565 | 1566 | if ($match) { 1567 | return $i; 1568 | } 1569 | } 1570 | 1571 | return -1; 1572 | } 1573 | 1574 | /** 1575 | * @param string|self|int[]|string[] $mask 1576 | * @param bool $left 1577 | * @param bool $right 1578 | * @return static 1579 | */ 1580 | private function doTrim($mask, bool $left, bool $right): self 1581 | { 1582 | if ($this->length === 0) { 1583 | return clone $this; 1584 | } 1585 | 1586 | $mask = self::resolveCodePoints($mask); 1587 | 1588 | if (empty($mask)) { 1589 | return clone $this; 1590 | } 1591 | 1592 | $codes = $this->codes; 1593 | 1594 | if ($left) { 1595 | while (in_array($codes[0], $mask, true)) { 1596 | array_shift($codes); 1597 | if (empty($codes)) { 1598 | return new static(); 1599 | } 1600 | } 1601 | } 1602 | 1603 | if ($right) { 1604 | $last = count($codes) - 1; 1605 | while (in_array($codes[$last], $mask, true)) { 1606 | array_pop($codes); 1607 | if (--$last < 0) { 1608 | return new static(); 1609 | } 1610 | } 1611 | } 1612 | 1613 | return new static($codes); 1614 | } 1615 | 1616 | 1617 | /** 1618 | * @param string|self|int[]|string[] $text 1619 | * @param int $mode 1620 | * @return array 1621 | */ 1622 | private static function resolveCodePoints($text, int $mode = self::KEEP_CASE): array 1623 | { 1624 | if ($text instanceof self) { 1625 | return $text->getMappedCodes($mode); 1626 | } 1627 | 1628 | if (is_string($text)) { 1629 | return self::getCodePointsFromString($text, $mode); 1630 | } 1631 | 1632 | if ($text && is_array($text) && is_int($text[0])) { 1633 | // assume code point array 1634 | return self::getMappedCodePoints($text, $mode); 1635 | } 1636 | 1637 | return []; 1638 | } 1639 | 1640 | /** 1641 | * @param self|string|int|string[]|int[] $text 1642 | * @param int $invalid 1643 | * @return int 1644 | */ 1645 | private static function resolveFirstCodePoint($text, int $invalid = -1): int 1646 | { 1647 | if ($text instanceof self) { 1648 | return $text->length === 0 ? $invalid : $text->codes[0]; 1649 | } 1650 | 1651 | if (is_array($text)) { 1652 | if (empty($text)) { 1653 | return $invalid; 1654 | } 1655 | $text = reset($text); 1656 | } 1657 | 1658 | if (is_string($text)) { 1659 | if (isset($text[4])) { 1660 | $text = substr($text, 0, 4); 1661 | } 1662 | return self::getCodePointsFromString($text)[0] ?? $invalid; 1663 | } 1664 | 1665 | if (is_int($text)) { 1666 | return self::isValidCodePoint($text) ? $text : $invalid; 1667 | } 1668 | 1669 | return $invalid; 1670 | } 1671 | 1672 | /** 1673 | * @param int $mode 1674 | * @return int[] 1675 | */ 1676 | private static function getMapByMode(int $mode): array 1677 | { 1678 | if (isset(self::$maps[$mode])) { 1679 | return self::$maps[$mode]; 1680 | } 1681 | 1682 | switch ($mode) { 1683 | case self::LOWER_CASE: 1684 | $file = 'lower'; 1685 | break; 1686 | case self::UPPER_CASE: 1687 | $file = 'upper'; 1688 | break; 1689 | case self::ASCII_CONV: 1690 | $file = 'ascii'; 1691 | break; 1692 | case self::FOLD_CASE: 1693 | $file = 'fold'; 1694 | break; 1695 | default: 1696 | return []; 1697 | } 1698 | 1699 | /** @noinspection PhpIncludeInspection */ 1700 | return self::$maps[$mode] = include(__DIR__ . "/../res/{$file}.php"); 1701 | } 1702 | } 1703 | --------------------------------------------------------------------------------