C-ctype.c 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382
  1. /* Copyright (C) 1995, 1996, 1997, 1998, 2000 Free Software Foundation, Inc.
  2. This file is part of the GNU C Library.
  3. Contributed by Ulrich Drepper <drepper@gnu.ai.mit.edu>, 1995.
  4. The GNU C Library is free software; you can redistribute it and/or
  5. modify it under the terms of the GNU Library General Public License as
  6. published by the Free Software Foundation; either version 2 of the
  7. License, or (at your option) any later version.
  8. The GNU C 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. You should have received a copy of the GNU Library General Public
  13. License along with the GNU C Library; see the file COPYING.LIB. If not,
  14. write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
  15. Boston, MA 02111-1307, USA. */
  16. #include "localeinfo.h"
  17. #include <endian.h>
  18. /* This table's entries are taken from POSIX.2 Table 2-6
  19. ``LC_CTYPE Category Definition in the POSIX Locale''.
  20. The `_nl_C_LC_CTYPE_width' array is a GNU extension.
  21. In the `_nl_C_LC_CTYPE_class' array the value for EOF (== -1)
  22. is set to always return 0 and the conversion arrays return EOF. */
  23. const char _nl_C_LC_CTYPE_class[768] =
  24. /* 0x80 */ "\000\000" "\000\000" "\000\000" "\000\000" "\000\000" "\000\000"
  25. /* 0x86 */ "\000\000" "\000\000" "\000\000" "\000\000" "\000\000" "\000\000"
  26. /* 0x8c */ "\000\000" "\000\000" "\000\000" "\000\000" "\000\000" "\000\000"
  27. /* 0x92 */ "\000\000" "\000\000" "\000\000" "\000\000" "\000\000" "\000\000"
  28. /* 0x98 */ "\000\000" "\000\000" "\000\000" "\000\000" "\000\000" "\000\000"
  29. /* 0x9e */ "\000\000" "\000\000" "\000\000" "\000\000" "\000\000" "\000\000"
  30. /* 0xa4 */ "\000\000" "\000\000" "\000\000" "\000\000" "\000\000" "\000\000"
  31. /* 0xaa */ "\000\000" "\000\000" "\000\000" "\000\000" "\000\000" "\000\000"
  32. /* 0xb0 */ "\000\000" "\000\000" "\000\000" "\000\000" "\000\000" "\000\000"
  33. /* 0xb6 */ "\000\000" "\000\000" "\000\000" "\000\000" "\000\000" "\000\000"
  34. /* 0xbc */ "\000\000" "\000\000" "\000\000" "\000\000" "\000\000" "\000\000"
  35. /* 0xc2 */ "\000\000" "\000\000" "\000\000" "\000\000" "\000\000" "\000\000"
  36. /* 0xc8 */ "\000\000" "\000\000" "\000\000" "\000\000" "\000\000" "\000\000"
  37. /* 0xce */ "\000\000" "\000\000" "\000\000" "\000\000" "\000\000" "\000\000"
  38. /* 0xd4 */ "\000\000" "\000\000" "\000\000" "\000\000" "\000\000" "\000\000"
  39. /* 0xda */ "\000\000" "\000\000" "\000\000" "\000\000" "\000\000" "\000\000"
  40. /* 0xe0 */ "\000\000" "\000\000" "\000\000" "\000\000" "\000\000" "\000\000"
  41. /* 0xe6 */ "\000\000" "\000\000" "\000\000" "\000\000" "\000\000" "\000\000"
  42. /* 0xec */ "\000\000" "\000\000" "\000\000" "\000\000" "\000\000" "\000\000"
  43. /* 0xf2 */ "\000\000" "\000\000" "\000\000" "\000\000" "\000\000" "\000\000"
  44. /* 0xf8 */ "\000\000" "\000\000" "\000\000" "\000\000" "\000\000" "\000\000"
  45. /* 0xfe */ "\000\000" "\000\000" "\002\000" "\002\000" "\002\000" "\002\000"
  46. /* 0x04 */ "\002\000" "\002\000" "\002\000" "\002\000" "\002\000" "\003\040"
  47. /* 0x0a */ "\002\040" "\002\040" "\002\040" "\002\040" "\002\000" "\002\000"
  48. /* 0x10 */ "\002\000" "\002\000" "\002\000" "\002\000" "\002\000" "\002\000"
  49. /* 0x16 */ "\002\000" "\002\000" "\002\000" "\002\000" "\002\000" "\002\000"
  50. /* 0x1c */ "\002\000" "\002\000" "\002\000" "\002\000" "\001\140" "\004\300"
  51. /* 0x22 */ "\004\300" "\004\300" "\004\300" "\004\300" "\004\300" "\004\300"
  52. /* 0x28 */ "\004\300" "\004\300" "\004\300" "\004\300" "\004\300" "\004\300"
  53. /* 0x2e */ "\004\300" "\004\300" "\010\330" "\010\330" "\010\330" "\010\330"
  54. /* 0x34 */ "\010\330" "\010\330" "\010\330" "\010\330" "\010\330" "\010\330"
  55. /* 0x3a */ "\004\300" "\004\300" "\004\300" "\004\300" "\004\300" "\004\300"
  56. /* 0x40 */ "\004\300" "\010\325" "\010\325" "\010\325" "\010\325" "\010\325"
  57. /* 0x46 */ "\010\325" "\010\305" "\010\305" "\010\305" "\010\305" "\010\305"
  58. /* 0x4c */ "\010\305" "\010\305" "\010\305" "\010\305" "\010\305" "\010\305"
  59. /* 0x52 */ "\010\305" "\010\305" "\010\305" "\010\305" "\010\305" "\010\305"
  60. /* 0x58 */ "\010\305" "\010\305" "\010\305" "\004\300" "\004\300" "\004\300"
  61. /* 0x5e */ "\004\300" "\004\300" "\004\300" "\010\326" "\010\326" "\010\326"
  62. /* 0x64 */ "\010\326" "\010\326" "\010\326" "\010\306" "\010\306" "\010\306"
  63. /* 0x6a */ "\010\306" "\010\306" "\010\306" "\010\306" "\010\306" "\010\306"
  64. /* 0x70 */ "\010\306" "\010\306" "\010\306" "\010\306" "\010\306" "\010\306"
  65. /* 0x76 */ "\010\306" "\010\306" "\010\306" "\010\306" "\010\306" "\004\300"
  66. /* 0x7c */ "\004\300" "\004\300" "\004\300" "\002\000" "\000\000" "\000\000"
  67. /* 0x82 */ "\000\000" "\000\000" "\000\000" "\000\000" "\000\000" "\000\000"
  68. /* 0x88 */ "\000\000" "\000\000" "\000\000" "\000\000" "\000\000" "\000\000"
  69. /* 0x8e */ "\000\000" "\000\000" "\000\000" "\000\000" "\000\000" "\000\000"
  70. /* 0x94 */ "\000\000" "\000\000" "\000\000" "\000\000" "\000\000" "\000\000"
  71. /* 0x9a */ "\000\000" "\000\000" "\000\000" "\000\000" "\000\000" "\000\000"
  72. /* 0xa0 */ "\000\000" "\000\000" "\000\000" "\000\000" "\000\000" "\000\000"
  73. /* 0xa6 */ "\000\000" "\000\000" "\000\000" "\000\000" "\000\000" "\000\000"
  74. /* 0xac */ "\000\000" "\000\000" "\000\000" "\000\000" "\000\000" "\000\000"
  75. /* 0xb2 */ "\000\000" "\000\000" "\000\000" "\000\000" "\000\000" "\000\000"
  76. /* 0xb8 */ "\000\000" "\000\000" "\000\000" "\000\000" "\000\000" "\000\000"
  77. /* 0xbe */ "\000\000" "\000\000" "\000\000" "\000\000" "\000\000" "\000\000"
  78. /* 0xc4 */ "\000\000" "\000\000" "\000\000" "\000\000" "\000\000" "\000\000"
  79. /* 0xca */ "\000\000" "\000\000" "\000\000" "\000\000" "\000\000" "\000\000"
  80. /* 0xd0 */ "\000\000" "\000\000" "\000\000" "\000\000" "\000\000" "\000\000"
  81. /* 0xd6 */ "\000\000" "\000\000" "\000\000" "\000\000" "\000\000" "\000\000"
  82. /* 0xdc */ "\000\000" "\000\000" "\000\000" "\000\000" "\000\000" "\000\000"
  83. /* 0xe2 */ "\000\000" "\000\000" "\000\000" "\000\000" "\000\000" "\000\000"
  84. /* 0xe8 */ "\000\000" "\000\000" "\000\000" "\000\000" "\000\000" "\000\000"
  85. /* 0xee */ "\000\000" "\000\000" "\000\000" "\000\000" "\000\000" "\000\000"
  86. /* 0xf4 */ "\000\000" "\000\000" "\000\000" "\000\000" "\000\000" "\000\000"
  87. /* 0xfa */ "\000\000" "\000\000" "\000\000" "\000\000" "\000\000" "\000\000"
  88. ;
  89. const char _nl_C_LC_CTYPE_class32[1024] =
  90. /* 0x00 */ "\000\000\002\000" "\000\000\002\000" "\000\000\002\000"
  91. /* 0x03 */ "\000\000\002\000" "\000\000\002\000" "\000\000\002\000"
  92. /* 0x06 */ "\000\000\002\000" "\000\000\002\000" "\000\000\002\000"
  93. /* 0x09 */ "\000\000\003\040" "\000\000\002\040" "\000\000\002\040"
  94. /* 0x0c */ "\000\000\002\040" "\000\000\002\040" "\000\000\002\000"
  95. /* 0x0f */ "\000\000\002\000" "\000\000\002\000" "\000\000\002\000"
  96. /* 0x12 */ "\000\000\002\000" "\000\000\002\000" "\000\000\002\000"
  97. /* 0x15 */ "\000\000\002\000" "\000\000\002\000" "\000\000\002\000"
  98. /* 0x18 */ "\000\000\002\000" "\000\000\002\000" "\000\000\002\000"
  99. /* 0x1b */ "\000\000\002\000" "\000\000\002\000" "\000\000\002\000"
  100. /* 0x1e */ "\000\000\002\000" "\000\000\002\000" "\000\000\001\140"
  101. /* 0x21 */ "\000\000\004\300" "\000\000\004\300" "\000\000\004\300"
  102. /* 0x24 */ "\000\000\004\300" "\000\000\004\300" "\000\000\004\300"
  103. /* 0x27 */ "\000\000\004\300" "\000\000\004\300" "\000\000\004\300"
  104. /* 0x2a */ "\000\000\004\300" "\000\000\004\300" "\000\000\004\300"
  105. /* 0x2d */ "\000\000\004\300" "\000\000\004\300" "\000\000\004\300"
  106. /* 0x30 */ "\000\000\010\330" "\000\000\010\330" "\000\000\010\330"
  107. /* 0x33 */ "\000\000\010\330" "\000\000\010\330" "\000\000\010\330"
  108. /* 0x36 */ "\000\000\010\330" "\000\000\010\330" "\000\000\010\330"
  109. /* 0x39 */ "\000\000\010\330" "\000\000\004\300" "\000\000\004\300"
  110. /* 0x3c */ "\000\000\004\300" "\000\000\004\300" "\000\000\004\300"
  111. /* 0x3f */ "\000\000\004\300" "\000\000\004\300" "\000\000\010\325"
  112. /* 0x42 */ "\000\000\010\325" "\000\000\010\325" "\000\000\010\325"
  113. /* 0x45 */ "\000\000\010\325" "\000\000\010\325" "\000\000\010\305"
  114. /* 0x48 */ "\000\000\010\305" "\000\000\010\305" "\000\000\010\305"
  115. /* 0x4b */ "\000\000\010\305" "\000\000\010\305" "\000\000\010\305"
  116. /* 0x4e */ "\000\000\010\305" "\000\000\010\305" "\000\000\010\305"
  117. /* 0x51 */ "\000\000\010\305" "\000\000\010\305" "\000\000\010\305"
  118. /* 0x54 */ "\000\000\010\305" "\000\000\010\305" "\000\000\010\305"
  119. /* 0x57 */ "\000\000\010\305" "\000\000\010\305" "\000\000\010\305"
  120. /* 0x5a */ "\000\000\010\305" "\000\000\004\300" "\000\000\004\300"
  121. /* 0x5d */ "\000\000\004\300" "\000\000\004\300" "\000\000\004\300"
  122. /* 0x60 */ "\000\000\004\300" "\000\000\010\326" "\000\000\010\326"
  123. /* 0x63 */ "\000\000\010\326" "\000\000\010\326" "\000\000\010\326"
  124. /* 0x66 */ "\000\000\010\326" "\000\000\010\306" "\000\000\010\306"
  125. /* 0x69 */ "\000\000\010\306" "\000\000\010\306" "\000\000\010\306"
  126. /* 0x6c */ "\000\000\010\306" "\000\000\010\306" "\000\000\010\306"
  127. /* 0x6f */ "\000\000\010\306" "\000\000\010\306" "\000\000\010\306"
  128. /* 0x72 */ "\000\000\010\306" "\000\000\010\306" "\000\000\010\306"
  129. /* 0x75 */ "\000\000\010\306" "\000\000\010\306" "\000\000\010\306"
  130. /* 0x78 */ "\000\000\010\306" "\000\000\010\306" "\000\000\010\306"
  131. /* 0x7b */ "\000\000\004\300" "\000\000\004\300" "\000\000\004\300"
  132. /* 0x7e */ "\000\000\004\300" "\000\000\002\000" "\000\000\000\000"
  133. /* 0x81 */ "\000\000\000\000" "\000\000\000\000" "\000\000\000\000"
  134. /* 0x84 */ "\000\000\000\000" "\000\000\000\000" "\000\000\000\000"
  135. /* 0x87 */ "\000\000\000\000" "\000\000\000\000" "\000\000\000\000"
  136. /* 0x8a */ "\000\000\000\000" "\000\000\000\000" "\000\000\000\000"
  137. /* 0x8d */ "\000\000\000\000" "\000\000\000\000" "\000\000\000\000"
  138. /* 0x90 */ "\000\000\000\000" "\000\000\000\000" "\000\000\000\000"
  139. /* 0x93 */ "\000\000\000\000" "\000\000\000\000" "\000\000\000\000"
  140. /* 0x96 */ "\000\000\000\000" "\000\000\000\000" "\000\000\000\000"
  141. /* 0x99 */ "\000\000\000\000" "\000\000\000\000" "\000\000\000\000"
  142. /* 0x9c */ "\000\000\000\000" "\000\000\000\000" "\000\000\000\000"
  143. /* 0x9f */ "\000\000\000\000" "\000\000\000\000" "\000\000\000\000"
  144. /* 0xa2 */ "\000\000\000\000" "\000\000\000\000" "\000\000\000\000"
  145. /* 0xa5 */ "\000\000\000\000" "\000\000\000\000" "\000\000\000\000"
  146. /* 0xa8 */ "\000\000\000\000" "\000\000\000\000" "\000\000\000\000"
  147. /* 0xab */ "\000\000\000\000" "\000\000\000\000" "\000\000\000\000"
  148. /* 0xae */ "\000\000\000\000" "\000\000\000\000" "\000\000\000\000"
  149. /* 0xb1 */ "\000\000\000\000" "\000\000\000\000" "\000\000\000\000"
  150. /* 0xb4 */ "\000\000\000\000" "\000\000\000\000" "\000\000\000\000"
  151. /* 0xb7 */ "\000\000\000\000" "\000\000\000\000" "\000\000\000\000"
  152. /* 0xba */ "\000\000\000\000" "\000\000\000\000" "\000\000\000\000"
  153. /* 0xbd */ "\000\000\000\000" "\000\000\000\000" "\000\000\000\000"
  154. /* 0xc0 */ "\000\000\000\000" "\000\000\000\000" "\000\000\000\000"
  155. /* 0xc3 */ "\000\000\000\000" "\000\000\000\000" "\000\000\000\000"
  156. /* 0xc6 */ "\000\000\000\000" "\000\000\000\000" "\000\000\000\000"
  157. /* 0xc9 */ "\000\000\000\000" "\000\000\000\000" "\000\000\000\000"
  158. /* 0xcc */ "\000\000\000\000" "\000\000\000\000" "\000\000\000\000"
  159. /* 0xcf */ "\000\000\000\000" "\000\000\000\000" "\000\000\000\000"
  160. /* 0xd2 */ "\000\000\000\000" "\000\000\000\000" "\000\000\000\000"
  161. /* 0xd5 */ "\000\000\000\000" "\000\000\000\000" "\000\000\000\000"
  162. /* 0xd8 */ "\000\000\000\000" "\000\000\000\000" "\000\000\000\000"
  163. /* 0xdb */ "\000\000\000\000" "\000\000\000\000" "\000\000\000\000"
  164. /* 0xde */ "\000\000\000\000" "\000\000\000\000" "\000\000\000\000"
  165. /* 0xe1 */ "\000\000\000\000" "\000\000\000\000" "\000\000\000\000"
  166. /* 0xe4 */ "\000\000\000\000" "\000\000\000\000" "\000\000\000\000"
  167. /* 0xe7 */ "\000\000\000\000" "\000\000\000\000" "\000\000\000\000"
  168. /* 0xea */ "\000\000\000\000" "\000\000\000\000" "\000\000\000\000"
  169. /* 0xed */ "\000\000\000\000" "\000\000\000\000" "\000\000\000\000"
  170. /* 0xf0 */ "\000\000\000\000" "\000\000\000\000" "\000\000\000\000"
  171. /* 0xf3 */ "\000\000\000\000" "\000\000\000\000" "\000\000\000\000"
  172. /* 0xf6 */ "\000\000\000\000" "\000\000\000\000" "\000\000\000\000"
  173. /* 0xf9 */ "\000\000\000\000" "\000\000\000\000" "\000\000\000\000"
  174. /* 0xfc */ "\000\000\000\000" "\000\000\000\000" "\000\000\000\000"
  175. /* 0xff */ "\000\000\000\000"
  176. ;
  177. const u_int32_t _nl_C_LC_CTYPE_toupper[384] =
  178. {
  179. /* 0x80 */ 0x80, 0x81, 0x82, 0x83, 0x84, 0x85, 0x86, 0x87,
  180. /* 0x88 */ 0x88, 0x89, 0x8a, 0x8b, 0x8c, 0x8d, 0x8e, 0x8f,
  181. /* 0x90 */ 0x90, 0x91, 0x92, 0x93, 0x94, 0x95, 0x96, 0x97,
  182. /* 0x98 */ 0x98, 0x99, 0x9a, 0x9b, 0x9c, 0x9d, 0x9e, 0x9f,
  183. /* 0xa0 */ 0xa0, 0xa1, 0xa2, 0xa3, 0xa4, 0xa5, 0xa6, 0xa7,
  184. /* 0xa8 */ 0xa8, 0xa9, 0xaa, 0xab, 0xac, 0xad, 0xae, 0xaf,
  185. /* 0xb0 */ 0xb0, 0xb1, 0xb2, 0xb3, 0xb4, 0xb5, 0xb6, 0xb7,
  186. /* 0xb8 */ 0xb8, 0xb9, 0xba, 0xbb, 0xbc, 0xbd, 0xbe, 0xbf,
  187. /* 0xc0 */ 0xc0, 0xc1, 0xc2, 0xc3, 0xc4, 0xc5, 0xc6, 0xc7,
  188. /* 0xc8 */ 0xc8, 0xc9, 0xca, 0xcb, 0xcc, 0xcd, 0xce, 0xcf,
  189. /* 0xd0 */ 0xd0, 0xd1, 0xd2, 0xd3, 0xd4, 0xd5, 0xd6, 0xd7,
  190. /* 0xd8 */ 0xd8, 0xd9, 0xda, 0xdb, 0xdc, 0xdd, 0xde, 0xdf,
  191. /* 0xe0 */ 0xe0, 0xe1, 0xe2, 0xe3, 0xe4, 0xe5, 0xe6, 0xe7,
  192. /* 0xe8 */ 0xe8, 0xe9, 0xea, 0xeb, 0xec, 0xed, 0xee, 0xef,
  193. /* 0xf0 */ 0xf0, 0xf1, 0xf2, 0xf3, 0xf4, 0xf5, 0xf6, 0xf7,
  194. /* 0xf8 */ 0xf8, 0xf9, 0xfa, 0xfb, 0xfc, 0xfd, 0xfe, 0xffffffff,
  195. /* 0x00 */ 0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07,
  196. /* 0x08 */ 0x08, 0x09, 0x0a, 0x0b, 0x0c, 0x0d, 0x0e, 0x0f,
  197. /* 0x10 */ 0x10, 0x11, 0x12, 0x13, 0x14, 0x15, 0x16, 0x17,
  198. /* 0x18 */ 0x18, 0x19, 0x1a, 0x1b, 0x1c, 0x1d, 0x1e, 0x1f,
  199. /* 0x20 */ 0x20, 0x21, 0x22, 0x23, 0x24, 0x25, 0x26, 0x27,
  200. /* 0x28 */ 0x28, 0x29, 0x2a, 0x2b, 0x2c, 0x2d, 0x2e, 0x2f,
  201. /* 0x30 */ 0x30, 0x31, 0x32, 0x33, 0x34, 0x35, 0x36, 0x37,
  202. /* 0x38 */ 0x38, 0x39, 0x3a, 0x3b, 0x3c, 0x3d, 0x3e, 0x3f,
  203. /* 0x40 */ 0x40, 0x41, 0x42, 0x43, 0x44, 0x45, 0x46, 0x47,
  204. /* 0x48 */ 0x48, 0x49, 0x4a, 0x4b, 0x4c, 0x4d, 0x4e, 0x4f,
  205. /* 0x50 */ 0x50, 0x51, 0x52, 0x53, 0x54, 0x55, 0x56, 0x57,
  206. /* 0x58 */ 0x58, 0x59, 0x5a, 0x5b, 0x5c, 0x5d, 0x5e, 0x5f,
  207. /* 0x60 */ 0x60, 0x41, 0x42, 0x43, 0x44, 0x45, 0x46, 0x47,
  208. /* 0x68 */ 0x48, 0x49, 0x4a, 0x4b, 0x4c, 0x4d, 0x4e, 0x4f,
  209. /* 0x70 */ 0x50, 0x51, 0x52, 0x53, 0x54, 0x55, 0x56, 0x57,
  210. /* 0x78 */ 0x58, 0x59, 0x5a, 0x7b, 0x7c, 0x7d, 0x7e, 0x7f,
  211. /* 0x80 */ 0x80, 0x81, 0x82, 0x83, 0x84, 0x85, 0x86, 0x87,
  212. /* 0x88 */ 0x88, 0x89, 0x8a, 0x8b, 0x8c, 0x8d, 0x8e, 0x8f,
  213. /* 0x90 */ 0x90, 0x91, 0x92, 0x93, 0x94, 0x95, 0x96, 0x97,
  214. /* 0x98 */ 0x98, 0x99, 0x9a, 0x9b, 0x9c, 0x9d, 0x9e, 0x9f,
  215. /* 0xa0 */ 0xa0, 0xa1, 0xa2, 0xa3, 0xa4, 0xa5, 0xa6, 0xa7,
  216. /* 0xa8 */ 0xa8, 0xa9, 0xaa, 0xab, 0xac, 0xad, 0xae, 0xaf,
  217. /* 0xb0 */ 0xb0, 0xb1, 0xb2, 0xb3, 0xb4, 0xb5, 0xb6, 0xb7,
  218. /* 0xb8 */ 0xb8, 0xb9, 0xba, 0xbb, 0xbc, 0xbd, 0xbe, 0xbf,
  219. /* 0xc0 */ 0xc0, 0xc1, 0xc2, 0xc3, 0xc4, 0xc5, 0xc6, 0xc7,
  220. /* 0xc8 */ 0xc8, 0xc9, 0xca, 0xcb, 0xcc, 0xcd, 0xce, 0xcf,
  221. /* 0xd0 */ 0xd0, 0xd1, 0xd2, 0xd3, 0xd4, 0xd5, 0xd6, 0xd7,
  222. /* 0xd8 */ 0xd8, 0xd9, 0xda, 0xdb, 0xdc, 0xdd, 0xde, 0xdf,
  223. /* 0xe0 */ 0xe0, 0xe1, 0xe2, 0xe3, 0xe4, 0xe5, 0xe6, 0xe7,
  224. /* 0xe8 */ 0xe8, 0xe9, 0xea, 0xeb, 0xec, 0xed, 0xee, 0xef,
  225. /* 0xf0 */ 0xf0, 0xf1, 0xf2, 0xf3, 0xf4, 0xf5, 0xf6, 0xf7,
  226. /* 0xf8 */ 0xf8, 0xf9, 0xfa, 0xfb, 0xfc, 0xfd, 0xfe, 0xff
  227. };
  228. const u_int32_t _nl_C_LC_CTYPE_tolower[384] =
  229. {
  230. /* 0x80 */ 0x80, 0x81, 0x82, 0x83, 0x84, 0x85, 0x86, 0x87,
  231. /* 0x88 */ 0x88, 0x89, 0x8a, 0x8b, 0x8c, 0x8d, 0x8e, 0x8f,
  232. /* 0x90 */ 0x90, 0x91, 0x92, 0x93, 0x94, 0x95, 0x96, 0x97,
  233. /* 0x98 */ 0x98, 0x99, 0x9a, 0x9b, 0x9c, 0x9d, 0x9e, 0x9f,
  234. /* 0xa0 */ 0xa0, 0xa1, 0xa2, 0xa3, 0xa4, 0xa5, 0xa6, 0xa7,
  235. /* 0xa8 */ 0xa8, 0xa9, 0xaa, 0xab, 0xac, 0xad, 0xae, 0xaf,
  236. /* 0xb0 */ 0xb0, 0xb1, 0xb2, 0xb3, 0xb4, 0xb5, 0xb6, 0xb7,
  237. /* 0xb8 */ 0xb8, 0xb9, 0xba, 0xbb, 0xbc, 0xbd, 0xbe, 0xbf,
  238. /* 0xc0 */ 0xc0, 0xc1, 0xc2, 0xc3, 0xc4, 0xc5, 0xc6, 0xc7,
  239. /* 0xc8 */ 0xc8, 0xc9, 0xca, 0xcb, 0xcc, 0xcd, 0xce, 0xcf,
  240. /* 0xd0 */ 0xd0, 0xd1, 0xd2, 0xd3, 0xd4, 0xd5, 0xd6, 0xd7,
  241. /* 0xd8 */ 0xd8, 0xd9, 0xda, 0xdb, 0xdc, 0xdd, 0xde, 0xdf,
  242. /* 0xe0 */ 0xe0, 0xe1, 0xe2, 0xe3, 0xe4, 0xe5, 0xe6, 0xe7,
  243. /* 0xe8 */ 0xe8, 0xe9, 0xea, 0xeb, 0xec, 0xed, 0xee, 0xef,
  244. /* 0xf0 */ 0xf0, 0xf1, 0xf2, 0xf3, 0xf4, 0xf5, 0xf6, 0xf7,
  245. /* 0xf8 */ 0xf8, 0xf9, 0xfa, 0xfb, 0xfc, 0xfd, 0xfe, 0xffffffff,
  246. /* 0x00 */ 0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07,
  247. /* 0x08 */ 0x08, 0x09, 0x0a, 0x0b, 0x0c, 0x0d, 0x0e, 0x0f,
  248. /* 0x10 */ 0x10, 0x11, 0x12, 0x13, 0x14, 0x15, 0x16, 0x17,
  249. /* 0x18 */ 0x18, 0x19, 0x1a, 0x1b, 0x1c, 0x1d, 0x1e, 0x1f,
  250. /* 0x20 */ 0x20, 0x21, 0x22, 0x23, 0x24, 0x25, 0x26, 0x27,
  251. /* 0x28 */ 0x28, 0x29, 0x2a, 0x2b, 0x2c, 0x2d, 0x2e, 0x2f,
  252. /* 0x30 */ 0x30, 0x31, 0x32, 0x33, 0x34, 0x35, 0x36, 0x37,
  253. /* 0x38 */ 0x38, 0x39, 0x3a, 0x3b, 0x3c, 0x3d, 0x3e, 0x3f,
  254. /* 0x40 */ 0x40, 0x61, 0x62, 0x63, 0x64, 0x65, 0x66, 0x67,
  255. /* 0x48 */ 0x68, 0x69, 0x6a, 0x6b, 0x6c, 0x6d, 0x6e, 0x6f,
  256. /* 0x50 */ 0x70, 0x71, 0x72, 0x73, 0x74, 0x75, 0x76, 0x77,
  257. /* 0x58 */ 0x78, 0x79, 0x7a, 0x5b, 0x5c, 0x5d, 0x5e, 0x5f,
  258. /* 0x60 */ 0x60, 0x61, 0x62, 0x63, 0x64, 0x65, 0x66, 0x67,
  259. /* 0x68 */ 0x68, 0x69, 0x6a, 0x6b, 0x6c, 0x6d, 0x6e, 0x6f,
  260. /* 0x70 */ 0x70, 0x71, 0x72, 0x73, 0x74, 0x75, 0x76, 0x77,
  261. /* 0x78 */ 0x78, 0x79, 0x7a, 0x7b, 0x7c, 0x7d, 0x7e, 0x7f,
  262. /* 0x80 */ 0x80, 0x81, 0x82, 0x83, 0x84, 0x85, 0x86, 0x87,
  263. /* 0x88 */ 0x88, 0x89, 0x8a, 0x8b, 0x8c, 0x8d, 0x8e, 0x8f,
  264. /* 0x90 */ 0x90, 0x91, 0x92, 0x93, 0x94, 0x95, 0x96, 0x97,
  265. /* 0x98 */ 0x98, 0x99, 0x9a, 0x9b, 0x9c, 0x9d, 0x9e, 0x9f,
  266. /* 0xa0 */ 0xa0, 0xa1, 0xa2, 0xa3, 0xa4, 0xa5, 0xa6, 0xa7,
  267. /* 0xa8 */ 0xa8, 0xa9, 0xaa, 0xab, 0xac, 0xad, 0xae, 0xaf,
  268. /* 0xb0 */ 0xb0, 0xb1, 0xb2, 0xb3, 0xb4, 0xb5, 0xb6, 0xb7,
  269. /* 0xb8 */ 0xb8, 0xb9, 0xba, 0xbb, 0xbc, 0xbd, 0xbe, 0xbf,
  270. /* 0xc0 */ 0xc0, 0xc1, 0xc2, 0xc3, 0xc4, 0xc5, 0xc6, 0xc7,
  271. /* 0xc8 */ 0xc8, 0xc9, 0xca, 0xcb, 0xcc, 0xcd, 0xce, 0xcf,
  272. /* 0xd0 */ 0xd0, 0xd1, 0xd2, 0xd3, 0xd4, 0xd5, 0xd6, 0xd7,
  273. /* 0xd8 */ 0xd8, 0xd9, 0xda, 0xdb, 0xdc, 0xdd, 0xde, 0xdf,
  274. /* 0xe0 */ 0xe0, 0xe1, 0xe2, 0xe3, 0xe4, 0xe5, 0xe6, 0xe7,
  275. /* 0xe8 */ 0xe8, 0xe9, 0xea, 0xeb, 0xec, 0xed, 0xee, 0xef,
  276. /* 0xf0 */ 0xf0, 0xf1, 0xf2, 0xf3, 0xf4, 0xf5, 0xf6, 0xf7,
  277. /* 0xf8 */ 0xf8, 0xf9, 0xfa, 0xfb, 0xfc, 0xfd, 0xfe, 0xff
  278. };
  279. const u_int32_t _nl_C_LC_CTYPE_names[256] =
  280. {
  281. /* 0x00 */ 0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07,
  282. /* 0x08 */ 0x08, 0x09, 0x0a, 0x0b, 0x0c, 0x0d, 0x0e, 0x0f,
  283. /* 0x10 */ 0x10, 0x11, 0x12, 0x13, 0x14, 0x15, 0x16, 0x17,
  284. /* 0x18 */ 0x18, 0x19, 0x1a, 0x1b, 0x1c, 0x1d, 0x1e, 0x1f,
  285. /* 0x20 */ 0x20, 0x21, 0x22, 0x23, 0x24, 0x25, 0x26, 0x27,
  286. /* 0x28 */ 0x28, 0x29, 0x2a, 0x2b, 0x2c, 0x2d, 0x2e, 0x2f,
  287. /* 0x30 */ 0x30, 0x31, 0x32, 0x33, 0x34, 0x35, 0x36, 0x37,
  288. /* 0x38 */ 0x38, 0x39, 0x3a, 0x3b, 0x3c, 0x3d, 0x3e, 0x3f,
  289. /* 0x40 */ 0x40, 0x41, 0x42, 0x43, 0x44, 0x45, 0x46, 0x47,
  290. /* 0x48 */ 0x48, 0x49, 0x4a, 0x4b, 0x4c, 0x4d, 0x4e, 0x4f,
  291. /* 0x50 */ 0x50, 0x51, 0x52, 0x53, 0x54, 0x55, 0x56, 0x57,
  292. /* 0x58 */ 0x58, 0x59, 0x5a, 0x5b, 0x5c, 0x5d, 0x5e, 0x5f,
  293. /* 0x60 */ 0x60, 0x61, 0x62, 0x63, 0x64, 0x65, 0x66, 0x67,
  294. /* 0x68 */ 0x68, 0x69, 0x6a, 0x6b, 0x6c, 0x6d, 0x6e, 0x6f,
  295. /* 0x70 */ 0x70, 0x71, 0x72, 0x73, 0x74, 0x75, 0x76, 0x77,
  296. /* 0x78 */ 0x78, 0x79, 0x7a, 0x7b, 0x7c, 0x7d, 0x7e, 0x7f,
  297. /* 0x80 */ 0x80, 0x81, 0x82, 0x83, 0x84, 0x85, 0x86, 0x87,
  298. /* 0x88 */ 0x88, 0x89, 0x8a, 0x8b, 0x8c, 0x8d, 0x8e, 0x8f,
  299. /* 0x90 */ 0x90, 0x91, 0x92, 0x93, 0x94, 0x95, 0x96, 0x97,
  300. /* 0x98 */ 0x98, 0x99, 0x9a, 0x9b, 0x9c, 0x9d, 0x9e, 0x9f,
  301. /* 0xa0 */ 0xa0, 0xa1, 0xa2, 0xa3, 0xa4, 0xa5, 0xa6, 0xa7,
  302. /* 0xa8 */ 0xa8, 0xa9, 0xaa, 0xab, 0xac, 0xad, 0xae, 0xaf,
  303. /* 0xb0 */ 0xb0, 0xb1, 0xb2, 0xb3, 0xb4, 0xb5, 0xb6, 0xb7,
  304. /* 0xb8 */ 0xb8, 0xb9, 0xba, 0xbb, 0xbc, 0xbd, 0xbe, 0xbf,
  305. /* 0xc0 */ 0xc0, 0xc1, 0xc2, 0xc3, 0xc4, 0xc5, 0xc6, 0xc7,
  306. /* 0xc8 */ 0xc8, 0xc9, 0xca, 0xcb, 0xcc, 0xcd, 0xce, 0xcf,
  307. /* 0xd0 */ 0xd0, 0xd1, 0xd2, 0xd3, 0xd4, 0xd5, 0xd6, 0xd7,
  308. /* 0xd8 */ 0xd8, 0xd9, 0xda, 0xdb, 0xdc, 0xdd, 0xde, 0xdf,
  309. /* 0xe0 */ 0xe0, 0xe1, 0xe2, 0xe3, 0xe4, 0xe5, 0xe6, 0xe7,
  310. /* 0xe8 */ 0xe8, 0xe9, 0xea, 0xeb, 0xec, 0xed, 0xee, 0xef,
  311. /* 0xf0 */ 0xf0, 0xf1, 0xf2, 0xf3, 0xf4, 0xf5, 0xf6, 0xf7,
  312. /* 0xf8 */ 0xf8, 0xf9, 0xfa, 0xfb, 0xfc, 0xfd, 0xfe, 0xff
  313. };
  314. const char _nl_C_LC_CTYPE_width[256] =
  315. /* 0x00 */ "\001\001\001\001\001\001\001\001\001\001\001\001\001\001\001\001"
  316. /* 0x10 */ "\001\001\001\001\001\001\001\001\001\001\001\001\001\001\001\001"
  317. /* 0x20 */ "\001\001\001\001\001\001\001\001\001\001\001\001\001\001\001\001"
  318. /* 0x30 */ "\001\001\001\001\001\001\001\001\001\001\001\001\001\001\001\001"
  319. /* 0x40 */ "\001\001\001\001\001\001\001\001\001\001\001\001\001\001\001\001"
  320. /* 0x50 */ "\001\001\001\001\001\001\001\001\001\001\001\001\001\001\001\001"
  321. /* 0x60 */ "\001\001\001\001\001\001\001\001\001\001\001\001\001\001\001\001"
  322. /* 0x70 */ "\001\001\001\001\001\001\001\001\001\001\001\001\001\001\001\001"
  323. /* 0x80 */ "\001\001\001\001\001\001\001\001\001\001\001\001\001\001\001\001"
  324. /* 0x90 */ "\001\001\001\001\001\001\001\001\001\001\001\001\001\001\001\001"
  325. /* 0xa0 */ "\001\001\001\001\001\001\001\001\001\001\001\001\001\001\001\001"
  326. /* 0xb0 */ "\001\001\001\001\001\001\001\001\001\001\001\001\001\001\001\001"
  327. /* 0xc0 */ "\001\001\001\001\001\001\001\001\001\001\001\001\001\001\001\001"
  328. /* 0xd0 */ "\001\001\001\001\001\001\001\001\001\001\001\001\001\001\001\001"
  329. /* 0xe0 */ "\001\001\001\001\001\001\001\001\001\001\001\001\001\001\001\001"
  330. /* 0xf0 */ "\001\001\001\001\001\001\001\001\001\001\001\001\001\001\001\001"
  331. ;
  332. const struct locale_data _nl_C_LC_CTYPE =
  333. {
  334. _nl_C_name,
  335. NULL, 0, 0, /* no file mapped */
  336. UNDELETABLE,
  337. 20,
  338. {
  339. { string: _nl_C_LC_CTYPE_class },
  340. #if BYTE_ORDER == LITTLE_ENDIAN
  341. { string: NULL }, { string: NULL },
  342. #endif
  343. { string: (const char *) _nl_C_LC_CTYPE_toupper },
  344. { string: (const char *) _nl_C_LC_CTYPE_tolower },
  345. #if BYTE_ORDER == BIG_ENDIAN
  346. { string: NULL }, { string: NULL },
  347. #endif
  348. { string: _nl_C_LC_CTYPE_class32 },
  349. #if BYTE_ORDER == LITTLE_ENDIAN
  350. { string: NULL },
  351. #endif
  352. { string: (const char *) _nl_C_LC_CTYPE_names },
  353. #if BYTE_ORDER == BIG_ENDIAN
  354. { string: NULL },
  355. #endif
  356. { word: 256 }, { word: 1 },
  357. { string: "upper\0" "lower\0" "alpha\0" "digit\0" "xdigit\0" "space\0"
  358. "print\0" "graph\0" "blank\0" "cntrl\0" "punct\0" "alnum\0" },
  359. { string: "tolower\0" "toupper\0" },
  360. { string: _nl_C_LC_CTYPE_width },
  361. { word: 1 },
  362. { string: "ANSI_X3.4-1968" },
  363. #if BYTE_ORDER == LITTLE_ENDIAN
  364. { string: NULL },
  365. #endif
  366. { string: (const char *) (_nl_C_LC_CTYPE_toupper + 128) },
  367. { string: NULL },
  368. { string: (const char *) (_nl_C_LC_CTYPE_tolower + 128) }
  369. #if BYTE_ORDER == BIG_ENDIAN
  370. { string: NULL },
  371. #endif
  372. }
  373. };