summaryrefslogtreecommitdiffstats
path: root/js/src/util/UnicodeNonBMP.h
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-07 17:32:43 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-07 17:32:43 +0000
commit6bf0a5cb5034a7e684dcc3500e841785237ce2dd (patch)
treea68f146d7fa01f0134297619fbe7e33db084e0aa /js/src/util/UnicodeNonBMP.h
parentInitial commit. (diff)
downloadthunderbird-upstream.tar.xz
thunderbird-upstream.zip
Adding upstream version 1:115.7.0.upstream/1%115.7.0upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'js/src/util/UnicodeNonBMP.h')
-rw-r--r--js/src/util/UnicodeNonBMP.h67
1 files changed, 67 insertions, 0 deletions
diff --git a/js/src/util/UnicodeNonBMP.h b/js/src/util/UnicodeNonBMP.h
new file mode 100644
index 0000000000..09d45b3679
--- /dev/null
+++ b/js/src/util/UnicodeNonBMP.h
@@ -0,0 +1,67 @@
+/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*-
+ * vim: set ts=8 sts=4 et sw=4 tw=99:
+ * This Source Code Form is subject to the terms of the Mozilla Public
+ * License, v. 2.0. If a copy of the MPL was not distributed with this
+ * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
+
+/* Generated by make_unicode.py DO NOT MODIFY */
+/* Unicode version: 15.0.0 */
+
+#ifndef util_UnicodeNonBMP_h
+#define util_UnicodeNonBMP_h
+
+// |MACRO| receives the following arguments
+// MACRO(FROM, TO, LEAD, TRAIL_FROM, TRAIL_TO, DIFF)
+// FROM: code point where the range starts
+// TO: code point where the range ends
+// LEAD: common lead surrogate of FROM and TO
+// TRAIL_FROM: trail surrogate of FROM
+// TRAIL_FROM: trail surrogate of TO
+// DIFF: the difference between the code point in the range and
+// converted code point
+
+// U+10400 DESERET CAPITAL LETTER LONG I .. U+10427 DESERET CAPITAL LETTER EW
+// U+104B0 OSAGE CAPITAL LETTER A .. U+104D3 OSAGE CAPITAL LETTER ZHA
+// U+10570 VITHKUQI CAPITAL LETTER A .. U+1057A VITHKUQI CAPITAL LETTER GA
+// U+1057C VITHKUQI CAPITAL LETTER HA .. U+1058A VITHKUQI CAPITAL LETTER RE
+// U+1058C VITHKUQI CAPITAL LETTER SE .. U+10592 VITHKUQI CAPITAL LETTER XE
+// U+10594 VITHKUQI CAPITAL LETTER Y .. U+10595 VITHKUQI CAPITAL LETTER ZE
+// U+10C80 OLD HUNGARIAN CAPITAL LETTER A .. U+10CB2 OLD HUNGARIAN CAPITAL LETTER US
+// U+118A0 WARANG CITI CAPITAL LETTER NGAA .. U+118BF WARANG CITI CAPITAL LETTER VIYO
+// U+16E40 MEDEFAIDRIN CAPITAL LETTER M .. U+16E5F MEDEFAIDRIN CAPITAL LETTER Y
+// U+1E900 ADLAM CAPITAL LETTER ALIF .. U+1E921 ADLAM CAPITAL LETTER SHA
+#define FOR_EACH_NON_BMP_LOWERCASE(MACRO) \
+ MACRO(0x10400, 0x10427, 0xd801, 0xdc00, 0xdc27, 40) \
+ MACRO(0x104b0, 0x104d3, 0xd801, 0xdcb0, 0xdcd3, 40) \
+ MACRO(0x10570, 0x1057a, 0xd801, 0xdd70, 0xdd7a, 39) \
+ MACRO(0x1057c, 0x1058a, 0xd801, 0xdd7c, 0xdd8a, 39) \
+ MACRO(0x1058c, 0x10592, 0xd801, 0xdd8c, 0xdd92, 39) \
+ MACRO(0x10594, 0x10595, 0xd801, 0xdd94, 0xdd95, 39) \
+ MACRO(0x10c80, 0x10cb2, 0xd803, 0xdc80, 0xdcb2, 64) \
+ MACRO(0x118a0, 0x118bf, 0xd806, 0xdca0, 0xdcbf, 32) \
+ MACRO(0x16e40, 0x16e5f, 0xd81b, 0xde40, 0xde5f, 32) \
+ MACRO(0x1e900, 0x1e921, 0xd83a, 0xdd00, 0xdd21, 34)
+
+// U+10428 DESERET SMALL LETTER LONG I .. U+1044F DESERET SMALL LETTER EW
+// U+104D8 OSAGE SMALL LETTER A .. U+104FB OSAGE SMALL LETTER ZHA
+// U+10597 VITHKUQI SMALL LETTER A .. U+105A1 VITHKUQI SMALL LETTER GA
+// U+105A3 VITHKUQI SMALL LETTER HA .. U+105B1 VITHKUQI SMALL LETTER RE
+// U+105B3 VITHKUQI SMALL LETTER SE .. U+105B9 VITHKUQI SMALL LETTER XE
+// U+105BB VITHKUQI SMALL LETTER Y .. U+105BC VITHKUQI SMALL LETTER ZE
+// U+10CC0 OLD HUNGARIAN SMALL LETTER A .. U+10CF2 OLD HUNGARIAN SMALL LETTER US
+// U+118C0 WARANG CITI SMALL LETTER NGAA .. U+118DF WARANG CITI SMALL LETTER VIYO
+// U+16E60 MEDEFAIDRIN SMALL LETTER M .. U+16E7F MEDEFAIDRIN SMALL LETTER Y
+// U+1E922 ADLAM SMALL LETTER ALIF .. U+1E943 ADLAM SMALL LETTER SHA
+#define FOR_EACH_NON_BMP_UPPERCASE(MACRO) \
+ MACRO(0x10428, 0x1044f, 0xd801, 0xdc28, 0xdc4f, -40) \
+ MACRO(0x104d8, 0x104fb, 0xd801, 0xdcd8, 0xdcfb, -40) \
+ MACRO(0x10597, 0x105a1, 0xd801, 0xdd97, 0xdda1, -39) \
+ MACRO(0x105a3, 0x105b1, 0xd801, 0xdda3, 0xddb1, -39) \
+ MACRO(0x105b3, 0x105b9, 0xd801, 0xddb3, 0xddb9, -39) \
+ MACRO(0x105bb, 0x105bc, 0xd801, 0xddbb, 0xddbc, -39) \
+ MACRO(0x10cc0, 0x10cf2, 0xd803, 0xdcc0, 0xdcf2, -64) \
+ MACRO(0x118c0, 0x118df, 0xd806, 0xdcc0, 0xdcdf, -32) \
+ MACRO(0x16e60, 0x16e7f, 0xd81b, 0xde60, 0xde7f, -32) \
+ MACRO(0x1e922, 0x1e943, 0xd83a, 0xdd22, 0xdd43, -34)
+
+#endif /* util_UnicodeNonBMP_h */