aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorThomas Voss <mail@thomasvoss.com> 2024-04-13 01:09:39 +0200
committerThomas Voss <mail@thomasvoss.com> 2024-04-13 01:09:39 +0200
commitd3a04ae6ea8c086e45c2bf51d3ebe97b724abae8 (patch)
tree0dfe2424f1e78b1b5805a6b55a7bb28023f473e9 /lib
parent5cd8e9069a5e78a45932055678eae77a1de4fd66 (diff)
Prefer character literals to hex
Diffstat (limited to 'lib')
-rw-r--r--lib/unicode/prop/uprop_get_uc.c202
1 files changed, 101 insertions, 101 deletions
diff --git a/lib/unicode/prop/uprop_get_uc.c b/lib/unicode/prop/uprop_get_uc.c
index c1ddf87..d3ab274 100644
--- a/lib/unicode/prop/uprop_get_uc.c
+++ b/lib/unicode/prop/uprop_get_uc.c
@@ -11,107 +11,107 @@ static const struct {
rune k;
struct rview v;
} lookup[] = {
- {0x0149, _(0x02BC, 0x004E)},
- {0x01F0, _(0x004A, 0x030C)},
- {0x0390, _(0x0399, 0x0308, 0x0301)},
- {0x03B0, _(0x03A5, 0x0308, 0x0301)},
- {0x0587, _(0x0535, 0x0552)},
- {0x1E96, _(0x0048, 0x0331)},
- {0x1E97, _(0x0054, 0x0308)},
- {0x1E98, _(0x0057, 0x030A)},
- {0x1E99, _(0x0059, 0x030A)},
- {0x1E9A, _(0x0041, 0x02BE)},
- {0x1F50, _(0x03A5, 0x0313)},
- {0x1F52, _(0x03A5, 0x0313, 0x0300)},
- {0x1F54, _(0x03A5, 0x0313, 0x0301)},
- {0x1F56, _(0x03A5, 0x0313, 0x0342)},
- {0x1F80, _(0x1F08, 0x0399)},
- {0x1F81, _(0x1F09, 0x0399)},
- {0x1F82, _(0x1F0A, 0x0399)},
- {0x1F83, _(0x1F0B, 0x0399)},
- {0x1F84, _(0x1F0C, 0x0399)},
- {0x1F85, _(0x1F0D, 0x0399)},
- {0x1F86, _(0x1F0E, 0x0399)},
- {0x1F87, _(0x1F0F, 0x0399)},
- {0x1F88, _(0x1F08, 0x0399)},
- {0x1F89, _(0x1F09, 0x0399)},
- {0x1F8A, _(0x1F0A, 0x0399)},
- {0x1F8B, _(0x1F0B, 0x0399)},
- {0x1F8C, _(0x1F0C, 0x0399)},
- {0x1F8D, _(0x1F0D, 0x0399)},
- {0x1F8E, _(0x1F0E, 0x0399)},
- {0x1F8F, _(0x1F0F, 0x0399)},
- {0x1F90, _(0x1F28, 0x0399)},
- {0x1F91, _(0x1F29, 0x0399)},
- {0x1F92, _(0x1F2A, 0x0399)},
- {0x1F93, _(0x1F2B, 0x0399)},
- {0x1F94, _(0x1F2C, 0x0399)},
- {0x1F95, _(0x1F2D, 0x0399)},
- {0x1F96, _(0x1F2E, 0x0399)},
- {0x1F97, _(0x1F2F, 0x0399)},
- {0x1F98, _(0x1F28, 0x0399)},
- {0x1F99, _(0x1F29, 0x0399)},
- {0x1F9A, _(0x1F2A, 0x0399)},
- {0x1F9B, _(0x1F2B, 0x0399)},
- {0x1F9C, _(0x1F2C, 0x0399)},
- {0x1F9D, _(0x1F2D, 0x0399)},
- {0x1F9E, _(0x1F2E, 0x0399)},
- {0x1F9F, _(0x1F2F, 0x0399)},
- {0x1FA0, _(0x1F68, 0x0399)},
- {0x1FA1, _(0x1F69, 0x0399)},
- {0x1FA2, _(0x1F6A, 0x0399)},
- {0x1FA3, _(0x1F6B, 0x0399)},
- {0x1FA4, _(0x1F6C, 0x0399)},
- {0x1FA5, _(0x1F6D, 0x0399)},
- {0x1FA6, _(0x1F6E, 0x0399)},
- {0x1FA7, _(0x1F6F, 0x0399)},
- {0x1FA8, _(0x1F68, 0x0399)},
- {0x1FA9, _(0x1F69, 0x0399)},
- {0x1FAA, _(0x1F6A, 0x0399)},
- {0x1FAB, _(0x1F6B, 0x0399)},
- {0x1FAC, _(0x1F6C, 0x0399)},
- {0x1FAD, _(0x1F6D, 0x0399)},
- {0x1FAE, _(0x1F6E, 0x0399)},
- {0x1FAF, _(0x1F6F, 0x0399)},
- {0x1FB2, _(0x1FBA, 0x0399)},
- {0x1FB3, _(0x0391, 0x0399)},
- {0x1FB4, _(0x0386, 0x0399)},
- {0x1FB6, _(0x0391, 0x0342)},
- {0x1FB7, _(0x0391, 0x0342, 0x0399)},
- {0x1FBC, _(0x0391, 0x0399)},
- {0x1FC2, _(0x1FCA, 0x0399)},
- {0x1FC3, _(0x0397, 0x0399)},
- {0x1FC4, _(0x0389, 0x0399)},
- {0x1FC6, _(0x0397, 0x0342)},
- {0x1FC7, _(0x0397, 0x0342, 0x0399)},
- {0x1FCC, _(0x0397, 0x0399)},
- {0x1FD2, _(0x0399, 0x0308, 0x0300)},
- {0x1FD3, _(0x0399, 0x0308, 0x0301)},
- {0x1FD6, _(0x0399, 0x0342)},
- {0x1FD7, _(0x0399, 0x0308, 0x0342)},
- {0x1FE2, _(0x03A5, 0x0308, 0x0300)},
- {0x1FE3, _(0x03A5, 0x0308, 0x0301)},
- {0x1FE4, _(0x03A1, 0x0313)},
- {0x1FE6, _(0x03A5, 0x0342)},
- {0x1FE7, _(0x03A5, 0x0308, 0x0342)},
- {0x1FF2, _(0x1FFA, 0x0399)},
- {0x1FF3, _(0x03A9, 0x0399)},
- {0x1FF4, _(0x038F, 0x0399)},
- {0x1FF6, _(0x03A9, 0x0342)},
- {0x1FF7, _(0x03A9, 0x0342, 0x0399)},
- {0x1FFC, _(0x03A9, 0x0399)},
- {0xFB00, _(0x0046, 0x0046)},
- {0xFB01, _(0x0046, 0x0049)},
- {0xFB02, _(0x0046, 0x004C)},
- {0xFB03, _(0x0046, 0x0046, 0x0049)},
- {0xFB04, _(0x0046, 0x0046, 0x004C)},
- {0xFB05, _(0x0053, 0x0054)},
- {0xFB06, _(0x0053, 0x0054)},
- {0xFB13, _(0x0544, 0x0546)},
- {0xFB14, _(0x0544, 0x0535)},
- {0xFB15, _(0x0544, 0x053B)},
- {0xFB16, _(0x054E, 0x0546)},
- {0xFB17, _(0x0544, 0x053D)},
+ {0x0149, /* ʼn */ _(U'ʼ', 'N')},
+ {0x01F0, /* ǰ */ _('J', 0x30C)},
+ {0x0390, /* ΐ */ _(U'Ι', 0x308, 0x301)},
+ {0x03B0, /* ΰ */ _(U'Υ', 0x308, 0x301)},
+ {0x0587, /* և */ _(U'Ե', U'Ւ')},
+ {0x1E96, /* ẖ */ _('H', 0x331)},
+ {0x1E97, /* ẗ */ _('T', 0x308)},
+ {0x1E98, /* ẘ */ _('W', 0x30A)},
+ {0x1E99, /* ẙ */ _('Y', 0x30A)},
+ {0x1E9A, /* ẚ */ _('A', U'ʾ')},
+ {0x1F50, /* ὐ */ _(U'Υ', 0x313)},
+ {0x1F52, /* ὒ */ _(U'Υ', 0x313, 0x300)},
+ {0x1F54, /* ὔ */ _(U'Υ', 0x313, 0x301)},
+ {0x1F56, /* ὖ */ _(U'Υ', 0x313, 0x342)},
+ {0x1F80, /* ᾀ */ _(U'Ἀ', U'Ι')},
+ {0x1F81, /* ᾁ */ _(U'Ἁ', U'Ι')},
+ {0x1F82, /* ᾂ */ _(U'Ἂ', U'Ι')},
+ {0x1F83, /* ᾃ */ _(U'Ἃ', U'Ι')},
+ {0x1F84, /* ᾄ */ _(U'Ἄ', U'Ι')},
+ {0x1F85, /* ᾅ */ _(U'Ἅ', U'Ι')},
+ {0x1F86, /* ᾆ */ _(U'Ἆ', U'Ι')},
+ {0x1F87, /* ᾇ */ _(U'Ἇ', U'Ι')},
+ {0x1F88, /* ᾈ */ _(U'Ἀ', U'Ι')},
+ {0x1F89, /* ᾉ */ _(U'Ἁ', U'Ι')},
+ {0x1F8A, /* ᾊ */ _(U'Ἂ', U'Ι')},
+ {0x1F8B, /* ᾋ */ _(U'Ἃ', U'Ι')},
+ {0x1F8C, /* ᾌ */ _(U'Ἄ', U'Ι')},
+ {0x1F8D, /* ᾍ */ _(U'Ἅ', U'Ι')},
+ {0x1F8E, /* ᾎ */ _(U'Ἆ', U'Ι')},
+ {0x1F8F, /* ᾏ */ _(U'Ἇ', U'Ι')},
+ {0x1F90, /* ᾐ */ _(U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_(U'Ὤ', U'Ι')},
+ {0x1FAD, /* ᾭ */ _(U'Ὥ', U'Ι')},
+ {0x1FAE, /* ᾮ */ _(U'Ὦ', U'Ι')},
+ {0x1FAF, /* ᾯ */ _(U'Ὧ', U'Ι')},
+ {0x1FB2, /* ᾲ */ _(U'Ὰ', U'Ι')},
+ {0x1FB3, /* ᾳ */ _(U'Α', U'Ι')},
+ {0x1FB4, /* ᾴ */ _(U'Ά', U'Ι')},
+ {0x1FB6, /* ᾶ */ _(U'Α', 0x342)},
+ {0x1FB7, /* ᾷ */ _(U'Α', 0x342, U'Ι')},
+ {0x1FBC, /* ᾼ */ _(U'Α', U'Ι')},
+ {0x1FC2, /* ῂ */ _(U'Ὴ', U'Ι')},
+ {0x1FC3, /* ῃ */ _(U'Η', U'Ι')},
+ {0x1FC4, /* ῄ */ _(U'Ή', U'Ι')},
+ {0x1FC6, /* ῆ */ _(U'Η', 0x342)},
+ {0x1FC7, /* ῇ */ _(U'Η', 0x342, U'Ι')},
+ {0x1FCC, /* ῌ */ _(U'Η', U'Ι')},
+ {0x1FD2, /* ῒ */ _(U'Ι', 0x308, 0x300)},
+ {0x1FD3, /* ΐ */ _(U'Ι', 0x308, 0x301)},
+ {0x1FD6, /* ῖ */ _(U'Ι', 0x342)},
+ {0x1FD7, /* ῗ */ _(U'Ι', 0x308, 0x342)},
+ {0x1FE2, /* ῢ */ _(U'Υ', 0x308, 0x300)},
+ {0x1FE3, /* ΰ */ _(U'Υ', 0x308, 0x301)},
+ {0x1FE4, /* ῤ */ _(U'Ρ', 0x313)},
+ {0x1FE6, /* ῦ */ _(U'Υ', 0x342)},
+ {0x1FE7, /* ῧ */ _(U'Υ', 0x308, 0x342)},
+ {0x1FF2, /* ῲ */ _(U'Ὼ', U'Ι')},
+ {0x1FF3, /* ῳ */ _(U'Ω', U'Ι')},
+ {0x1FF4, /* ῴ */ _(U'Ώ', U'Ι')},
+ {0x1FF6, /* ῶ */ _(U'Ω', 0x342)},
+ {0x1FF7, /* ῷ */ _(U'Ω', 0x342, U'Ι')},
+ {0x1FFC, /* ῼ */ _(U'Ω', U'Ι')},
+ {0xFB00, /* ff */ _('F', 'F')},
+ {0xFB01, /* fi */ _('F', 'I')},
+ {0xFB02, /* fl */ _('F', 'L')},
+ {0xFB03, /* ffi */ _('F', 'F', 'I')},
+ {0xFB04, /* ffl */ _('F', 'F', 'L')},
+ {0xFB05, /* ſt */ _('S', 'T')},
+ {0xFB06, /* st */ _('S', 'T')},
+ {0xFB13, /* ﬓ */ _(U'Մ', U'Ն')},
+ {0xFB14, /* ﬔ */ _(U'Մ', U'Ե')},
+ {0xFB15, /* ﬕ */ _(U'Մ', U'Ի')},
+ {0xFB16, /* ﬖ */ _(U'Վ', U'Ն')},
+ {0xFB17, /* ﬗ */ _(U'Մ', U'Խ')},
};
__MLIB_DEFINE_BSEARCH_KV(struct rview, lookup, M(ch))