ctype.c 33 KB

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