ctype.c 35 KB

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