ctype.c 33 KB

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