ctype.c 33 KB

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