summaryrefslogtreecommitdiff
path: root/src/u8c/isalpha.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/u8c/isalpha.c')
-rw-r--r--src/u8c/isalpha.c218
1 files changed, 109 insertions, 109 deletions
diff --git a/src/u8c/isalpha.c b/src/u8c/isalpha.c
index b960bf5..d5952dc 100644
--- a/src/u8c/isalpha.c
+++ b/src/u8c/isalpha.c
@@ -17,121 +17,121 @@
# include <stdbool.h>
# include <stddef.h>
# include <stdint.h>
-# include <u8c/isalpha.h>
+# include <u8c/is.h>
bool u8c_isalpha(uint_least8_t * const _res,char32_t const _chr) {
assert(_res != NULL);
switch(_chr) {
default:
*_res = UINT8_C(0x0);
break;
- case UINT32_C(0x61): /* LATIN SMALL LETTER A */
- case UINT32_C(0x62): /* LATIN SMALL LETTER B */
- case UINT32_C(0x63): /* LATIN SMALL LETTER C */
- case UINT32_C(0x64): /* LATIN SMALL LETTER D */
- case UINT32_C(0x65): /* LATIN SMALL LETTER E */
- case UINT32_C(0x66): /* LATIN SMALL LETTER F */
- case UINT32_C(0x67): /* LATIN SMALL LETTER G */
- case UINT32_C(0x68): /* LATIN SMALL LETTER H */
- case UINT32_C(0x69): /* LATIN SMALL LETTER I */
- case UINT32_C(0x6A): /* LATIN SMALL LETTER J */
- case UINT32_C(0x6B): /* LATIN SMALL LETTER K */
- case UINT32_C(0x6C): /* LATIN SMALL LETTER L */
- case UINT32_C(0x6D): /* LATIN SMALL LETTER M */
- case UINT32_C(0x6E): /* LATIN SMALL LETTER N */
- case UINT32_C(0x6F): /* LATIN SMALL LETTER O */
- case UINT32_C(0x70): /* LATIN SMALL LETTER P */
- case UINT32_C(0x71): /* LATIN SMALL LETTER Q */
- case UINT32_C(0x72): /* LATIN SMALL LETTER R */
- case UINT32_C(0x73): /* LATIN SMALL LETTER S */
- case UINT32_C(0x74): /* LATIN SMALL LETTER T */
- case UINT32_C(0x75): /* LATIN SMALL LETTER U */
- case UINT32_C(0x76): /* LATIN SMALL LETTER V */
- case UINT32_C(0x77): /* LATIN SMALL LETTER W */
- case UINT32_C(0x78): /* LATIN SMALL LETTER X */
- case UINT32_C(0x79): /* LATIN SMALL LETTER Y */
- case UINT32_C(0x7A): /* LATIN SMALL LETTER Z */
- case UINT32_C(0xDF): /* LATIN SMALL LETTER SHARP S */
- case UINT32_C(0xE1): /* LATIN SMALL LETTER A WITH ACUTE */
- case UINT32_C(0xE4): /* LATIN SMALL LETTER A WITH DIAERESIS */
- case UINT32_C(0xE5): /* LATIN SMALL LETTER A WITH RING ABOVE */
- case UINT32_C(0xE6): /* LATIN SMALL LETTER AE */
- case UINT32_C(0xE7): /* LATIN SMALL LETTER C WITH CEDILLA */
- case UINT32_C(0xE9): /* LATIN SMALL LETTER E WITH ACUTE */
- case UINT32_C(0xED): /* LATIN SMALL LETTER I WITH ACUTE */
- case UINT32_C(0xF0): /* LATIN SMALL LETTER ETH */
- case UINT32_C(0xF3): /* LATIN SMALL LETTER O WITH ACUTE */
- case UINT32_C(0xF6): /* LATIN SMALL LETTER O WITH DIAERESIS */
- case UINT32_C(0xF8): /* LATIN SMALL LETTER O WITH STROKE */
- case UINT32_C(0xFA): /* LATIN SMALL LETTER U WITH ACUTE */
- case UINT32_C(0xFC): /* U WITH TWO DOTS */
- case UINT32_C(0xFD): /* LATIN SMALL LETTER Y WITH ACUTE */
- case UINT32_C(0xFE): /* LATIN SMALL LETTER THORN */
- case UINT32_C(0x105): /* LATIN SMALL LETTER A WITH OGONEK */
- case UINT32_C(0x107): /* LATIN SMALL LETTER C WITH ACUTE */
- case UINT32_C(0x10D): /* LATIN SMALL LETTER C WITH CARON */
- case UINT32_C(0x10F): /* LATIN SMALL LETTER D WITH CARON */
- case UINT32_C(0x119): /* LATIN SMALL LETTER E WITH OGONEK */
- case UINT32_C(0x11B): /* LATIN SMALL LETTER E WITH CARON */
- case UINT32_C(0x11F): /* LATIN SMALL LETTER G WITH BREVE */
- case UINT32_C(0x131): /* LATIN SMALL LETTER DOTLESS I */
- case UINT32_C(0x133): /* LATIN SMALL LIGATURE LJ */
- case UINT32_C(0x138): /* LATIN SMALL LETTER KRA */
- case UINT32_C(0x142): /* LATIN SMALL LETTER L WITH STROKE */
- case UINT32_C(0x144): /* LATIN SMALL LETTER N WITH ACUTE */
- case UINT32_C(0x148): /* LATIN SMALL LETTER N WITH CARON */
- case UINT32_C(0x14B): /* LATIN SMALL LETTER ENG */
- case UINT32_C(0x153): /* LATIN SMALL LIGATURE OE */
- case UINT32_C(0x159): /* LATIN SMALL LETTER R WITH CARON */
- case UINT32_C(0x15B): /* LATIN SMALL LETTER S WITH ACUTE */
- case UINT32_C(0x15F): /* LATIN SMALL LETTER S WITH CEDILLA */
- case UINT32_C(0x161): /* LATIN SMALL LETTER S WITH CARON */
- case UINT32_C(0x165): /* LATIN SMALL LETTER T WITH CARON */
- case UINT32_C(0x16F): /* LATIN SMALL LETTER U WITH RING ABOVE */
- case UINT32_C(0x17A): /* LATIN SMALL LETTER Z WITH ACUTE */
- case UINT32_C(0x17C): /* LATIN SMALL LETTER Z WITH DOT ABOVE */
- case UINT32_C(0x17E): /* LATIN SMALL LETTER Z WITH CARON */
- case UINT32_C(0x1BF): /* LATIN LETTER WYNN */
- case UINT32_C(0x1DD): /* LATIN SMALL LETTER TURNED E */
- case UINT32_C(0x21D): /* LATIN SMALL LETTER YOGH */
- case UINT32_C(0x251): /* LATIN SMALL LETTER ALPHA */
- case UINT32_C(0x254): /* LATIN SMALL LETTER OPEN O */
- case UINT32_C(0x259): /* LATIN SMALL LETTER SCHWA */
- case UINT32_C(0x25B): /* LATIN SMALL LETTER OPEN E */
- case UINT32_C(0x263): /* LATIN SMALL LETTER GAMMA */
- case UINT32_C(0x269): /* LATIN SMALL LETTER IOTA */
- case UINT32_C(0x283): /* LATIN SMALL LETTER ESH */
- case UINT32_C(0x28A): /* LATIN SMALL LETTER UPSILON */
- case UINT32_C(0x28B): /* LATIN SMALL LETTER V WITH HOOK */
- case UINT32_C(0x292): /* LATIN SMALL LETTER EZH */
- case UINT32_C(0x294): /* LATIN SMALL LETTER GLOTTAL STOP */
- case UINT32_C(0x3B1): /* GREEK SMALL LETTER ALPHA */
- case UINT32_C(0x3B2): /* GREEK SMALL LETTER BETA */
- case UINT32_C(0x3B3): /* GREEK SMALL LETTER GAMMA */
- case UINT32_C(0x3B4): /* GREEK SMALL LETTER DELTA */
- case UINT32_C(0x3B5): /* GREEK SMALL LETTER EPSILON */
- case UINT32_C(0x3B6): /* GREEK SMALL LETTER ZETA */
- case UINT32_C(0x3B7): /* GREEK SMALL LETTER ETA */
- case UINT32_C(0x3B8): /* GREEK SMALL LETTER THETA */
- case UINT32_C(0x3B9): /* GREEK SMALL LETTER IOTA */
- case UINT32_C(0x3BA): /* GREEK SMALL LETTER KAPPA */
- case UINT32_C(0x3BB): /* GREEK SMALL LETTER LAMBDA */
- case UINT32_C(0x3BC): /* GREEK SMALL LETTER MU */
- case UINT32_C(0x3BD): /* GREEK SMALL LETTER NU */
- case UINT32_C(0x3BE): /* GREEK SMALL LETTER XI */
- case UINT32_C(0x3BF): /* GREEK SMALL LETTER OMICRON */
- case UINT32_C(0x3C0): /* GREEK SMALL LETTER PI */
- case UINT32_C(0x3C1): /* GREEK SMALL LETTER RHO */
- case UINT32_C(0x3C2): /* GREEK SMALL LETTER FINAL SIGMA */
- case UINT32_C(0x3C3): /* GREEK SMALL LETTER SIGMA */
- case UINT32_C(0x3C4): /* GREEK SMALL LETTER TAU */
- case UINT32_C(0x3C5): /* GREEK SMALL LETTER UPSILON */
- case UINT32_C(0x3C6): /* GREEK SMALL LETTER PHI */
- case UINT32_C(0x3C7): /* GREEK SMALL LETTER CHI */
- case UINT32_C(0x3C8): /* GREEK SMALL LETTER PSI */
- case UINT32_C(0x3C9): /* GREEK SMALL LETTER OMEGA */
- case UINT32_C(0x1D79): /* LATIN SMALL LETTER INSULAR G */
- case UINT32_C(0xA7B7): /* LATIN SMALL LETTER OMEGA */
- case UINT32_C(0xFB00): /* LATIN SMALL LIGATURE FF */
+ case U'a': /* LATIN SMALL LETTER A */
+ case U'b': /* LATIN SMALL LETTER B */
+ case U'c': /* LATIN SMALL LETTER C */
+ case U'd': /* LATIN SMALL LETTER D */
+ case U'e': /* LATIN SMALL LETTER E */
+ case U'f': /* LATIN SMALL LETTER F */
+ case U'g': /* LATIN SMALL LETTER G */
+ case U'h': /* LATIN SMALL LETTER H */
+ case U'i': /* LATIN SMALL LETTER I */
+ case U'j': /* LATIN SMALL LETTER J */
+ case U'k': /* LATIN SMALL LETTER K */
+ case U'l': /* LATIN SMALL LETTER L */
+ case U'm': /* LATIN SMALL LETTER M */
+ case U'n': /* LATIN SMALL LETTER N */
+ case U'o': /* LATIN SMALL LETTER O */
+ case U'p': /* LATIN SMALL LETTER P */
+ case U'q': /* LATIN SMALL LETTER Q */
+ case U'r': /* LATIN SMALL LETTER R */
+ case U's': /* LATIN SMALL LETTER S */
+ case U't': /* LATIN SMALL LETTER T */
+ case U'u': /* LATIN SMALL LETTER U */
+ case U'v': /* LATIN SMALL LETTER V */
+ case U'w': /* LATIN SMALL LETTER W */
+ case U'x': /* LATIN SMALL LETTER X */
+ case U'y': /* LATIN SMALL LETTER Y */
+ case U'z': /* LATIN SMALL LETTER Z */
+ case U'\u00DF': /* LATIN SMALL LETTER SHARP S */
+ case U'\u00E1': /* LATIN SMALL LETTER A WITH ACUTE */
+ case U'\u00E4': /* LATIN SMALL LETTER A WITH DIAERESIS */
+ case U'\u00E5': /* LATIN SMALL LETTER A WITH RING ABOVE */
+ case U'\u00E6': /* LATIN SMALL LETTER AE */
+ case U'\u00E7': /* LATIN SMALL LETTER C WITH CEDILLA */
+ case U'\u00E9': /* LATIN SMALL LETTER E WITH ACUTE */
+ case U'\u00ED': /* LATIN SMALL LETTER I WITH ACUTE */
+ case U'\u00F0': /* LATIN SMALL LETTER ETH */
+ case U'\u00F3': /* LATIN SMALL LETTER O WITH ACUTE */
+ case U'\u00F6': /* LATIN SMALL LETTER O WITH DIAERESIS */
+ case U'\u00F8': /* LATIN SMALL LETTER O WITH STROKE */
+ case U'\u00FA': /* LATIN SMALL LETTER U WITH ACUTE */
+ case U'\u00FC': /* U WITH TWO DOTS */
+ case U'\u00FD': /* LATIN SMALL LETTER Y WITH ACUTE */
+ case U'\u00FE': /* LATIN SMALL LETTER THORN */
+ case U'\u0105': /* LATIN SMALL LETTER A WITH OGONEK */
+ case U'\u0107': /* LATIN SMALL LETTER C WITH ACUTE */
+ case U'\u010D': /* LATIN SMALL LETTER C WITH CARON */
+ case U'\u010F': /* LATIN SMALL LETTER D WITH CARON */
+ case U'\u0119': /* LATIN SMALL LETTER E WITH OGONEK */
+ case U'\u011B': /* LATIN SMALL LETTER E WITH CARON */
+ case U'\u011F': /* LATIN SMALL LETTER G WITH BREVE */
+ case U'\u0131': /* LATIN SMALL LETTER DOTLESS I */
+ case U'\u0133': /* LATIN SMALL LIGATURE LJ */
+ case U'\u0138': /* LATIN SMALL LETTER KRA */
+ case U'\u0142': /* LATIN SMALL LETTER L WITH STROKE */
+ case U'\u0144': /* LATIN SMALL LETTER N WITH ACUTE */
+ case U'\u0148': /* LATIN SMALL LETTER N WITH CARON */
+ case U'\u014B': /* LATIN SMALL LETTER ENG */
+ case U'\u0153': /* LATIN SMALL LIGATURE OE */
+ case U'\u0159': /* LATIN SMALL LETTER R WITH CARON */
+ case U'\u015B': /* LATIN SMALL LETTER S WITH ACUTE */
+ case U'\u015F': /* LATIN SMALL LETTER S WITH CEDILLA */
+ case U'\u0161': /* LATIN SMALL LETTER S WITH CARON */
+ case U'\u0165': /* LATIN SMALL LETTER T WITH CARON */
+ case U'\u016F': /* LATIN SMALL LETTER U WITH RING ABOVE */
+ case U'\u017A': /* LATIN SMALL LETTER Z WITH ACUTE */
+ case U'\u017C': /* LATIN SMALL LETTER Z WITH DOT ABOVE */
+ case U'\u017E': /* LATIN SMALL LETTER Z WITH CARON */
+ case U'\u01BF': /* LATIN LETTER WYNN */
+ case U'\u01DD': /* LATIN SMALL LETTER TURNED E */
+ case U'\u021D': /* LATIN SMALL LETTER YOGH */
+ case U'\u0251': /* LATIN SMALL LETTER ALPHA */
+ case U'\u0254': /* LATIN SMALL LETTER OPEN O */
+ case U'\u0259': /* LATIN SMALL LETTER SCHWA */
+ case U'\u025B': /* LATIN SMALL LETTER OPEN E */
+ case U'\u0263': /* LATIN SMALL LETTER GAMMA */
+ case U'\u0269': /* LATIN SMALL LETTER IOTA */
+ case U'\u0283': /* LATIN SMALL LETTER ESH */
+ case U'\u028A': /* LATIN SMALL LETTER UPSILON */
+ case U'\u028B': /* LATIN SMALL LETTER V WITH HOOK */
+ case U'\u0292': /* LATIN SMALL LETTER EZH */
+ case U'\u0294': /* LATIN SMALL LETTER GLOTTAL STOP */
+ case U'\u03B1': /* GREEK SMALL LETTER ALPHA */
+ case U'\u03B2': /* GREEK SMALL LETTER BETA */
+ case U'\u03B3': /* GREEK SMALL LETTER GAMMA */
+ case U'\u03B4': /* GREEK SMALL LETTER DELTA */
+ case U'\u03B5': /* GREEK SMALL LETTER EPSILON */
+ case U'\u03B6': /* GREEK SMALL LETTER ZETA */
+ case U'\u03B7': /* GREEK SMALL LETTER ETA */
+ case U'\u03B8': /* GREEK SMALL LETTER THETA */
+ case U'\u03B9': /* GREEK SMALL LETTER IOTA */
+ case U'\u03BA': /* GREEK SMALL LETTER KAPPA */
+ case U'\u03BB': /* GREEK SMALL LETTER LAMBDA */
+ case U'\u03BC': /* GREEK SMALL LETTER MU */
+ case U'\u03BD': /* GREEK SMALL LETTER NU */
+ case U'\u03BE': /* GREEK SMALL LETTER XI */
+ case U'\u03BF': /* GREEK SMALL LETTER OMICRON */
+ case U'\u03C0': /* GREEK SMALL LETTER PI */
+ case U'\u03C1': /* GREEK SMALL LETTER RHO */
+ case U'\u03C2': /* GREEK SMALL LETTER FINAL SIGMA */
+ case U'\u03C3': /* GREEK SMALL LETTER SIGMA */
+ case U'\u03C4': /* GREEK SMALL LETTER TAU */
+ case U'\u03C5': /* GREEK SMALL LETTER UPSILON */
+ case U'\u03C6': /* GREEK SMALL LETTER PHI */
+ case U'\u03C7': /* GREEK SMALL LETTER CHI */
+ case U'\u03C8': /* GREEK SMALL LETTER PSI */
+ case U'\u03C9': /* GREEK SMALL LETTER OMEGA */
+ case U'\u1D79': /* LATIN SMALL LETTER INSULAR G */
+ case U'\uA7B7': /* LATIN SMALL LETTER OMEGA */
+ case U'\uFB00': /* LATIN SMALL LIGATURE FF */
*_res = UINT8_C(0x1);
break;
}