ctype.c 33 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087
  1. /* Copyright (C) 2003 Manuel Novoa III
  2. *
  3. * This library is free software; you can redistribute it and/or
  4. * modify it under the terms of the GNU Library General Public
  5. * License as published by the Free Software Foundation; either
  6. * version 2 of the License, or (at your option) any later version.
  7. *
  8. * This library is distributed in the hope that it will be useful,
  9. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  10. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  11. * Library General Public License for more details.
  12. *
  13. * You should have received a copy of the GNU Library General Public
  14. * License along with this library; if not, write to the Free
  15. * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  16. */
  17. /* ATTENTION! ATTENTION! ATTENTION! ATTENTION! ATTENTION!
  18. *
  19. * Besides uClibc, I'm using this code in my libc for elks, which is
  20. * a 16-bit environment with a fairly limited compiler. It would make
  21. * things much easier for me if this file isn't modified unnecessarily.
  22. * In particular, please put any new or replacement functions somewhere
  23. * else, and modify the makefile to use your version instead.
  24. * Thanks. Manuel
  25. *
  26. * ATTENTION! ATTENTION! ATTENTION! ATTENTION! ATTENTION! */
  27. #define __NO_CTYPE
  28. #include <ctype.h>
  29. #include <stdio.h>
  30. #include <stdlib.h>
  31. #include <limits.h>
  32. #include <stdint.h>
  33. #include <assert.h>
  34. #include <locale.h>
  35. #ifdef __UCLIBC_HAS_XLOCALE__
  36. # include <xlocale.h>
  37. #endif
  38. /**********************************************************************/
  39. #ifdef __UCLIBC_HAS_CTYPE_TABLES__
  40. #ifdef __UCLIBC_HAS_CTYPE_SIGNED__
  41. #if EOF >= CHAR_MIN
  42. #define CTYPE_DOMAIN_CHECK(C) \
  43. (((unsigned int)((C) - CHAR_MIN)) <= (UCHAR_MAX - CHAR_MIN))
  44. #else
  45. #define CTYPE_DOMAIN_CHECK(C) \
  46. ((((unsigned int)((C) - CHAR_MIN)) <= (UCHAR_MAX - CHAR_MIN)) || ((C) == EOF))
  47. #endif
  48. #else /* __UCLIBC_HAS_CTYPE_SIGNED__ */
  49. #if EOF == -1
  50. #define CTYPE_DOMAIN_CHECK(C) \
  51. (((unsigned int)((C) - EOF)) <= (UCHAR_MAX - EOF))
  52. #else
  53. #define CTYPE_DOMAIN_CHECK(C) \
  54. ((((unsigned int)(C)) <= UCHAR_MAX) || ((C) == EOF))
  55. #endif
  56. #endif /* __UCLIBC_HAS_CTYPE_SIGNED__ */
  57. #endif /* __UCLIBC_HAS_CTYPE_TABLES__ */
  58. /**********************************************************************/
  59. #ifdef __UCLIBC_MJN3_ONLY__
  60. #ifdef L_isspace
  61. /* emit only once */
  62. #warning CONSIDER: Should we assert when debugging and __UCLIBC_HAS_CTYPE_CHECKED?
  63. #warning TODO: Fix asserts in to{upper|lower}{_l}.
  64. #warning TODO: Optimize the isx*() funcs.
  65. #endif
  66. #endif /* __UCLIBC_MJN3_ONLY__ */
  67. /**********************************************************************/
  68. #undef PASTE2
  69. #define PASTE2(X,Y) X ## Y
  70. #ifdef __UCLIBC_HAS_CTYPE_TABLES__
  71. #undef CTYPE_NAME
  72. #undef ISCTYPE
  73. #undef CTYPE_ALIAS
  74. #undef CTYPE_DEF
  75. #ifdef __UCLIBC_DO_XLOCALE
  76. #define CTYPE_NAME(X) __is ## X ## _l
  77. #define ISCTYPE(C,F) __isctype_l( C, F, locale_arg)
  78. #define CTYPE_ALIAS(NAME) strong_alias( __is ## NAME ## _l , is ## NAME ## _l)
  79. #define CTYPE_DEF(NAME) libc_hidden_def(is ## NAME ## _l)
  80. #else
  81. #define CTYPE_NAME(X) is ## X
  82. #define ISCTYPE(C,F) __isctype( C, F )
  83. #define CTYPE_ALIAS(NAME)
  84. #define CTYPE_DEF(NAME) libc_hidden_def(is ## NAME)
  85. #endif
  86. #undef CTYPE_BODY
  87. #if defined(__UCLIBC_HAS_CTYPE_ENFORCED__)
  88. /* Make sure assert is active for to*() funcs below. */
  89. #undef NDEBUG
  90. #include <assert.h>
  91. extern void __isctype_assert(int c, int mask) __attribute__ ((__noreturn__)) attribute_hidden;
  92. #define CTYPE_BODY(NAME,C,MASK) \
  93. if (CTYPE_DOMAIN_CHECK(C)) { \
  94. return ISCTYPE(C, MASK); \
  95. } \
  96. __isctype_assert(C, MASK);
  97. #elif defined(__UCLIBC_HAS_CTYPE_CHECKED__)
  98. #define CTYPE_BODY(NAME,C,MASK) \
  99. return CTYPE_DOMAIN_CHECK(C) \
  100. ? ISCTYPE(C, MASK) \
  101. : 0;
  102. #elif defined(__UCLIBC_HAS_CTYPE_UNSAFE__)
  103. #define CTYPE_BODY(NAME,C,MASK) \
  104. return ISCTYPE(C, MASK);
  105. #else /* No checking done. */
  106. #error Unknown type of ctype checking!
  107. #endif
  108. #define IS_FUNC_BODY(NAME) \
  109. int CTYPE_NAME(NAME) (int c __LOCALE_PARAM ); \
  110. int CTYPE_NAME(NAME) (int c __LOCALE_PARAM ) \
  111. { \
  112. CTYPE_BODY(NAME,c,PASTE2(_IS,NAME)) \
  113. } \
  114. CTYPE_DEF(NAME) \
  115. CTYPE_ALIAS(NAME)
  116. #else /* __UCLIBC_HAS_CTYPE_TABLES__ */
  117. #define C_MACRO(X) PASTE2(__C_is,X)(c)
  118. #define CTYPE_NAME(X) is ## X
  119. #define CTYPE_DEF(NAME) libc_hidden_def(is ## NAME)
  120. #define IS_FUNC_BODY(NAME) \
  121. int CTYPE_NAME(NAME) (int c) \
  122. { \
  123. return C_MACRO(NAME); \
  124. }
  125. #endif /* __UCLIBC_HAS_CTYPE_TABLES__ */
  126. /**********************************************************************/
  127. #ifdef L___ctype_assert
  128. #ifdef __UCLIBC_HAS_CTYPE_ENFORCED__
  129. attribute_hidden void __isctype_assert(int c, int mask)
  130. {
  131. fprintf(stderr, "%s: __is*{_l}(%d,%#x {locale})\n", __uclibc_progname, c, mask);
  132. abort();
  133. }
  134. #endif
  135. #endif
  136. /**********************************************************************/
  137. #if defined(L_isalnum) || defined(L_isalnum_l)
  138. IS_FUNC_BODY(alnum);
  139. #endif
  140. /**********************************************************************/
  141. #if defined(L_isalpha) || defined(L_isalpha_l)
  142. IS_FUNC_BODY(alpha);
  143. #endif
  144. /**********************************************************************/
  145. #if defined(L_isblank) || defined(L_isblank_l)
  146. IS_FUNC_BODY(blank);
  147. #endif
  148. /**********************************************************************/
  149. #if defined(L_iscntrl) || defined(L_iscntrl_l)
  150. IS_FUNC_BODY(cntrl);
  151. #endif
  152. /**********************************************************************/
  153. #if defined(L_isdigit) || defined(L_isdigit_l)
  154. #ifdef __UCLIBC_HAS_CTYPE_TABLES__
  155. /* The standards require EOF < 0. */
  156. #if EOF >= CHAR_MIN
  157. #define __isdigit_char_or_EOF(C) __isdigit_char((C))
  158. #else
  159. #define __isdigit_char_or_EOF(C) __isdigit_int((C))
  160. #endif
  161. int CTYPE_NAME(digit) (int C __LOCALE_PARAM);
  162. int CTYPE_NAME(digit) (int C __LOCALE_PARAM)
  163. {
  164. #if defined(__UCLIBC_HAS_CTYPE_ENFORCED__)
  165. if (CTYPE_DOMAIN_CHECK(C)) {
  166. return __isdigit_char_or_EOF(C); /* C is (unsigned) char or EOF. */
  167. }
  168. __isctype_assert(C, _ISdigit);
  169. #else
  170. return __isdigit_int(C); /* C could be invalid. */
  171. #endif
  172. }
  173. CTYPE_DEF(digit)
  174. CTYPE_ALIAS(digit)
  175. #else /* __UCLIBC_HAS_CTYPE_TABLES__ */
  176. IS_FUNC_BODY(digit);
  177. #endif /* __UCLIBC_HAS_CTYPE_TABLES__ */
  178. #endif
  179. /**********************************************************************/
  180. #if defined(L_isgraph) || defined(L_isgraph_l)
  181. IS_FUNC_BODY(graph);
  182. #endif
  183. /**********************************************************************/
  184. #if defined(L_islower) || defined(L_islower_l)
  185. IS_FUNC_BODY(lower);
  186. #endif
  187. /**********************************************************************/
  188. #if defined(L_isprint) || defined(L_isprint_l)
  189. IS_FUNC_BODY(print);
  190. #endif
  191. /**********************************************************************/
  192. #if defined(L_ispunct) || defined(L_ispunct_l)
  193. IS_FUNC_BODY(punct);
  194. #endif
  195. /**********************************************************************/
  196. #if defined(L_isspace) || defined(L_isspace_l)
  197. IS_FUNC_BODY(space);
  198. #endif
  199. /**********************************************************************/
  200. #if defined(L_isupper) || defined(L_isupper_l)
  201. IS_FUNC_BODY(upper);
  202. #endif
  203. /**********************************************************************/
  204. #if defined(L_isxdigit) || defined(L_isxdigit_l)
  205. IS_FUNC_BODY(xdigit);
  206. #endif
  207. /**********************************************************************/
  208. #ifdef L_tolower
  209. #undef tolower
  210. #ifdef __UCLIBC_HAS_CTYPE_TABLES__
  211. int tolower(int c)
  212. {
  213. #if defined(__UCLIBC_HAS_CTYPE_ENFORCED__)
  214. assert(CTYPE_DOMAIN_CHECK(c));
  215. #endif
  216. return __UCLIBC_CTYPE_IN_TO_DOMAIN(c) ? (__UCLIBC_CTYPE_TOLOWER)[c] : c;
  217. }
  218. #else /* __UCLIBC_HAS_CTYPE_TABLES__ */
  219. int tolower(int c)
  220. {
  221. return __C_tolower(c);
  222. }
  223. #endif /* __UCLIBC_HAS_CTYPE_TABLES__ */
  224. libc_hidden_def(tolower)
  225. #endif
  226. /**********************************************************************/
  227. #ifdef L_tolower_l
  228. #undef tolower_l
  229. int tolower_l(int c, __locale_t l)
  230. {
  231. #if defined(__UCLIBC_HAS_CTYPE_ENFORCED__)
  232. assert(CTYPE_DOMAIN_CHECK(c));
  233. #endif
  234. return __UCLIBC_CTYPE_IN_TO_DOMAIN(c) ? l->__ctype_tolower[c] : c;
  235. }
  236. libc_hidden_def(tolower_l)
  237. /*remove after 0.9.31. See ctype.h for why.
  238. *weak_alias (tolower_l, __tolower_l) */
  239. #endif
  240. /**********************************************************************/
  241. #ifdef L_toupper
  242. #undef toupper
  243. #ifdef __UCLIBC_HAS_CTYPE_TABLES__
  244. int toupper(int c)
  245. {
  246. #if defined(__UCLIBC_HAS_CTYPE_ENFORCED__)
  247. assert(CTYPE_DOMAIN_CHECK(c));
  248. #endif
  249. return __UCLIBC_CTYPE_IN_TO_DOMAIN(c) ? (__UCLIBC_CTYPE_TOUPPER)[c] : c;
  250. }
  251. #else /* __UCLIBC_HAS_CTYPE_TABLES__ */
  252. int toupper(int c)
  253. {
  254. return __C_toupper(c);
  255. }
  256. #endif /* __UCLIBC_HAS_CTYPE_TABLES__ */
  257. libc_hidden_def(toupper)
  258. #endif
  259. /**********************************************************************/
  260. #ifdef L_toupper_l
  261. #undef toupper_l
  262. int toupper_l(int c, __locale_t l)
  263. {
  264. #if defined(__UCLIBC_HAS_CTYPE_ENFORCED__)
  265. assert(CTYPE_DOMAIN_CHECK(c));
  266. #endif
  267. return __UCLIBC_CTYPE_IN_TO_DOMAIN(c) ? l->__ctype_toupper[c] : c;
  268. }
  269. /*remove after 0.9.31. See ctype.h for why.
  270. *weak_alias (toupper_l, __toupper_l) */
  271. #endif
  272. /**********************************************************************/
  273. #if defined(L_isascii) || defined(L_isascii_l)
  274. #ifdef __UCLIBC_HAS_CTYPE_TABLES__
  275. int __XL_NPP(isascii)(int c);
  276. int __XL_NPP(isascii)(int c)
  277. {
  278. return __isascii(c); /* locale-independent */
  279. }
  280. #else /* __UCLIBC_HAS_CTYPE_TABLES__ */
  281. int isascii(int c)
  282. {
  283. return __isascii(c); /* locale-independent */
  284. }
  285. #endif /* __UCLIBC_HAS_CTYPE_TABLES__ */
  286. CTYPE_DEF(ascii)
  287. #endif
  288. /**********************************************************************/
  289. #if defined(L_toascii) || defined(L_toascii_l)
  290. #ifdef __UCLIBC_HAS_CTYPE_TABLES__
  291. int __XL_NPP(toascii)(int c);
  292. int __XL_NPP(toascii)(int c)
  293. {
  294. return __toascii(c); /* locale-independent */
  295. }
  296. #else /* __UCLIBC_HAS_CTYPE_TABLES__ */
  297. int toascii(int c)
  298. {
  299. return __toascii(c); /* locale-independent */
  300. }
  301. #endif /* __UCLIBC_HAS_CTYPE_TABLES__ */
  302. #endif
  303. /**********************************************************************/
  304. /* glibc extensions */
  305. /**********************************************************************/
  306. #ifdef L_isctype
  307. int isctype(int c, int mask)
  308. {
  309. CTYPE_BODY(NAME,c,mask)
  310. }
  311. #endif
  312. /**********************************************************************/
  313. #ifdef L___ctype_b_loc
  314. #ifdef __UCLIBC_HAS_XLOCALE__
  315. const __ctype_mask_t **__ctype_b_loc(void)
  316. {
  317. return &(__UCLIBC_CURLOCALE->__ctype_b);
  318. }
  319. libc_hidden_def(__ctype_b_loc)
  320. #endif
  321. #endif
  322. /**********************************************************************/
  323. #ifdef L___ctype_tolower_loc
  324. #ifdef __UCLIBC_HAS_XLOCALE__
  325. const __ctype_touplow_t **__ctype_tolower_loc(void)
  326. {
  327. return &(__UCLIBC_CURLOCALE->__ctype_tolower);
  328. }
  329. libc_hidden_def(__ctype_tolower_loc)
  330. #endif
  331. #endif
  332. /**********************************************************************/
  333. #ifdef L___ctype_toupper_loc
  334. #ifdef __UCLIBC_HAS_XLOCALE__
  335. const __ctype_touplow_t **__ctype_toupper_loc(void)
  336. {
  337. return &(__UCLIBC_CURLOCALE->__ctype_toupper);
  338. }
  339. libc_hidden_def(__ctype_toupper_loc)
  340. #endif
  341. #endif
  342. /**********************************************************************/
  343. #ifdef L___C_ctype_b
  344. static const __ctype_mask_t __C_ctype_b_data[] = {
  345. #ifdef __UCLIBC_HAS_CTYPE_SIGNED__
  346. /* -128 M-^@ */ 0,
  347. /* -127 M-^A */ 0,
  348. /* -126 M-^B */ 0,
  349. /* -125 M-^C */ 0,
  350. /* -124 M-^D */ 0,
  351. /* -123 M-^E */ 0,
  352. /* -122 M-^F */ 0,
  353. /* -121 M-^G */ 0,
  354. /* -120 M-^H */ 0,
  355. /* -119 M-^I */ 0,
  356. /* -118 M-^J */ 0,
  357. /* -117 M-^K */ 0,
  358. /* -116 M-^L */ 0,
  359. /* -115 M-^M */ 0,
  360. /* -114 M-^N */ 0,
  361. /* -113 M-^O */ 0,
  362. /* -112 M-^P */ 0,
  363. /* -111 M-^Q */ 0,
  364. /* -110 M-^R */ 0,
  365. /* -109 M-^S */ 0,
  366. /* -108 M-^T */ 0,
  367. /* -107 M-^U */ 0,
  368. /* -106 M-^V */ 0,
  369. /* -105 M-^W */ 0,
  370. /* -104 M-^X */ 0,
  371. /* -103 M-^Y */ 0,
  372. /* -102 M-^Z */ 0,
  373. /* -101 M-^[ */ 0,
  374. /* -100 M-^\ */ 0,
  375. /* -99 M-^] */ 0,
  376. /* -98 M-^^ */ 0,
  377. /* -97 M-^_ */ 0,
  378. /* -96 M- */ 0,
  379. /* -95 M-! */ 0,
  380. /* -94 M-" */ 0,
  381. /* -93 M-# */ 0,
  382. /* -92 M-$ */ 0,
  383. /* -91 M-% */ 0,
  384. /* -90 M-& */ 0,
  385. /* -89 M-' */ 0,
  386. /* -88 M-( */ 0,
  387. /* -87 M-) */ 0,
  388. /* -86 M-* */ 0,
  389. /* -85 M-+ */ 0,
  390. /* -84 M-, */ 0,
  391. /* -83 M-- */ 0,
  392. /* -82 M-. */ 0,
  393. /* -81 M-/ */ 0,
  394. /* -80 M-0 */ 0,
  395. /* -79 M-1 */ 0,
  396. /* -78 M-2 */ 0,
  397. /* -77 M-3 */ 0,
  398. /* -76 M-4 */ 0,
  399. /* -75 M-5 */ 0,
  400. /* -74 M-6 */ 0,
  401. /* -73 M-7 */ 0,
  402. /* -72 M-8 */ 0,
  403. /* -71 M-9 */ 0,
  404. /* -70 M-: */ 0,
  405. /* -69 M-; */ 0,
  406. /* -68 M-< */ 0,
  407. /* -67 M-= */ 0,
  408. /* -66 M-> */ 0,
  409. /* -65 M-? */ 0,
  410. /* -64 M-@ */ 0,
  411. /* -63 M-A */ 0,
  412. /* -62 M-B */ 0,
  413. /* -61 M-C */ 0,
  414. /* -60 M-D */ 0,
  415. /* -59 M-E */ 0,
  416. /* -58 M-F */ 0,
  417. /* -57 M-G */ 0,
  418. /* -56 M-H */ 0,
  419. /* -55 M-I */ 0,
  420. /* -54 M-J */ 0,
  421. /* -53 M-K */ 0,
  422. /* -52 M-L */ 0,
  423. /* -51 M-M */ 0,
  424. /* -50 M-N */ 0,
  425. /* -49 M-O */ 0,
  426. /* -48 M-P */ 0,
  427. /* -47 M-Q */ 0,
  428. /* -46 M-R */ 0,
  429. /* -45 M-S */ 0,
  430. /* -44 M-T */ 0,
  431. /* -43 M-U */ 0,
  432. /* -42 M-V */ 0,
  433. /* -41 M-W */ 0,
  434. /* -40 M-X */ 0,
  435. /* -39 M-Y */ 0,
  436. /* -38 M-Z */ 0,
  437. /* -37 M-[ */ 0,
  438. /* -36 M-\ */ 0,
  439. /* -35 M-] */ 0,
  440. /* -34 M-^ */ 0,
  441. /* -33 M-_ */ 0,
  442. /* -32 M-` */ 0,
  443. /* -31 M-a */ 0,
  444. /* -30 M-b */ 0,
  445. /* -29 M-c */ 0,
  446. /* -28 M-d */ 0,
  447. /* -27 M-e */ 0,
  448. /* -26 M-f */ 0,
  449. /* -25 M-g */ 0,
  450. /* -24 M-h */ 0,
  451. /* -23 M-i */ 0,
  452. /* -22 M-j */ 0,
  453. /* -21 M-k */ 0,
  454. /* -20 M-l */ 0,
  455. /* -19 M-m */ 0,
  456. /* -18 M-n */ 0,
  457. /* -17 M-o */ 0,
  458. /* -16 M-p */ 0,
  459. /* -15 M-q */ 0,
  460. /* -14 M-r */ 0,
  461. /* -13 M-s */ 0,
  462. /* -12 M-t */ 0,
  463. /* -11 M-u */ 0,
  464. /* -10 M-v */ 0,
  465. /* -9 M-w */ 0,
  466. /* -8 M-x */ 0,
  467. /* -7 M-y */ 0,
  468. /* -6 M-z */ 0,
  469. /* -5 M-{ */ 0,
  470. /* -4 M-| */ 0,
  471. /* -3 M-} */ 0,
  472. /* -2 M-~ */ 0,
  473. #endif /* __UCLIBC_HAS_CTYPE_SIGNED__*/
  474. /* -1 M-^? */ 0,
  475. /* 0 ^@ */ _IScntrl,
  476. /* 1 ^A */ _IScntrl,
  477. /* 2 ^B */ _IScntrl,
  478. /* 3 ^C */ _IScntrl,
  479. /* 4 ^D */ _IScntrl,
  480. /* 5 ^E */ _IScntrl,
  481. /* 6 ^F */ _IScntrl,
  482. /* 7 ^G */ _IScntrl,
  483. /* 8 ^H */ _IScntrl,
  484. /* 9 ^I */ _ISspace|_ISblank|_IScntrl,
  485. /* 10 ^J */ _ISspace|_IScntrl,
  486. /* 11 ^K */ _ISspace|_IScntrl,
  487. /* 12 ^L */ _ISspace|_IScntrl,
  488. /* 13 ^M */ _ISspace|_IScntrl,
  489. /* 14 ^N */ _IScntrl,
  490. /* 15 ^O */ _IScntrl,
  491. /* 16 ^P */ _IScntrl,
  492. /* 17 ^Q */ _IScntrl,
  493. /* 18 ^R */ _IScntrl,
  494. /* 19 ^S */ _IScntrl,
  495. /* 20 ^T */ _IScntrl,
  496. /* 21 ^U */ _IScntrl,
  497. /* 22 ^V */ _IScntrl,
  498. /* 23 ^W */ _IScntrl,
  499. /* 24 ^X */ _IScntrl,
  500. /* 25 ^Y */ _IScntrl,
  501. /* 26 ^Z */ _IScntrl,
  502. /* 27 ^[ */ _IScntrl,
  503. /* 28 ^\ */ _IScntrl,
  504. /* 29 ^] */ _IScntrl,
  505. /* 30 ^^ */ _IScntrl,
  506. /* 31 ^_ */ _IScntrl,
  507. /* 32 */ _ISspace|_ISprint|_ISblank,
  508. /* 33 ! */ _ISprint|_ISgraph|_ISpunct,
  509. /* 34 " */ _ISprint|_ISgraph|_ISpunct,
  510. /* 35 # */ _ISprint|_ISgraph|_ISpunct,
  511. /* 36 $ */ _ISprint|_ISgraph|_ISpunct,
  512. /* 37 % */ _ISprint|_ISgraph|_ISpunct,
  513. /* 38 & */ _ISprint|_ISgraph|_ISpunct,
  514. /* 39 ' */ _ISprint|_ISgraph|_ISpunct,
  515. /* 40 ( */ _ISprint|_ISgraph|_ISpunct,
  516. /* 41 ) */ _ISprint|_ISgraph|_ISpunct,
  517. /* 42 * */ _ISprint|_ISgraph|_ISpunct,
  518. /* 43 + */ _ISprint|_ISgraph|_ISpunct,
  519. /* 44 , */ _ISprint|_ISgraph|_ISpunct,
  520. /* 45 - */ _ISprint|_ISgraph|_ISpunct,
  521. /* 46 . */ _ISprint|_ISgraph|_ISpunct,
  522. /* 47 / */ _ISprint|_ISgraph|_ISpunct,
  523. /* 48 0 */ _ISdigit|_ISxdigit|_ISprint|_ISgraph|_ISalnum,
  524. /* 49 1 */ _ISdigit|_ISxdigit|_ISprint|_ISgraph|_ISalnum,
  525. /* 50 2 */ _ISdigit|_ISxdigit|_ISprint|_ISgraph|_ISalnum,
  526. /* 51 3 */ _ISdigit|_ISxdigit|_ISprint|_ISgraph|_ISalnum,
  527. /* 52 4 */ _ISdigit|_ISxdigit|_ISprint|_ISgraph|_ISalnum,
  528. /* 53 5 */ _ISdigit|_ISxdigit|_ISprint|_ISgraph|_ISalnum,
  529. /* 54 6 */ _ISdigit|_ISxdigit|_ISprint|_ISgraph|_ISalnum,
  530. /* 55 7 */ _ISdigit|_ISxdigit|_ISprint|_ISgraph|_ISalnum,
  531. /* 56 8 */ _ISdigit|_ISxdigit|_ISprint|_ISgraph|_ISalnum,
  532. /* 57 9 */ _ISdigit|_ISxdigit|_ISprint|_ISgraph|_ISalnum,
  533. /* 58 : */ _ISprint|_ISgraph|_ISpunct,
  534. /* 59 ; */ _ISprint|_ISgraph|_ISpunct,
  535. /* 60 < */ _ISprint|_ISgraph|_ISpunct,
  536. /* 61 = */ _ISprint|_ISgraph|_ISpunct,
  537. /* 62 > */ _ISprint|_ISgraph|_ISpunct,
  538. /* 63 ? */ _ISprint|_ISgraph|_ISpunct,
  539. /* 64 @ */ _ISprint|_ISgraph|_ISpunct,
  540. /* 65 A */ _ISupper|_ISalpha|_ISxdigit|_ISprint|_ISgraph|_ISalnum,
  541. /* 66 B */ _ISupper|_ISalpha|_ISxdigit|_ISprint|_ISgraph|_ISalnum,
  542. /* 67 C */ _ISupper|_ISalpha|_ISxdigit|_ISprint|_ISgraph|_ISalnum,
  543. /* 68 D */ _ISupper|_ISalpha|_ISxdigit|_ISprint|_ISgraph|_ISalnum,
  544. /* 69 E */ _ISupper|_ISalpha|_ISxdigit|_ISprint|_ISgraph|_ISalnum,
  545. /* 70 F */ _ISupper|_ISalpha|_ISxdigit|_ISprint|_ISgraph|_ISalnum,
  546. /* 71 G */ _ISupper|_ISalpha|_ISprint|_ISgraph|_ISalnum,
  547. /* 72 H */ _ISupper|_ISalpha|_ISprint|_ISgraph|_ISalnum,
  548. /* 73 I */ _ISupper|_ISalpha|_ISprint|_ISgraph|_ISalnum,
  549. /* 74 J */ _ISupper|_ISalpha|_ISprint|_ISgraph|_ISalnum,
  550. /* 75 K */ _ISupper|_ISalpha|_ISprint|_ISgraph|_ISalnum,
  551. /* 76 L */ _ISupper|_ISalpha|_ISprint|_ISgraph|_ISalnum,
  552. /* 77 M */ _ISupper|_ISalpha|_ISprint|_ISgraph|_ISalnum,
  553. /* 78 N */ _ISupper|_ISalpha|_ISprint|_ISgraph|_ISalnum,
  554. /* 79 O */ _ISupper|_ISalpha|_ISprint|_ISgraph|_ISalnum,
  555. /* 80 P */ _ISupper|_ISalpha|_ISprint|_ISgraph|_ISalnum,
  556. /* 81 Q */ _ISupper|_ISalpha|_ISprint|_ISgraph|_ISalnum,
  557. /* 82 R */ _ISupper|_ISalpha|_ISprint|_ISgraph|_ISalnum,
  558. /* 83 S */ _ISupper|_ISalpha|_ISprint|_ISgraph|_ISalnum,
  559. /* 84 T */ _ISupper|_ISalpha|_ISprint|_ISgraph|_ISalnum,
  560. /* 85 U */ _ISupper|_ISalpha|_ISprint|_ISgraph|_ISalnum,
  561. /* 86 V */ _ISupper|_ISalpha|_ISprint|_ISgraph|_ISalnum,
  562. /* 87 W */ _ISupper|_ISalpha|_ISprint|_ISgraph|_ISalnum,
  563. /* 88 X */ _ISupper|_ISalpha|_ISprint|_ISgraph|_ISalnum,
  564. /* 89 Y */ _ISupper|_ISalpha|_ISprint|_ISgraph|_ISalnum,
  565. /* 90 Z */ _ISupper|_ISalpha|_ISprint|_ISgraph|_ISalnum,
  566. /* 91 [ */ _ISprint|_ISgraph|_ISpunct,
  567. /* 92 \ */ _ISprint|_ISgraph|_ISpunct,
  568. /* 93 ] */ _ISprint|_ISgraph|_ISpunct,
  569. /* 94 ^ */ _ISprint|_ISgraph|_ISpunct,
  570. /* 95 _ */ _ISprint|_ISgraph|_ISpunct,
  571. /* 96 ` */ _ISprint|_ISgraph|_ISpunct,
  572. /* 97 a */ _ISlower|_ISalpha|_ISxdigit|_ISprint|_ISgraph|_ISalnum,
  573. /* 98 b */ _ISlower|_ISalpha|_ISxdigit|_ISprint|_ISgraph|_ISalnum,
  574. /* 99 c */ _ISlower|_ISalpha|_ISxdigit|_ISprint|_ISgraph|_ISalnum,
  575. /* 100 d */ _ISlower|_ISalpha|_ISxdigit|_ISprint|_ISgraph|_ISalnum,
  576. /* 101 e */ _ISlower|_ISalpha|_ISxdigit|_ISprint|_ISgraph|_ISalnum,
  577. /* 102 f */ _ISlower|_ISalpha|_ISxdigit|_ISprint|_ISgraph|_ISalnum,
  578. /* 103 g */ _ISlower|_ISalpha|_ISprint|_ISgraph|_ISalnum,
  579. /* 104 h */ _ISlower|_ISalpha|_ISprint|_ISgraph|_ISalnum,
  580. /* 105 i */ _ISlower|_ISalpha|_ISprint|_ISgraph|_ISalnum,
  581. /* 106 j */ _ISlower|_ISalpha|_ISprint|_ISgraph|_ISalnum,
  582. /* 107 k */ _ISlower|_ISalpha|_ISprint|_ISgraph|_ISalnum,
  583. /* 108 l */ _ISlower|_ISalpha|_ISprint|_ISgraph|_ISalnum,
  584. /* 109 m */ _ISlower|_ISalpha|_ISprint|_ISgraph|_ISalnum,
  585. /* 110 n */ _ISlower|_ISalpha|_ISprint|_ISgraph|_ISalnum,
  586. /* 111 o */ _ISlower|_ISalpha|_ISprint|_ISgraph|_ISalnum,
  587. /* 112 p */ _ISlower|_ISalpha|_ISprint|_ISgraph|_ISalnum,
  588. /* 113 q */ _ISlower|_ISalpha|_ISprint|_ISgraph|_ISalnum,
  589. /* 114 r */ _ISlower|_ISalpha|_ISprint|_ISgraph|_ISalnum,
  590. /* 115 s */ _ISlower|_ISalpha|_ISprint|_ISgraph|_ISalnum,
  591. /* 116 t */ _ISlower|_ISalpha|_ISprint|_ISgraph|_ISalnum,
  592. /* 117 u */ _ISlower|_ISalpha|_ISprint|_ISgraph|_ISalnum,
  593. /* 118 v */ _ISlower|_ISalpha|_ISprint|_ISgraph|_ISalnum,
  594. /* 119 w */ _ISlower|_ISalpha|_ISprint|_ISgraph|_ISalnum,
  595. /* 120 x */ _ISlower|_ISalpha|_ISprint|_ISgraph|_ISalnum,
  596. /* 121 y */ _ISlower|_ISalpha|_ISprint|_ISgraph|_ISalnum,
  597. /* 122 z */ _ISlower|_ISalpha|_ISprint|_ISgraph|_ISalnum,
  598. /* 123 { */ _ISprint|_ISgraph|_ISpunct,
  599. /* 124 | */ _ISprint|_ISgraph|_ISpunct,
  600. /* 125 } */ _ISprint|_ISgraph|_ISpunct,
  601. /* 126 ~ */ _ISprint|_ISgraph|_ISpunct,
  602. /* 127 ^? */ _IScntrl,
  603. /* 128 M-^@ */ 0,
  604. /* 129 M-^A */ 0,
  605. /* 130 M-^B */ 0,
  606. /* 131 M-^C */ 0,
  607. /* 132 M-^D */ 0,
  608. /* 133 M-^E */ 0,
  609. /* 134 M-^F */ 0,
  610. /* 135 M-^G */ 0,
  611. /* 136 M-^H */ 0,
  612. /* 137 M-^I */ 0,
  613. /* 138 M-^J */ 0,
  614. /* 139 M-^K */ 0,
  615. /* 140 M-^L */ 0,
  616. /* 141 M-^M */ 0,
  617. /* 142 M-^N */ 0,
  618. /* 143 M-^O */ 0,
  619. /* 144 M-^P */ 0,
  620. /* 145 M-^Q */ 0,
  621. /* 146 M-^R */ 0,
  622. /* 147 M-^S */ 0,
  623. /* 148 M-^T */ 0,
  624. /* 149 M-^U */ 0,
  625. /* 150 M-^V */ 0,
  626. /* 151 M-^W */ 0,
  627. /* 152 M-^X */ 0,
  628. /* 153 M-^Y */ 0,
  629. /* 154 M-^Z */ 0,
  630. /* 155 M-^[ */ 0,
  631. /* 156 M-^\ */ 0,
  632. /* 157 M-^] */ 0,
  633. /* 158 M-^^ */ 0,
  634. /* 159 M-^_ */ 0,
  635. /* 160 M- */ 0,
  636. /* 161 M-! */ 0,
  637. /* 162 M-" */ 0,
  638. /* 163 M-# */ 0,
  639. /* 164 M-$ */ 0,
  640. /* 165 M-% */ 0,
  641. /* 166 M-& */ 0,
  642. /* 167 M-' */ 0,
  643. /* 168 M-( */ 0,
  644. /* 169 M-) */ 0,
  645. /* 170 M-* */ 0,
  646. /* 171 M-+ */ 0,
  647. /* 172 M-, */ 0,
  648. /* 173 M-- */ 0,
  649. /* 174 M-. */ 0,
  650. /* 175 M-/ */ 0,
  651. /* 176 M-0 */ 0,
  652. /* 177 M-1 */ 0,
  653. /* 178 M-2 */ 0,
  654. /* 179 M-3 */ 0,
  655. /* 180 M-4 */ 0,
  656. /* 181 M-5 */ 0,
  657. /* 182 M-6 */ 0,
  658. /* 183 M-7 */ 0,
  659. /* 184 M-8 */ 0,
  660. /* 185 M-9 */ 0,
  661. /* 186 M-: */ 0,
  662. /* 187 M-; */ 0,
  663. /* 188 M-< */ 0,
  664. /* 189 M-= */ 0,
  665. /* 190 M-> */ 0,
  666. /* 191 M-? */ 0,
  667. /* 192 M-@ */ 0,
  668. /* 193 M-A */ 0,
  669. /* 194 M-B */ 0,
  670. /* 195 M-C */ 0,
  671. /* 196 M-D */ 0,
  672. /* 197 M-E */ 0,
  673. /* 198 M-F */ 0,
  674. /* 199 M-G */ 0,
  675. /* 200 M-H */ 0,
  676. /* 201 M-I */ 0,
  677. /* 202 M-J */ 0,
  678. /* 203 M-K */ 0,
  679. /* 204 M-L */ 0,
  680. /* 205 M-M */ 0,
  681. /* 206 M-N */ 0,
  682. /* 207 M-O */ 0,
  683. /* 208 M-P */ 0,
  684. /* 209 M-Q */ 0,
  685. /* 210 M-R */ 0,
  686. /* 211 M-S */ 0,
  687. /* 212 M-T */ 0,
  688. /* 213 M-U */ 0,
  689. /* 214 M-V */ 0,
  690. /* 215 M-W */ 0,
  691. /* 216 M-X */ 0,
  692. /* 217 M-Y */ 0,
  693. /* 218 M-Z */ 0,
  694. /* 219 M-[ */ 0,
  695. /* 220 M-\ */ 0,
  696. /* 221 M-] */ 0,
  697. /* 222 M-^ */ 0,
  698. /* 223 M-_ */ 0,
  699. /* 224 M-` */ 0,
  700. /* 225 M-a */ 0,
  701. /* 226 M-b */ 0,
  702. /* 227 M-c */ 0,
  703. /* 228 M-d */ 0,
  704. /* 229 M-e */ 0,
  705. /* 230 M-f */ 0,
  706. /* 231 M-g */ 0,
  707. /* 232 M-h */ 0,
  708. /* 233 M-i */ 0,
  709. /* 234 M-j */ 0,
  710. /* 235 M-k */ 0,
  711. /* 236 M-l */ 0,
  712. /* 237 M-m */ 0,
  713. /* 238 M-n */ 0,
  714. /* 239 M-o */ 0,
  715. /* 240 M-p */ 0,
  716. /* 241 M-q */ 0,
  717. /* 242 M-r */ 0,
  718. /* 243 M-s */ 0,
  719. /* 244 M-t */ 0,
  720. /* 245 M-u */ 0,
  721. /* 246 M-v */ 0,
  722. /* 247 M-w */ 0,
  723. /* 248 M-x */ 0,
  724. /* 249 M-y */ 0,
  725. /* 250 M-z */ 0,
  726. /* 251 M-{ */ 0,
  727. /* 252 M-| */ 0,
  728. /* 253 M-} */ 0,
  729. /* 254 M-~ */ 0,
  730. /* 255 M-^? */ 0
  731. };
  732. const __ctype_mask_t *__C_ctype_b = __C_ctype_b_data + __UCLIBC_CTYPE_B_TBL_OFFSET;
  733. libc_hidden_data_def(__C_ctype_b)
  734. #ifndef __UCLIBC_HAS_XLOCALE__
  735. const __ctype_mask_t *__ctype_b = __C_ctype_b_data + __UCLIBC_CTYPE_B_TBL_OFFSET;
  736. libc_hidden_data_def(__ctype_b)
  737. #endif
  738. #endif
  739. /**********************************************************************/
  740. #ifdef L___C_ctype_tolower
  741. static const __ctype_touplow_t __C_ctype_tolower_data[] = {
  742. #ifdef __UCLIBC_HAS_CTYPE_SIGNED__
  743. -128, -127, -126, -125,
  744. -124, -123, -122, -121,
  745. -120, -119, -118, -117,
  746. -116, -115, -114, -113,
  747. -112, -111, -110, -109,
  748. -108, -107, -106, -105,
  749. -104, -103, -102, -101,
  750. -100, -99, -98, -97,
  751. -96, -95, -94, -93,
  752. -92, -91, -90, -89,
  753. -88, -87, -86, -85,
  754. -84, -83, -82, -81,
  755. -80, -79, -78, -77,
  756. -76, -75, -74, -73,
  757. -72, -71, -70, -69,
  758. -68, -67, -66, -65,
  759. -64, -63, -62, -61,
  760. -60, -59, -58, -57,
  761. -56, -55, -54, -53,
  762. -52, -51, -50, -49,
  763. -48, -47, -46, -45,
  764. -44, -43, -42, -41,
  765. -40, -39, -38, -37,
  766. -36, -35, -34, -33,
  767. -32, -31, -30, -29,
  768. -28, -27, -26, -25,
  769. -24, -23, -22, -21,
  770. -20, -19, -18, -17,
  771. -16, -15, -14, -13,
  772. -12, -11, -10, -9,
  773. -8, -7, -6, -5,
  774. -4, -3, -2, -1,
  775. #endif /* __UCLIBC_HAS_CTYPE_SIGNED__*/
  776. 0, 1, 2, 3,
  777. 4, 5, 6, 7,
  778. 8, 9, 10, 11,
  779. 12, 13, 14, 15,
  780. 16, 17, 18, 19,
  781. 20, 21, 22, 23,
  782. 24, 25, 26, 27,
  783. 28, 29, 30, 31,
  784. 32, 33, 34, 35,
  785. 36, 37, 38, 39,
  786. 40, 41, 42, 43,
  787. 44, 45, 46, 47,
  788. 48, 49, 50, 51,
  789. 52, 53, 54, 55,
  790. 56, 57, 58, 59,
  791. 60, 61, 62, 63,
  792. 64, 97 /* a */, 98 /* b */, 99 /* c */,
  793. 100 /* d */, 101 /* e */, 102 /* f */, 103 /* g */,
  794. 104 /* h */, 105 /* i */, 106 /* j */, 107 /* k */,
  795. 108 /* l */, 109 /* m */, 110 /* n */, 111 /* o */,
  796. 112 /* p */, 113 /* q */, 114 /* r */, 115 /* s */,
  797. 116 /* t */, 117 /* u */, 118 /* v */, 119 /* w */,
  798. 120 /* x */, 121 /* y */, 122 /* z */, 91,
  799. 92, 93, 94, 95,
  800. 96, 97, 98, 99,
  801. 100, 101, 102, 103,
  802. 104, 105, 106, 107,
  803. 108, 109, 110, 111,
  804. 112, 113, 114, 115,
  805. 116, 117, 118, 119,
  806. 120, 121, 122, 123,
  807. 124, 125, 126, 127,
  808. 128, 129, 130, 131,
  809. 132, 133, 134, 135,
  810. 136, 137, 138, 139,
  811. 140, 141, 142, 143,
  812. 144, 145, 146, 147,
  813. 148, 149, 150, 151,
  814. 152, 153, 154, 155,
  815. 156, 157, 158, 159,
  816. 160, 161, 162, 163,
  817. 164, 165, 166, 167,
  818. 168, 169, 170, 171,
  819. 172, 173, 174, 175,
  820. 176, 177, 178, 179,
  821. 180, 181, 182, 183,
  822. 184, 185, 186, 187,
  823. 188, 189, 190, 191,
  824. 192, 193, 194, 195,
  825. 196, 197, 198, 199,
  826. 200, 201, 202, 203,
  827. 204, 205, 206, 207,
  828. 208, 209, 210, 211,
  829. 212, 213, 214, 215,
  830. 216, 217, 218, 219,
  831. 220, 221, 222, 223,
  832. 224, 225, 226, 227,
  833. 228, 229, 230, 231,
  834. 232, 233, 234, 235,
  835. 236, 237, 238, 239,
  836. 240, 241, 242, 243,
  837. 244, 245, 246, 247,
  838. 248, 249, 250, 251,
  839. 252, 253, 254, 255
  840. };
  841. const __ctype_touplow_t *__C_ctype_tolower =
  842. __C_ctype_tolower_data + __UCLIBC_CTYPE_TO_TBL_OFFSET;
  843. libc_hidden_data_def(__C_ctype_tolower)
  844. #ifndef __UCLIBC_HAS_XLOCALE__
  845. const __ctype_touplow_t *__ctype_tolower =
  846. __C_ctype_tolower_data + __UCLIBC_CTYPE_TO_TBL_OFFSET;
  847. libc_hidden_data_def(__ctype_tolower)
  848. #endif
  849. #endif
  850. /**********************************************************************/
  851. #ifdef L___C_ctype_toupper
  852. static const __ctype_touplow_t __C_ctype_toupper_data[] = {
  853. #ifdef __UCLIBC_HAS_CTYPE_SIGNED__
  854. -128, -127, -126, -125,
  855. -124, -123, -122, -121,
  856. -120, -119, -118, -117,
  857. -116, -115, -114, -113,
  858. -112, -111, -110, -109,
  859. -108, -107, -106, -105,
  860. -104, -103, -102, -101,
  861. -100, -99, -98, -97,
  862. -96, -95, -94, -93,
  863. -92, -91, -90, -89,
  864. -88, -87, -86, -85,
  865. -84, -83, -82, -81,
  866. -80, -79, -78, -77,
  867. -76, -75, -74, -73,
  868. -72, -71, -70, -69,
  869. -68, -67, -66, -65,
  870. -64, -63, -62, -61,
  871. -60, -59, -58, -57,
  872. -56, -55, -54, -53,
  873. -52, -51, -50, -49,
  874. -48, -47, -46, -45,
  875. -44, -43, -42, -41,
  876. -40, -39, -38, -37,
  877. -36, -35, -34, -33,
  878. -32, -31, -30, -29,
  879. -28, -27, -26, -25,
  880. -24, -23, -22, -21,
  881. -20, -19, -18, -17,
  882. -16, -15, -14, -13,
  883. -12, -11, -10, -9,
  884. -8, -7, -6, -5,
  885. -4, -3, -2, -1,
  886. #endif /* __UCLIBC_HAS_CTYPE_SIGNED__*/
  887. 0, 1, 2, 3,
  888. 4, 5, 6, 7,
  889. 8, 9, 10, 11,
  890. 12, 13, 14, 15,
  891. 16, 17, 18, 19,
  892. 20, 21, 22, 23,
  893. 24, 25, 26, 27,
  894. 28, 29, 30, 31,
  895. 32, 33, 34, 35,
  896. 36, 37, 38, 39,
  897. 40, 41, 42, 43,
  898. 44, 45, 46, 47,
  899. 48, 49, 50, 51,
  900. 52, 53, 54, 55,
  901. 56, 57, 58, 59,
  902. 60, 61, 62, 63,
  903. 64, 65, 66, 67,
  904. 68, 69, 70, 71,
  905. 72, 73, 74, 75,
  906. 76, 77, 78, 79,
  907. 80, 81, 82, 83,
  908. 84, 85, 86, 87,
  909. 88, 89, 90, 91,
  910. 92, 93, 94, 95,
  911. 96, 65 /* A */, 66 /* B */, 67 /* C */,
  912. 68 /* D */, 69 /* E */, 70 /* F */, 71 /* G */,
  913. 72 /* H */, 73 /* I */, 74 /* J */, 75 /* K */,
  914. 76 /* L */, 77 /* M */, 78 /* N */, 79 /* O */,
  915. 80 /* P */, 81 /* Q */, 82 /* R */, 83 /* S */,
  916. 84 /* T */, 85 /* U */, 86 /* V */, 87 /* W */,
  917. 88 /* X */, 89 /* Y */, 90 /* Z */, 123,
  918. 124, 125, 126, 127,
  919. 128, 129, 130, 131,
  920. 132, 133, 134, 135,
  921. 136, 137, 138, 139,
  922. 140, 141, 142, 143,
  923. 144, 145, 146, 147,
  924. 148, 149, 150, 151,
  925. 152, 153, 154, 155,
  926. 156, 157, 158, 159,
  927. 160, 161, 162, 163,
  928. 164, 165, 166, 167,
  929. 168, 169, 170, 171,
  930. 172, 173, 174, 175,
  931. 176, 177, 178, 179,
  932. 180, 181, 182, 183,
  933. 184, 185, 186, 187,
  934. 188, 189, 190, 191,
  935. 192, 193, 194, 195,
  936. 196, 197, 198, 199,
  937. 200, 201, 202, 203,
  938. 204, 205, 206, 207,
  939. 208, 209, 210, 211,
  940. 212, 213, 214, 215,
  941. 216, 217, 218, 219,
  942. 220, 221, 222, 223,
  943. 224, 225, 226, 227,
  944. 228, 229, 230, 231,
  945. 232, 233, 234, 235,
  946. 236, 237, 238, 239,
  947. 240, 241, 242, 243,
  948. 244, 245, 246, 247,
  949. 248, 249, 250, 251,
  950. 252, 253, 254, 255
  951. };
  952. const __ctype_touplow_t *__C_ctype_toupper =
  953. __C_ctype_toupper_data + __UCLIBC_CTYPE_TO_TBL_OFFSET;
  954. libc_hidden_data_def(__C_ctype_toupper)
  955. #ifndef __UCLIBC_HAS_XLOCALE__
  956. const __ctype_touplow_t *__ctype_toupper =
  957. __C_ctype_toupper_data + __UCLIBC_CTYPE_TO_TBL_OFFSET;
  958. libc_hidden_data_def(__ctype_toupper)
  959. #endif
  960. #endif
  961. /**********************************************************************/