OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef CharacterPropertyDataGenerator_h | 5 #ifndef CharacterPropertyDataGenerator_h |
6 #define CharacterPropertyDataGenerator_h | 6 #define CharacterPropertyDataGenerator_h |
7 | 7 |
8 #include <unicode/uobject.h> | 8 #include <unicode/uobject.h> |
9 | 9 |
10 namespace blink { | 10 namespace blink { |
(...skipping 211 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
222 // CJK Unified Ideographs Extension B/C/D | 222 // CJK Unified Ideographs Extension B/C/D |
223 // CJK Compatibility Ideographs Supplement | 223 // CJK Compatibility Ideographs Supplement |
224 0x20000, 0x2FFFD, | 224 0x20000, 0x2FFFD, |
225 0x30000, 0x3FFFD, | 225 0x30000, 0x3FFFD, |
226 // Supplementary Private Use Area-A | 226 // Supplementary Private Use Area-A |
227 0xF0000, 0xFFFFD, | 227 0xF0000, 0xFFFFD, |
228 // Supplementary Private Use Area-B | 228 // Supplementary Private Use Area-B |
229 0x100000, 0x10FFFD, | 229 0x100000, 0x10FFFD, |
230 }; | 230 }; |
231 | 231 |
| 232 // https://html.spec.whatwg.org/multipage/scripting.html#prod-potentialcustomele
mentname |
| 233 static const UChar32 isPotentialCustomElementNameCharArray[] = { |
| 234 '-', |
| 235 '.', |
| 236 '_', |
| 237 0xB7, |
| 238 }; |
| 239 |
| 240 static const UChar32 isPotentialCustomElementNameCharRanges[] = { |
| 241 '0', '9', |
| 242 'a', 'z', |
| 243 0xC0, 0xD6, |
| 244 0xD8, 0xF6, |
| 245 0xF8, 0x2FF, |
| 246 0x300, 0x37D, |
| 247 0x37F, 0x1FFF, |
| 248 0x200C, 0x200D, |
| 249 0x203F, 0x2040, |
| 250 0x2070, 0x218F, |
| 251 0x2C00, 0x2FEF, |
| 252 0x3001, 0xD7FF, |
| 253 0xF900, 0xFDCF, |
| 254 0xFDF0, 0xFFFD, |
| 255 0x10000, 0xEFFFF, |
| 256 }; |
| 257 |
232 } // namespace blink | 258 } // namespace blink |
233 | 259 |
234 #endif | 260 #endif |
OLD | NEW |