langinfo.h 15 KB

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