langinfo.h 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637
  1. /* Access to locale-dependent parameters.
  2. Copyright (C) 1995-2002,2003,2004,2005,2009 Free Software Foundation, Inc.
  3. This file is part of the GNU C Library.
  4. The GNU C Library is free software; you can redistribute it and/or
  5. modify it under the terms of the GNU Lesser General Public
  6. License as published by the Free Software Foundation; either
  7. version 2.1 of the 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. Lesser General Public License for more details.
  12. You should have received a copy of the GNU Lesser General Public
  13. License along with the GNU C Library; if not, see
  14. <http://www.gnu.org/licenses/>. */
  15. #ifndef _LANGINFO_H
  16. #define _LANGINFO_H 1
  17. /* Get the type definition. */
  18. #include <nl_types.h>
  19. #include <bits/uClibc_locale.h> /* Define the __LC_* category names. */
  20. __BEGIN_DECLS
  21. /* Construct an `nl_item' value for `nl_langinfo' from a locale category
  22. (LC_*) and an item index within the category. Some code may depend on
  23. the item values within a category increasing monotonically with the
  24. indices. */
  25. #if 0
  26. #define _NL_ITEM(category, index) (((category) << 16) | (index))
  27. /* Extract the category and item index from a constructed `nl_item' value. */
  28. #define _NL_ITEM_CATEGORY(item) ((int) (item) >> 16)
  29. #define _NL_ITEM_INDEX(item) ((int) (item) & 0xffff)
  30. #else
  31. #define _NL_ITEM(category, index) \
  32. (((category) << __NL_ITEM_CATEGORY_SHIFT) | (index))
  33. /* Extract the category and item index from a constructed `nl_item' value. */
  34. #define _NL_ITEM_CATEGORY(item) ((int) (item) >> __NL_ITEM_CATEGORY_SHIFT)
  35. #define _NL_ITEM_INDEX(item) ((int) (item) & __NL_ITEM_INDEX_MASK)
  36. #endif
  37. /* Enumeration of locale items that can be queried with `nl_langinfo'. */
  38. enum
  39. {
  40. /* LC_TIME category: date and time formatting. */
  41. /* Abbreviated days of the week. */
  42. ABDAY_1 = _NL_ITEM (__LC_TIME, 0), /* Sun */
  43. #define ABDAY_1 ABDAY_1
  44. ABDAY_2,
  45. #define ABDAY_2 ABDAY_2
  46. ABDAY_3,
  47. #define ABDAY_3 ABDAY_3
  48. ABDAY_4,
  49. #define ABDAY_4 ABDAY_4
  50. ABDAY_5,
  51. #define ABDAY_5 ABDAY_5
  52. ABDAY_6,
  53. #define ABDAY_6 ABDAY_6
  54. ABDAY_7,
  55. #define ABDAY_7 ABDAY_7
  56. /* Long-named days of the week. */
  57. DAY_1, /* Sunday */
  58. #define DAY_1 DAY_1
  59. DAY_2, /* Monday */
  60. #define DAY_2 DAY_2
  61. DAY_3, /* Tuesday */
  62. #define DAY_3 DAY_3
  63. DAY_4, /* Wednesday */
  64. #define DAY_4 DAY_4
  65. DAY_5, /* Thursday */
  66. #define DAY_5 DAY_5
  67. DAY_6, /* Friday */
  68. #define DAY_6 DAY_6
  69. DAY_7, /* Saturday */
  70. #define DAY_7 DAY_7
  71. /* Abbreviated month names. */
  72. ABMON_1, /* Jan */
  73. #define ABMON_1 ABMON_1
  74. ABMON_2,
  75. #define ABMON_2 ABMON_2
  76. ABMON_3,
  77. #define ABMON_3 ABMON_3
  78. ABMON_4,
  79. #define ABMON_4 ABMON_4
  80. ABMON_5,
  81. #define ABMON_5 ABMON_5
  82. ABMON_6,
  83. #define ABMON_6 ABMON_6
  84. ABMON_7,
  85. #define ABMON_7 ABMON_7
  86. ABMON_8,
  87. #define ABMON_8 ABMON_8
  88. ABMON_9,
  89. #define ABMON_9 ABMON_9
  90. ABMON_10,
  91. #define ABMON_10 ABMON_10
  92. ABMON_11,
  93. #define ABMON_11 ABMON_11
  94. ABMON_12,
  95. #define ABMON_12 ABMON_12
  96. /* Long month names. */
  97. MON_1, /* January */
  98. #define MON_1 MON_1
  99. MON_2,
  100. #define MON_2 MON_2
  101. MON_3,
  102. #define MON_3 MON_3
  103. MON_4,
  104. #define MON_4 MON_4
  105. MON_5,
  106. #define MON_5 MON_5
  107. MON_6,
  108. #define MON_6 MON_6
  109. MON_7,
  110. #define MON_7 MON_7
  111. MON_8,
  112. #define MON_8 MON_8
  113. MON_9,
  114. #define MON_9 MON_9
  115. MON_10,
  116. #define MON_10 MON_10
  117. MON_11,
  118. #define MON_11 MON_11
  119. MON_12,
  120. #define MON_12 MON_12
  121. AM_STR, /* Ante meridian string. */
  122. #define AM_STR AM_STR
  123. PM_STR, /* Post meridian string. */
  124. #define PM_STR PM_STR
  125. D_T_FMT, /* Date and time format for strftime. */
  126. #define D_T_FMT D_T_FMT
  127. D_FMT, /* Date format for strftime. */
  128. #define D_FMT D_FMT
  129. T_FMT, /* Time format for strftime. */
  130. #define T_FMT T_FMT
  131. T_FMT_AMPM, /* 12-hour time format for strftime. */
  132. #define T_FMT_AMPM T_FMT_AMPM
  133. ERA, /* Alternate era. */
  134. #define ERA ERA
  135. __ERA_YEAR, /* Year in alternate era format. */
  136. #ifdef __USE_GNU
  137. # define ERA_YEAR __ERA_YEAR
  138. #endif
  139. ERA_D_FMT, /* Date in alternate era format. */
  140. #define ERA_D_FMT ERA_D_FMT
  141. ALT_DIGITS, /* Alternate symbols for digits. */
  142. #define ALT_DIGITS ALT_DIGITS
  143. ERA_D_T_FMT, /* Date and time in alternate era format. */
  144. #define ERA_D_T_FMT ERA_D_T_FMT
  145. ERA_T_FMT, /* Time in alternate era format. */
  146. #define ERA_T_FMT ERA_T_FMT
  147. #if 0
  148. _NL_TIME_ERA_NUM_ENTRIES, /* Number entries in the era arrays. */
  149. _NL_TIME_ERA_ENTRIES, /* Structure with era entries in usable form.*/
  150. _NL_WABDAY_1, /* Sun */
  151. _NL_WABDAY_2,
  152. _NL_WABDAY_3,
  153. _NL_WABDAY_4,
  154. _NL_WABDAY_5,
  155. _NL_WABDAY_6,
  156. _NL_WABDAY_7,
  157. /* Long-named days of the week. */
  158. _NL_WDAY_1, /* Sunday */
  159. _NL_WDAY_2, /* Monday */
  160. _NL_WDAY_3, /* Tuesday */
  161. _NL_WDAY_4, /* Wednesday */
  162. _NL_WDAY_5, /* Thursday */
  163. _NL_WDAY_6, /* Friday */
  164. _NL_WDAY_7, /* Saturday */
  165. /* Abbreviated month names. */
  166. _NL_WABMON_1, /* Jan */
  167. _NL_WABMON_2,
  168. _NL_WABMON_3,
  169. _NL_WABMON_4,
  170. _NL_WABMON_5,
  171. _NL_WABMON_6,
  172. _NL_WABMON_7,
  173. _NL_WABMON_8,
  174. _NL_WABMON_9,
  175. _NL_WABMON_10,
  176. _NL_WABMON_11,
  177. _NL_WABMON_12,
  178. /* Long month names. */
  179. _NL_WMON_1, /* January */
  180. _NL_WMON_2,
  181. _NL_WMON_3,
  182. _NL_WMON_4,
  183. _NL_WMON_5,
  184. _NL_WMON_6,
  185. _NL_WMON_7,
  186. _NL_WMON_8,
  187. _NL_WMON_9,
  188. _NL_WMON_10,
  189. _NL_WMON_11,
  190. _NL_WMON_12,
  191. _NL_WAM_STR, /* Ante meridian string. */
  192. _NL_WPM_STR, /* Post meridian string. */
  193. _NL_WD_T_FMT, /* Date and time format for strftime. */
  194. _NL_WD_FMT, /* Date format for strftime. */
  195. _NL_WT_FMT, /* Time format for strftime. */
  196. _NL_WT_FMT_AMPM, /* 12-hour time format for strftime. */
  197. _NL_WERA_YEAR, /* Year in alternate era format. */
  198. _NL_WERA_D_FMT, /* Date in alternate era format. */
  199. _NL_WALT_DIGITS, /* Alternate symbols for digits. */
  200. _NL_WERA_D_T_FMT, /* Date and time in alternate era format. */
  201. _NL_WERA_T_FMT, /* Time in alternate era format. */
  202. _NL_TIME_WEEK_NDAYS,
  203. _NL_TIME_WEEK_1STDAY,
  204. _NL_TIME_WEEK_1STWEEK,
  205. _NL_TIME_FIRST_WEEKDAY,
  206. _NL_TIME_FIRST_WORKDAY,
  207. _NL_TIME_CAL_DIRECTION,
  208. _NL_TIME_TIMEZONE,
  209. _DATE_FMT, /* strftime format for date. */
  210. #define _DATE_FMT _DATE_FMT
  211. _NL_W_DATE_FMT,
  212. _NL_TIME_CODESET,
  213. #endif /* 0 */
  214. _NL_NUM_LC_TIME, /* Number of indices in LC_TIME category. */
  215. /* LC_COLLATE category: text sorting.
  216. This information is accessed by the strcoll and strxfrm functions.
  217. These `nl_langinfo' names are used only internally. */
  218. #if 0
  219. _NL_COLLATE_NRULES = _NL_ITEM (__LC_COLLATE, 0),
  220. _NL_COLLATE_RULESETS,
  221. _NL_COLLATE_TABLEMB,
  222. _NL_COLLATE_WEIGHTMB,
  223. _NL_COLLATE_EXTRAMB,
  224. _NL_COLLATE_INDIRECTMB,
  225. _NL_COLLATE_GAP1,
  226. _NL_COLLATE_GAP2,
  227. _NL_COLLATE_GAP3,
  228. _NL_COLLATE_TABLEWC,
  229. _NL_COLLATE_WEIGHTWC,
  230. _NL_COLLATE_EXTRAWC,
  231. _NL_COLLATE_INDIRECTWC,
  232. _NL_COLLATE_SYMB_HASH_SIZEMB,
  233. _NL_COLLATE_SYMB_TABLEMB,
  234. _NL_COLLATE_SYMB_EXTRAMB,
  235. _NL_COLLATE_COLLSEQMB,
  236. _NL_COLLATE_COLLSEQWC,
  237. _NL_COLLATE_CODESET,
  238. _NL_NUM_LC_COLLATE,
  239. #endif
  240. /* LC_CTYPE category: character classification.
  241. This information is accessed by the functions in <ctype.h>.
  242. These `nl_langinfo' names are used only internally. */
  243. #if 0
  244. _NL_CTYPE_CLASS = _NL_ITEM (__LC_CTYPE, 0),
  245. _NL_CTYPE_TOUPPER,
  246. _NL_CTYPE_GAP1,
  247. _NL_CTYPE_TOLOWER,
  248. _NL_CTYPE_GAP2,
  249. _NL_CTYPE_CLASS32,
  250. _NL_CTYPE_GAP3,
  251. _NL_CTYPE_GAP4,
  252. _NL_CTYPE_GAP5,
  253. _NL_CTYPE_GAP6,
  254. _NL_CTYPE_CLASS_NAMES,
  255. _NL_CTYPE_MAP_NAMES,
  256. _NL_CTYPE_WIDTH,
  257. _NL_CTYPE_MB_CUR_MAX,
  258. _NL_CTYPE_CODESET_NAME,
  259. CODESET = _NL_CTYPE_CODESET_NAME,
  260. #define CODESET CODESET
  261. _NL_CTYPE_TOUPPER32,
  262. _NL_CTYPE_TOLOWER32,
  263. _NL_CTYPE_CLASS_OFFSET,
  264. _NL_CTYPE_MAP_OFFSET,
  265. _NL_CTYPE_INDIGITS_MB_LEN,
  266. _NL_CTYPE_INDIGITS0_MB,
  267. _NL_CTYPE_INDIGITS1_MB,
  268. _NL_CTYPE_INDIGITS2_MB,
  269. _NL_CTYPE_INDIGITS3_MB,
  270. _NL_CTYPE_INDIGITS4_MB,
  271. _NL_CTYPE_INDIGITS5_MB,
  272. _NL_CTYPE_INDIGITS6_MB,
  273. _NL_CTYPE_INDIGITS7_MB,
  274. _NL_CTYPE_INDIGITS8_MB,
  275. _NL_CTYPE_INDIGITS9_MB,
  276. _NL_CTYPE_INDIGITS_WC_LEN,
  277. _NL_CTYPE_INDIGITS0_WC,
  278. _NL_CTYPE_INDIGITS1_WC,
  279. _NL_CTYPE_INDIGITS2_WC,
  280. _NL_CTYPE_INDIGITS3_WC,
  281. _NL_CTYPE_INDIGITS4_WC,
  282. _NL_CTYPE_INDIGITS5_WC,
  283. _NL_CTYPE_INDIGITS6_WC,
  284. _NL_CTYPE_INDIGITS7_WC,
  285. _NL_CTYPE_INDIGITS8_WC,
  286. _NL_CTYPE_INDIGITS9_WC,
  287. _NL_CTYPE_OUTDIGIT0_MB,
  288. #else
  289. _NL_CTYPE_OUTDIGIT0_MB = _NL_ITEM (__LC_CTYPE, 0),
  290. #endif
  291. _NL_CTYPE_OUTDIGIT1_MB,
  292. _NL_CTYPE_OUTDIGIT2_MB,
  293. _NL_CTYPE_OUTDIGIT3_MB,
  294. _NL_CTYPE_OUTDIGIT4_MB,
  295. _NL_CTYPE_OUTDIGIT5_MB,
  296. _NL_CTYPE_OUTDIGIT6_MB,
  297. _NL_CTYPE_OUTDIGIT7_MB,
  298. _NL_CTYPE_OUTDIGIT8_MB,
  299. _NL_CTYPE_OUTDIGIT9_MB,
  300. #if 0
  301. _NL_CTYPE_OUTDIGIT0_WC,
  302. _NL_CTYPE_OUTDIGIT1_WC,
  303. _NL_CTYPE_OUTDIGIT2_WC,
  304. _NL_CTYPE_OUTDIGIT3_WC,
  305. _NL_CTYPE_OUTDIGIT4_WC,
  306. _NL_CTYPE_OUTDIGIT5_WC,
  307. _NL_CTYPE_OUTDIGIT6_WC,
  308. _NL_CTYPE_OUTDIGIT7_WC,
  309. _NL_CTYPE_OUTDIGIT8_WC,
  310. _NL_CTYPE_OUTDIGIT9_WC,
  311. _NL_CTYPE_TRANSLIT_TAB_SIZE,
  312. _NL_CTYPE_TRANSLIT_FROM_IDX,
  313. _NL_CTYPE_TRANSLIT_FROM_TBL,
  314. _NL_CTYPE_TRANSLIT_TO_IDX,
  315. _NL_CTYPE_TRANSLIT_TO_TBL,
  316. _NL_CTYPE_TRANSLIT_DEFAULT_MISSING_LEN,
  317. _NL_CTYPE_TRANSLIT_DEFAULT_MISSING,
  318. _NL_CTYPE_TRANSLIT_IGNORE_LEN,
  319. _NL_CTYPE_TRANSLIT_IGNORE,
  320. _NL_CTYPE_MAP_TO_NONASCII,
  321. _NL_CTYPE_NONASCII_CASE,
  322. _NL_CTYPE_EXTRA_MAP_1,
  323. _NL_CTYPE_EXTRA_MAP_2,
  324. _NL_CTYPE_EXTRA_MAP_3,
  325. _NL_CTYPE_EXTRA_MAP_4,
  326. _NL_CTYPE_EXTRA_MAP_5,
  327. _NL_CTYPE_EXTRA_MAP_6,
  328. _NL_CTYPE_EXTRA_MAP_7,
  329. _NL_CTYPE_EXTRA_MAP_8,
  330. _NL_CTYPE_EXTRA_MAP_9,
  331. _NL_CTYPE_EXTRA_MAP_10,
  332. _NL_CTYPE_EXTRA_MAP_11,
  333. _NL_CTYPE_EXTRA_MAP_12,
  334. _NL_CTYPE_EXTRA_MAP_13,
  335. _NL_CTYPE_EXTRA_MAP_14,
  336. #else /* 0 */
  337. _NL_CTYPE_CODESET_NAME, /* uClibc note: MUST BE LAST ENTRY!!! */
  338. CODESET = _NL_CTYPE_CODESET_NAME,
  339. #define CODESET CODESET
  340. #endif /* 0 */
  341. _NL_NUM_LC_CTYPE,
  342. /* LC_MONETARY category: formatting of monetary quantities.
  343. These items each correspond to a member of `struct lconv',
  344. defined in <locale.h>. */
  345. __INT_CURR_SYMBOL = _NL_ITEM (__LC_MONETARY, 0),
  346. #ifdef __USE_GNU
  347. # define INT_CURR_SYMBOL __INT_CURR_SYMBOL
  348. #endif
  349. __CURRENCY_SYMBOL,
  350. #ifdef __USE_GNU
  351. # define CURRENCY_SYMBOL __CURRENCY_SYMBOL
  352. #endif
  353. __MON_DECIMAL_POINT,
  354. #ifdef __USE_GNU
  355. # define MON_DECIMAL_POINT __MON_DECIMAL_POINT
  356. #endif
  357. __MON_THOUSANDS_SEP,
  358. #ifdef __USE_GNU
  359. # define MON_THOUSANDS_SEP __MON_THOUSANDS_SEP
  360. #endif
  361. __MON_GROUPING,
  362. #ifdef __USE_GNU
  363. # define MON_GROUPING __MON_GROUPING
  364. #endif
  365. __POSITIVE_SIGN,
  366. #ifdef __USE_GNU
  367. # define POSITIVE_SIGN __POSITIVE_SIGN
  368. #endif
  369. __NEGATIVE_SIGN,
  370. #ifdef __USE_GNU
  371. # define NEGATIVE_SIGN __NEGATIVE_SIGN
  372. #endif
  373. __INT_FRAC_DIGITS,
  374. #ifdef __USE_GNU
  375. # define INT_FRAC_DIGITS __INT_FRAC_DIGITS
  376. #endif
  377. __FRAC_DIGITS,
  378. #ifdef __USE_GNU
  379. # define FRAC_DIGITS __FRAC_DIGITS
  380. #endif
  381. __P_CS_PRECEDES,
  382. #ifdef __USE_GNU
  383. # define P_CS_PRECEDES __P_CS_PRECEDES
  384. #endif
  385. __P_SEP_BY_SPACE,
  386. #ifdef __USE_GNU
  387. # define P_SEP_BY_SPACE __P_SEP_BY_SPACE
  388. #endif
  389. __N_CS_PRECEDES,
  390. #ifdef __USE_GNU
  391. # define N_CS_PRECEDES __N_CS_PRECEDES
  392. #endif
  393. __N_SEP_BY_SPACE,
  394. #ifdef __USE_GNU
  395. # define N_SEP_BY_SPACE __N_SEP_BY_SPACE
  396. #endif
  397. __P_SIGN_POSN,
  398. #ifdef __USE_GNU
  399. # define P_SIGN_POSN __P_SIGN_POSN
  400. #endif
  401. __N_SIGN_POSN,
  402. #ifdef __USE_GNU
  403. # define N_SIGN_POSN __N_SIGN_POSN
  404. #endif
  405. #if 0 /* moved below for some reason on uClibc */
  406. _NL_MONETARY_CRNCYSTR,
  407. #define CRNCYSTR _NL_MONETARY_CRNCYSTR
  408. #endif
  409. __INT_P_CS_PRECEDES,
  410. #ifdef __USE_GNU
  411. # define INT_P_CS_PRECEDES __INT_P_CS_PRECEDES
  412. #endif
  413. __INT_P_SEP_BY_SPACE,
  414. #ifdef __USE_GNU
  415. # define INT_P_SEP_BY_SPACE __INT_P_SEP_BY_SPACE
  416. #endif
  417. __INT_N_CS_PRECEDES,
  418. #ifdef __USE_GNU
  419. # define INT_N_CS_PRECEDES __INT_N_CS_PRECEDES
  420. #endif
  421. __INT_N_SEP_BY_SPACE,
  422. #ifdef __USE_GNU
  423. # define INT_N_SEP_BY_SPACE __INT_N_SEP_BY_SPACE
  424. #endif
  425. __INT_P_SIGN_POSN,
  426. #ifdef __USE_GNU
  427. # define INT_P_SIGN_POSN __INT_P_SIGN_POSN
  428. #endif
  429. __INT_N_SIGN_POSN,
  430. #ifdef __USE_GNU
  431. # define INT_N_SIGN_POSN __INT_N_SIGN_POSN
  432. #endif
  433. #if 1 /* moved here from above */
  434. _NL_MONETARY_CRNCYSTR,
  435. #define CRNCYSTR _NL_MONETARY_CRNCYSTR
  436. #endif
  437. #if 0
  438. _NL_MONETARY_DUO_INT_CURR_SYMBOL,
  439. _NL_MONETARY_DUO_CURRENCY_SYMBOL,
  440. _NL_MONETARY_DUO_INT_FRAC_DIGITS,
  441. _NL_MONETARY_DUO_FRAC_DIGITS,
  442. _NL_MONETARY_DUO_P_CS_PRECEDES,
  443. _NL_MONETARY_DUO_P_SEP_BY_SPACE,
  444. _NL_MONETARY_DUO_N_CS_PRECEDES,
  445. _NL_MONETARY_DUO_N_SEP_BY_SPACE,
  446. _NL_MONETARY_DUO_INT_P_CS_PRECEDES,
  447. _NL_MONETARY_DUO_INT_P_SEP_BY_SPACE,
  448. _NL_MONETARY_DUO_INT_N_CS_PRECEDES,
  449. _NL_MONETARY_DUO_INT_N_SEP_BY_SPACE,
  450. _NL_MONETARY_DUO_P_SIGN_POSN,
  451. _NL_MONETARY_DUO_N_SIGN_POSN,
  452. _NL_MONETARY_DUO_INT_P_SIGN_POSN,
  453. _NL_MONETARY_DUO_INT_N_SIGN_POSN,
  454. _NL_MONETARY_UNO_VALID_FROM,
  455. _NL_MONETARY_UNO_VALID_TO,
  456. _NL_MONETARY_DUO_VALID_FROM,
  457. _NL_MONETARY_DUO_VALID_TO,
  458. _NL_MONETARY_CONVERSION_RATE,
  459. _NL_MONETARY_DECIMAL_POINT_WC,
  460. _NL_MONETARY_THOUSANDS_SEP_WC,
  461. _NL_MONETARY_CODESET,
  462. #endif /* 0 */
  463. _NL_NUM_LC_MONETARY,
  464. /* LC_NUMERIC category: formatting of numbers.
  465. These also correspond to members of `struct lconv'; see <locale.h>. */
  466. __DECIMAL_POINT = _NL_ITEM (__LC_NUMERIC, 0),
  467. #ifdef __USE_GNU
  468. # define DECIMAL_POINT __DECIMAL_POINT
  469. #endif
  470. RADIXCHAR = __DECIMAL_POINT,
  471. #define RADIXCHAR RADIXCHAR
  472. __THOUSANDS_SEP,
  473. #ifdef __USE_GNU
  474. # define THOUSANDS_SEP __THOUSANDS_SEP
  475. #endif
  476. THOUSEP = __THOUSANDS_SEP,
  477. #define THOUSEP THOUSEP
  478. __GROUPING,
  479. #ifdef __USE_GNU
  480. # define GROUPING __GROUPING
  481. #endif
  482. #if 0
  483. _NL_NUMERIC_DECIMAL_POINT_WC,
  484. _NL_NUMERIC_THOUSANDS_SEP_WC,
  485. _NL_NUMERIC_CODESET,
  486. #endif
  487. _NL_NUM_LC_NUMERIC,
  488. __YESEXPR = _NL_ITEM (__LC_MESSAGES, 0), /* Regex matching ``yes'' input. */
  489. #define YESEXPR __YESEXPR
  490. __NOEXPR, /* Regex matching ``no'' input. */
  491. #define NOEXPR __NOEXPR
  492. __YESSTR, /* Output string for ``yes''. */
  493. #if defined __USE_GNU || (defined __USE_XOPEN && !defined __USE_XOPEN2K)
  494. # define YESSTR __YESSTR
  495. #endif
  496. __NOSTR, /* Output string for ``no''. */
  497. #if defined __USE_GNU || (defined __USE_XOPEN && !defined __USE_XOPEN2K)
  498. # define NOSTR __NOSTR
  499. #endif
  500. #if 0
  501. _NL_MESSAGES_CODESET,
  502. #endif
  503. _NL_NUM_LC_MESSAGES,
  504. #if 0
  505. _NL_PAPER_HEIGHT = _NL_ITEM (__LC_PAPER, 0),
  506. _NL_PAPER_WIDTH,
  507. _NL_PAPER_CODESET,
  508. _NL_NUM_LC_PAPER,
  509. _NL_NAME_NAME_FMT = _NL_ITEM (__LC_NAME, 0),
  510. _NL_NAME_NAME_GEN,
  511. _NL_NAME_NAME_MR,
  512. _NL_NAME_NAME_MRS,
  513. _NL_NAME_NAME_MISS,
  514. _NL_NAME_NAME_MS,
  515. _NL_NAME_CODESET,
  516. _NL_NUM_LC_NAME,
  517. _NL_ADDRESS_POSTAL_FMT = _NL_ITEM (__LC_ADDRESS, 0),
  518. _NL_ADDRESS_COUNTRY_NAME,
  519. _NL_ADDRESS_COUNTRY_POST,
  520. _NL_ADDRESS_COUNTRY_AB2,
  521. _NL_ADDRESS_COUNTRY_AB3,
  522. _NL_ADDRESS_COUNTRY_CAR,
  523. _NL_ADDRESS_COUNTRY_NUM,
  524. _NL_ADDRESS_COUNTRY_ISBN,
  525. _NL_ADDRESS_LANG_NAME,
  526. _NL_ADDRESS_LANG_AB,
  527. _NL_ADDRESS_LANG_TERM,
  528. _NL_ADDRESS_LANG_LIB,
  529. _NL_ADDRESS_CODESET,
  530. _NL_NUM_LC_ADDRESS,
  531. _NL_TELEPHONE_TEL_INT_FMT = _NL_ITEM (__LC_TELEPHONE, 0),
  532. _NL_TELEPHONE_TEL_DOM_FMT,
  533. _NL_TELEPHONE_INT_SELECT,
  534. _NL_TELEPHONE_INT_PREFIX,
  535. _NL_TELEPHONE_CODESET,
  536. _NL_NUM_LC_TELEPHONE,
  537. _NL_MEASUREMENT_MEASUREMENT = _NL_ITEM (__LC_MEASUREMENT, 0),
  538. _NL_MEASUREMENT_CODESET,
  539. _NL_NUM_LC_MEASUREMENT,
  540. _NL_IDENTIFICATION_TITLE = _NL_ITEM (__LC_IDENTIFICATION, 0),
  541. _NL_IDENTIFICATION_SOURCE,
  542. _NL_IDENTIFICATION_ADDRESS,
  543. _NL_IDENTIFICATION_CONTACT,
  544. _NL_IDENTIFICATION_EMAIL,
  545. _NL_IDENTIFICATION_TEL,
  546. _NL_IDENTIFICATION_FAX,
  547. _NL_IDENTIFICATION_LANGUAGE,
  548. _NL_IDENTIFICATION_TERRITORY,
  549. _NL_IDENTIFICATION_AUDIENCE,
  550. _NL_IDENTIFICATION_APPLICATION,
  551. _NL_IDENTIFICATION_ABBREVIATION,
  552. _NL_IDENTIFICATION_REVISION,
  553. _NL_IDENTIFICATION_DATE,
  554. _NL_IDENTIFICATION_CATEGORY,
  555. _NL_IDENTIFICATION_CODESET,
  556. _NL_NUM_LC_IDENTIFICATION,
  557. #endif
  558. /* This marks the highest value used. */
  559. _NL_NUM
  560. };
  561. /* This macro produces an item you can pass to `nl_langinfo' or
  562. `nl_langinfo_l' to get the name of the locale in use for CATEGORY. */
  563. #define _NL_LOCALE_NAME(category) _NL_ITEM ((category), -1)
  564. #ifdef __USE_GNU
  565. # define NL_LOCALE_NAME(category) _NL_LOCALE_NAME (category)
  566. #endif
  567. /* Return the current locale's value for ITEM.
  568. If ITEM is invalid, an empty string is returned.
  569. The string returned will not change until `setlocale' is called;
  570. it is usually in read-only memory and cannot be modified. */
  571. extern char *nl_langinfo (nl_item __item) __THROW;
  572. libc_hidden_proto(nl_langinfo)
  573. #if defined __USE_XOPEN2K && defined __UCLIBC_HAS_XLOCALE__
  574. /* This interface is for the extended locale model. See <locale.h> for
  575. more information. */
  576. /* Get locale datatype definition. */
  577. # include <xlocale.h>
  578. /* Just like nl_langinfo but get the information from the locale object L. */
  579. extern char *nl_langinfo_l (nl_item __item, __locale_t __l);
  580. libc_hidden_proto(nl_langinfo_l)
  581. #endif
  582. __END_DECLS
  583. #endif /* langinfo.h */