ctype.c 33 KB

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