diff options
author | Jörg Frings-Fürst <debian@jff.email> | 2025-10-18 19:06:52 +0200 |
---|---|---|
committer | Jörg Frings-Fürst <debian@jff.email> | 2025-10-18 19:06:52 +0200 |
commit | 27dae84ed92f1ef0300263091972338d12e78348 (patch) | |
tree | 7c52931f474fafb8a4bd4fd15ca3461c77cdecc2 /lib/uniname/uniname.c | |
parent | 4682deeb62247d34de87f8e777f99e2d337fd377 (diff) |
New upstream version 1.4.1upstream/1.4.1upstream
Diffstat (limited to 'lib/uniname/uniname.c')
-rw-r--r-- | lib/uniname/uniname.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/lib/uniname/uniname.c b/lib/uniname/uniname.c index 28e2eb70..953b70df 100644 --- a/lib/uniname/uniname.c +++ b/lib/uniname/uniname.c @@ -1,5 +1,5 @@ /* Association between Unicode characters and their names. - Copyright (C) 2000-2002, 2005-2007, 2009-2024 Free Software Foundation, Inc. + Copyright (C) 2000-2002, 2005-2007, 2009-2025 Free Software Foundation, Inc. This file is free software. It is dual-licensed under "the GNU LGPLv3+ or the GNU GPLv2+". @@ -485,19 +485,19 @@ unicode_name_character (const char *name) unsigned int index1; for (index1 = 0; index1 < 19; index1++) - if (memcmp (jamo_initial_short_name[index1], p1, n1) == 0 + if (memeq (jamo_initial_short_name[index1], p1, n1) && jamo_initial_short_name[index1][n1] == '\0') { unsigned int index2; for (index2 = 0; index2 < 21; index2++) - if (memcmp (jamo_medial_short_name[index2], p2, n2) == 0 + if (memeq (jamo_medial_short_name[index2], p2, n2) && jamo_medial_short_name[index2][n2] == '\0') { unsigned int index3; for (index3 = 0; index3 < 28; index3++) - if (memcmp (jamo_final_short_name[index3], p3, n3) == 0 + if (memeq (jamo_final_short_name[index3], p3, n3) && jamo_final_short_name[index3][n3] == '\0') { return 0xAC00 + (index1 * 21 + index2) * 28 + index3; @@ -516,7 +516,7 @@ unicode_name_character (const char *name) && words[1] == UNICODE_CHARNAME_WORD_COMPATIBILITY && p1 + 14 <= ptr && p1 + 15 >= ptr - && memcmp (p1, "IDEOGRAPH-", 10) == 0) + && memeq (p1, "IDEOGRAPH-", 10)) { const char *p2 = p1 + 10; @@ -553,7 +553,7 @@ unicode_name_character (const char *name) && words[0] == UNICODE_CHARNAME_WORD_VARIATION && p1 + 10 <= ptr && p1 + 12 >= ptr - && memcmp (p1, "SELECTOR-", 9) == 0) + && memeq (p1, "SELECTOR-", 9)) { const char *p2 = p1 + 9; |