categories.def 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357
  1. /*
  2. *
  3. * Copyright (c) 2008 STMicroelectronics Ltd
  4. * Filippo Arcidiacono (filippo.arcidiacono@st.com)
  5. *
  6. * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
  7. *
  8. * Taken from glibc 2.6
  9. *
  10. */
  11. /* Definition of all available locale categories and their items. -*- C -*-
  12. These definitions are used by the 'locale' the program.
  13. The general format of the descriptions is like this:
  14. DEFINE_CATEGORY (ID, name, ( items ), setlocale-postload)
  15. where items itself is an array of entries in the form
  16. { ID, name, standard, value-type, min, max }
  17. The usage of the load, check, output functions depends on the individual
  18. program code which loads this file.
  19. The various value types for the items are `string', `stringarray', `byte'
  20. `bytearray', and `word'. These cover all possible values in the current
  21. locale definitions. `min' and `max' can be individually used again. */
  22. #ifndef NO_POSTLOAD
  23. #define NO_POSTLOAD NULL
  24. #endif
  25. #if 0
  26. DEFINE_CATEGORY
  27. (
  28. LC_COLLATE, "LC_COLLATE",
  29. (
  30. DEFINE_ELEMENT (_NL_COLLATE_NRULES, "collate-nrules", std, word)
  31. DEFINE_ELEMENT (_NL_COLLATE_RULESETS, "collate-rulesets", std, string)
  32. DEFINE_ELEMENT (_NL_COLLATE_TABLEMB, "collate-tablemb", std, wstring)
  33. DEFINE_ELEMENT (_NL_COLLATE_WEIGHTMB, "collate-weightmb", std, wstring)
  34. DEFINE_ELEMENT (_NL_COLLATE_EXTRAMB, "collate-extramb", std, wstring)
  35. DEFINE_ELEMENT (_NL_COLLATE_INDIRECTMB, "collate-indirectmb", std, wstring)
  36. DEFINE_ELEMENT (_NL_COLLATE_TABLEWC, "collate-tablewc", std, wstring)
  37. DEFINE_ELEMENT (_NL_COLLATE_WEIGHTWC, "collate-weightwc", std, wstring)
  38. DEFINE_ELEMENT (_NL_COLLATE_EXTRAWC, "collate-extrawc", std, wstring)
  39. DEFINE_ELEMENT (_NL_COLLATE_INDIRECTWC, "collate-indirectwc", std, wstring)
  40. DEFINE_ELEMENT (_NL_COLLATE_SYMB_HASH_SIZEMB, "collate-symb-hash-sizemb", std, word)
  41. DEFINE_ELEMENT (_NL_COLLATE_SYMB_TABLEMB, "collate-symb-tablemb", std, wstring)
  42. DEFINE_ELEMENT (_NL_COLLATE_SYMB_EXTRAMB, "collate-symb-extramb", std, wstring)
  43. DEFINE_ELEMENT (_NL_COLLATE_COLLSEQMB, "collate-collseqmb", std, wstring)
  44. DEFINE_ELEMENT (_NL_COLLATE_COLLSEQWC, "collate-collseqwc", std, wstring)
  45. DEFINE_ELEMENT (_NL_COLLATE_CODESET, "collate-codeset", std, string)
  46. ), NO_POSTLOAD)
  47. #endif
  48. /* The actual definition of ctype is meaningless here. It is hard coded in
  49. the code because it has to be handled very specially. Only the names of
  50. the functions and the value types are important. */
  51. DEFINE_CATEGORY
  52. (
  53. LC_CTYPE, "LC_CTYPE",
  54. (
  55. #if 0
  56. DEFINE_ELEMENT (_NL_CTYPE_CLASS, "ctype-class", std, wstring)
  57. DEFINE_ELEMENT (_NL_CTYPE_TOUPPER, "ctype-toupper", std, wstring)
  58. DEFINE_ELEMENT (_NL_CTYPE_TOLOWER, "ctype-tolower", std, wstring)
  59. DEFINE_ELEMENT (_NL_CTYPE_CLASS32, "ctype-class32", std, wstring)
  60. DEFINE_ELEMENT (_NL_CTYPE_CLASS_NAMES, "ctype-class-names", std, stringlist, 10, 32)
  61. DEFINE_ELEMENT (_NL_CTYPE_MAP_NAMES, "ctype-map-names", std, stringlist, 2, 32)
  62. DEFINE_ELEMENT (_NL_CTYPE_WIDTH, "ctype-width", std, bytearray)
  63. DEFINE_ELEMENT (_NL_CTYPE_MB_CUR_MAX, "ctype-mb-cur-max", std, word)
  64. DEFINE_ELEMENT (_NL_CTYPE_CODESET_NAME, "charmap", std, string)
  65. DEFINE_ELEMENT (_NL_CTYPE_TOUPPER32, "ctype-toupper32", std, wstring)
  66. DEFINE_ELEMENT (_NL_CTYPE_TOLOWER32, "ctype-tolower32", std, wstring)
  67. DEFINE_ELEMENT (_NL_CTYPE_CLASS_OFFSET, "ctype-class-offset", std, word)
  68. DEFINE_ELEMENT (_NL_CTYPE_MAP_OFFSET, "ctype-map-offset", std, word)
  69. DEFINE_ELEMENT (_NL_CTYPE_INDIGITS_MB_LEN, "ctype-indigits_mb-len", std, word)
  70. DEFINE_ELEMENT (_NL_CTYPE_INDIGITS0_MB, "ctype-indigits0_mb", std, string)
  71. DEFINE_ELEMENT (_NL_CTYPE_INDIGITS1_MB, "ctype-indigits1_mb", std, string)
  72. DEFINE_ELEMENT (_NL_CTYPE_INDIGITS2_MB, "ctype-indigits2_mb", std, string)
  73. DEFINE_ELEMENT (_NL_CTYPE_INDIGITS3_MB, "ctype-indigits3_mb", std, string)
  74. DEFINE_ELEMENT (_NL_CTYPE_INDIGITS4_MB, "ctype-indigits4_mb", std, string)
  75. DEFINE_ELEMENT (_NL_CTYPE_INDIGITS5_MB, "ctype-indigits5_mb", std, string)
  76. DEFINE_ELEMENT (_NL_CTYPE_INDIGITS6_MB, "ctype-indigits6_mb", std, string)
  77. DEFINE_ELEMENT (_NL_CTYPE_INDIGITS7_MB, "ctype-indigits7_mb", std, string)
  78. DEFINE_ELEMENT (_NL_CTYPE_INDIGITS8_MB, "ctype-indigits8_mb", std, string)
  79. DEFINE_ELEMENT (_NL_CTYPE_INDIGITS9_MB, "ctype-indigits9_mb", std, string)
  80. DEFINE_ELEMENT (_NL_CTYPE_INDIGITS_WC_LEN, "ctype-indigits_wc-len", std, word)
  81. DEFINE_ELEMENT (_NL_CTYPE_INDIGITS0_WC, "ctype-indigits0_wc", std, wstring)
  82. DEFINE_ELEMENT (_NL_CTYPE_INDIGITS1_WC, "ctype-indigits1_wc", std, wstring)
  83. DEFINE_ELEMENT (_NL_CTYPE_INDIGITS2_WC, "ctype-indigits2_wc", std, wstring)
  84. DEFINE_ELEMENT (_NL_CTYPE_INDIGITS3_WC, "ctype-indigits3_wc", std, wstring)
  85. DEFINE_ELEMENT (_NL_CTYPE_INDIGITS4_WC, "ctype-indigits4_wc", std, wstring)
  86. DEFINE_ELEMENT (_NL_CTYPE_INDIGITS5_WC, "ctype-indigits5_wc", std, wstring)
  87. DEFINE_ELEMENT (_NL_CTYPE_INDIGITS6_WC, "ctype-indigits6_wc", std, wstring)
  88. DEFINE_ELEMENT (_NL_CTYPE_INDIGITS7_WC, "ctype-indigits7_wc", std, wstring)
  89. DEFINE_ELEMENT (_NL_CTYPE_INDIGITS8_WC, "ctype-indigits8_wc", std, wstring)
  90. DEFINE_ELEMENT (_NL_CTYPE_INDIGITS9_WC, "ctype-indigits9_wc", std, wstring)
  91. #endif
  92. DEFINE_ELEMENT (_NL_CTYPE_OUTDIGIT0_MB, "ctype-outdigit0_mb", std, string)
  93. DEFINE_ELEMENT (_NL_CTYPE_OUTDIGIT1_MB, "ctype-outdigit1_mb", std, string)
  94. DEFINE_ELEMENT (_NL_CTYPE_OUTDIGIT2_MB, "ctype-outdigit2_mb", std, string)
  95. DEFINE_ELEMENT (_NL_CTYPE_OUTDIGIT3_MB, "ctype-outdigit3_mb", std, string)
  96. DEFINE_ELEMENT (_NL_CTYPE_OUTDIGIT4_MB, "ctype-outdigit4_mb", std, string)
  97. DEFINE_ELEMENT (_NL_CTYPE_OUTDIGIT5_MB, "ctype-outdigit5_mb", std, string)
  98. DEFINE_ELEMENT (_NL_CTYPE_OUTDIGIT6_MB, "ctype-outdigit6_mb", std, string)
  99. DEFINE_ELEMENT (_NL_CTYPE_OUTDIGIT7_MB, "ctype-outdigit7_mb", std, string)
  100. DEFINE_ELEMENT (_NL_CTYPE_OUTDIGIT8_MB, "ctype-outdigit8_mb", std, string)
  101. DEFINE_ELEMENT (_NL_CTYPE_OUTDIGIT9_MB, "ctype-outdigit9_mb", std, string)
  102. #if 0
  103. DEFINE_ELEMENT (_NL_CTYPE_OUTDIGIT0_WC, "ctype-outdigit0_wc", std, word)
  104. DEFINE_ELEMENT (_NL_CTYPE_OUTDIGIT1_WC, "ctype-outdigit1_wc", std, word)
  105. DEFINE_ELEMENT (_NL_CTYPE_OUTDIGIT2_WC, "ctype-outdigit2_wc", std, word)
  106. DEFINE_ELEMENT (_NL_CTYPE_OUTDIGIT3_WC, "ctype-outdigit3_wc", std, word)
  107. DEFINE_ELEMENT (_NL_CTYPE_OUTDIGIT4_WC, "ctype-outdigit4_wc", std, word)
  108. DEFINE_ELEMENT (_NL_CTYPE_OUTDIGIT5_WC, "ctype-outdigit5_wc", std, word)
  109. DEFINE_ELEMENT (_NL_CTYPE_OUTDIGIT6_WC, "ctype-outdigit6_wc", std, word)
  110. DEFINE_ELEMENT (_NL_CTYPE_OUTDIGIT7_WC, "ctype-outdigit7_wc", std, word)
  111. DEFINE_ELEMENT (_NL_CTYPE_OUTDIGIT8_WC, "ctype-outdigit8_wc", std, word)
  112. DEFINE_ELEMENT (_NL_CTYPE_OUTDIGIT9_WC, "ctype-outdigit9_wc", std, word)
  113. DEFINE_ELEMENT (_NL_CTYPE_TRANSLIT_TAB_SIZE, "ctype-translit-tab-size", std, word)
  114. DEFINE_ELEMENT (_NL_CTYPE_TRANSLIT_FROM_IDX, "ctype-translit-from-idx", std, wstring)
  115. DEFINE_ELEMENT (_NL_CTYPE_TRANSLIT_FROM_TBL, "ctype-translit-from-tbl", std, wstring)
  116. DEFINE_ELEMENT (_NL_CTYPE_TRANSLIT_TO_IDX, "ctype-translit-to-idx", std, wstring)
  117. DEFINE_ELEMENT (_NL_CTYPE_TRANSLIT_TO_TBL, "ctype-translit-to-tbl", std, wstring)
  118. DEFINE_ELEMENT (_NL_CTYPE_TRANSLIT_DEFAULT_MISSING_LEN, "ctype-translit-default-missing-len", std, word)
  119. DEFINE_ELEMENT (_NL_CTYPE_TRANSLIT_DEFAULT_MISSING, "ctype-translit-default-missing", std, wstring)
  120. DEFINE_ELEMENT (_NL_CTYPE_TRANSLIT_IGNORE_LEN, "ctype-translit-ignore-len", std, word)
  121. DEFINE_ELEMENT (_NL_CTYPE_TRANSLIT_IGNORE, "ctype-translit-ignore", std, string)
  122. DEFINE_ELEMENT (_NL_CTYPE_MAP_TO_NONASCII, "map-to-nonascii", std, word)
  123. #endif
  124. ), _nl_postload_ctype)
  125. DEFINE_CATEGORY
  126. (
  127. LC_MONETARY, "LC_MONETARY",
  128. (
  129. DEFINE_ELEMENT (INT_CURR_SYMBOL, "int_curr_symbol", std, string)
  130. DEFINE_ELEMENT (CURRENCY_SYMBOL, "currency_symbol", std, string)
  131. DEFINE_ELEMENT (MON_DECIMAL_POINT, "mon_decimal_point", std, string)
  132. DEFINE_ELEMENT (MON_THOUSANDS_SEP, "mon_thousands_sep", std, string)
  133. DEFINE_ELEMENT (MON_GROUPING, "mon_grouping", std, bytearray)
  134. DEFINE_ELEMENT (POSITIVE_SIGN, "positive_sign", std, string)
  135. DEFINE_ELEMENT (NEGATIVE_SIGN, "negative_sign", std, string)
  136. DEFINE_ELEMENT (INT_FRAC_DIGITS, "int_frac_digits", std, byte)
  137. DEFINE_ELEMENT (FRAC_DIGITS, "frac_digits", std, byte)
  138. DEFINE_ELEMENT (P_CS_PRECEDES, "p_cs_precedes", std, byte, 0, 1)
  139. DEFINE_ELEMENT (P_SEP_BY_SPACE, "p_sep_by_space", std, byte, 0, 2)
  140. DEFINE_ELEMENT (N_CS_PRECEDES, "n_cs_precedes", std, byte, 0, 1)
  141. DEFINE_ELEMENT (N_SEP_BY_SPACE, "n_sep_by_space", std, byte, 0, 2)
  142. DEFINE_ELEMENT (P_SIGN_POSN, "p_sign_posn", std, byte, 0, 4)
  143. DEFINE_ELEMENT (N_SIGN_POSN, "n_sign_posn", std, byte, 0, 4)
  144. DEFINE_ELEMENT (__INT_P_CS_PRECEDES, "int_p_cs_precedes", std, byte, 0, 1)
  145. DEFINE_ELEMENT (__INT_P_SEP_BY_SPACE, "int_p_sep_by_space", std, byte, 0, 2)
  146. DEFINE_ELEMENT (__INT_N_CS_PRECEDES, "int_n_cs_precedes", std, byte, 0, 1)
  147. DEFINE_ELEMENT (__INT_N_SEP_BY_SPACE, "int_n_sep_by_space", std, byte, 0, 2)
  148. DEFINE_ELEMENT (__INT_P_SIGN_POSN, "int_p_sign_posn", std, byte, 0, 4)
  149. DEFINE_ELEMENT (__INT_N_SIGN_POSN, "int_n_sign_posn", std, byte, 0, 4)
  150. #if 0
  151. DEFINE_ELEMENT (_NL_MONETARY_DUO_INT_CURR_SYMBOL, "duo_int_curr_symbol", std, string)
  152. DEFINE_ELEMENT (_NL_MONETARY_DUO_CURRENCY_SYMBOL, "duo_currency_symbol", std, string)
  153. DEFINE_ELEMENT (_NL_MONETARY_DUO_INT_FRAC_DIGITS, "duo_int_frac_digits", std, byte)
  154. DEFINE_ELEMENT (_NL_MONETARY_DUO_FRAC_DIGITS, "duo_frac_digits", std, byte)
  155. DEFINE_ELEMENT (_NL_MONETARY_DUO_P_CS_PRECEDES, "duo_p_cs_precedes", std, byte, 0, 1)
  156. DEFINE_ELEMENT (_NL_MONETARY_DUO_P_SEP_BY_SPACE, "duo_p_sep_by_space", std, byte, 0, 2)
  157. DEFINE_ELEMENT (_NL_MONETARY_DUO_N_CS_PRECEDES, "duo_n_cs_precedes", std, byte, 0, 1)
  158. DEFINE_ELEMENT (_NL_MONETARY_DUO_N_SEP_BY_SPACE, "duo_n_sep_by_space", std, byte, 0, 2)
  159. DEFINE_ELEMENT (_NL_MONETARY_DUO_INT_P_CS_PRECEDES, "duo_int_p_cs_precedes", std, byte, 0, 1)
  160. DEFINE_ELEMENT (_NL_MONETARY_DUO_INT_P_SEP_BY_SPACE, "duo_int_p_sep_by_space", std, byte, 0, 2)
  161. DEFINE_ELEMENT (_NL_MONETARY_DUO_INT_N_CS_PRECEDES, "duo_int_n_cs_precedes", std, byte, 0, 1)
  162. DEFINE_ELEMENT (_NL_MONETARY_DUO_INT_N_SEP_BY_SPACE, "duo_int_n_sep_by_space", std, byte, 0, 2)
  163. DEFINE_ELEMENT (_NL_MONETARY_DUO_P_SIGN_POSN, "duo_p_sign_posn", std, byte, 0, 4)
  164. DEFINE_ELEMENT (_NL_MONETARY_DUO_N_SIGN_POSN, "duo_n_sign_posn", std, byte, 0, 4)
  165. DEFINE_ELEMENT (_NL_MONETARY_DUO_INT_P_SIGN_POSN, "duo_int_p_sign_posn", std, byte, 0, 4)
  166. DEFINE_ELEMENT (_NL_MONETARY_DUO_INT_N_SIGN_POSN, "duo_int_n_sign_posn", std, byte, 0, 4)
  167. DEFINE_ELEMENT (_NL_MONETARY_UNO_VALID_FROM, "uno_valid_from", std, word)
  168. DEFINE_ELEMENT (_NL_MONETARY_UNO_VALID_TO, "uno_valid_to", std, word)
  169. DEFINE_ELEMENT (_NL_MONETARY_DUO_VALID_FROM, "duo_valid_from", std, word)
  170. DEFINE_ELEMENT (_NL_MONETARY_DUO_VALID_TO, "duo_valid_to", std, word)
  171. DEFINE_ELEMENT (_NL_MONETARY_CONVERSION_RATE, "conversion_rate", std, wordarray, 2, 2)
  172. DEFINE_ELEMENT (_NL_MONETARY_DECIMAL_POINT_WC, "monetary-decimal-point-wc", std, word)
  173. DEFINE_ELEMENT (_NL_MONETARY_THOUSANDS_SEP_WC, "monetary-thousands-sep-wc", std, word)
  174. DEFINE_ELEMENT (_NL_MONETARY_CODESET, "monetary-codeset", std, string)
  175. #else
  176. DEFINE_ELEMENT (_NL_MONETARY_CRNCYSTR, "monetary-crncystr", std, string)
  177. #endif
  178. ), NO_POSTLOAD)
  179. DEFINE_CATEGORY
  180. (
  181. LC_NUMERIC, "LC_NUMERIC",
  182. (
  183. DEFINE_ELEMENT (DECIMAL_POINT, "decimal_point", std, string)
  184. DEFINE_ELEMENT (THOUSANDS_SEP, "thousands_sep", std, string)
  185. DEFINE_ELEMENT (GROUPING, "grouping", std, bytearray)
  186. #if 0
  187. DEFINE_ELEMENT (_NL_NUMERIC_DECIMAL_POINT_WC, "numeric-decimal-point-wc", std, word)
  188. DEFINE_ELEMENT (_NL_NUMERIC_THOUSANDS_SEP_WC, "numeric-thousands-sep-wc", std, word)
  189. DEFINE_ELEMENT (_NL_NUMERIC_CODESET, "numeric-codeset", std, string)
  190. #endif
  191. ), NO_POSTLOAD)
  192. DEFINE_CATEGORY
  193. (
  194. LC_TIME, "LC_TIME",
  195. (
  196. DEFINE_ELEMENT (ABDAY_1, "abday", std, stringarray, 7, 7)
  197. DEFINE_ELEMENT (DAY_1, "day", std, stringarray, 7, 7)
  198. DEFINE_ELEMENT (ABMON_1, "abmon", std, stringarray, 12, 12)
  199. DEFINE_ELEMENT (MON_1, "mon", std, stringarray, 12, 12)
  200. DEFINE_ELEMENT (AM_STR, "am_pm", std, stringarray, 2, 2)
  201. DEFINE_ELEMENT (D_T_FMT, "d_t_fmt", std, string)
  202. DEFINE_ELEMENT (D_FMT, "d_fmt", std, string)
  203. DEFINE_ELEMENT (T_FMT, "t_fmt", std, string)
  204. DEFINE_ELEMENT (T_FMT_AMPM, "t_fmt_ampm", std, string)
  205. DEFINE_ELEMENT (ERA, "era", opt, stringlist, 0, 100)
  206. DEFINE_ELEMENT (ERA_YEAR, "era_year", opt, string)
  207. DEFINE_ELEMENT (ERA_D_FMT, "era_d_fmt", opt, string)
  208. DEFINE_ELEMENT (ALT_DIGITS, "alt_digits", opt, stringlist, 100, 100)
  209. DEFINE_ELEMENT (ERA_D_T_FMT, "era_d_t_fmt", opt, string)
  210. DEFINE_ELEMENT (ERA_T_FMT, "era_t_fmt", opt, string)
  211. #if 0
  212. DEFINE_ELEMENT (_NL_TIME_ERA_NUM_ENTRIES, "time-era-num-entries", opt, word)
  213. DEFINE_ELEMENT (_NL_TIME_ERA_ENTRIES, "time-era-entries", opt, string)
  214. DEFINE_ELEMENT (_NL_WABDAY_1, "wide-abday", std, wstringarray, 7, 7)
  215. DEFINE_ELEMENT (_NL_WDAY_1, "wide-day", std, wstringarray, 7, 7)
  216. DEFINE_ELEMENT (_NL_WABMON_1, "wide-abmon", std, wstringarray, 12, 12)
  217. DEFINE_ELEMENT (_NL_WMON_1, "wide-mon", std, wstringarray, 12, 12)
  218. DEFINE_ELEMENT (_NL_WAM_STR, "wide-am_pm", std, wstringarray, 2, 2)
  219. DEFINE_ELEMENT (_NL_WD_T_FMT, "wide-d_t_fmt", std, wstring)
  220. DEFINE_ELEMENT (_NL_WD_FMT, "wide-d_fmt", std, wstring)
  221. DEFINE_ELEMENT (_NL_WT_FMT, "wide-t_fmt", std, wstring)
  222. DEFINE_ELEMENT (_NL_WT_FMT_AMPM, "wide-t_fmt_ampm", std, wstring)
  223. DEFINE_ELEMENT (_NL_WERA_YEAR, "wide-era_year", opt, wstring)
  224. DEFINE_ELEMENT (_NL_WERA_D_FMT, "wide-era_d_fmt", opt, wstring)
  225. DEFINE_ELEMENT (_NL_WALT_DIGITS, "wide-alt_digits", opt, wstringlist, 1000, 100)
  226. DEFINE_ELEMENT (_NL_WERA_D_T_FMT, "wide-era_d_t_fmt", opt, wstring)
  227. DEFINE_ELEMENT (_NL_WERA_T_FMT, "wide-era_t_fmt", opt, wstring)
  228. DEFINE_ELEMENT (_NL_TIME_WEEK_NDAYS, "week-ndays", std, byte)
  229. DEFINE_ELEMENT (_NL_TIME_WEEK_1STDAY, "week-1stday", std, word)
  230. DEFINE_ELEMENT (_NL_TIME_WEEK_1STWEEK, "week-1stweek", std, byte)
  231. DEFINE_ELEMENT (_NL_TIME_FIRST_WEEKDAY, "first_weekday", std, byte)
  232. DEFINE_ELEMENT (_NL_TIME_FIRST_WORKDAY, "first_workday", std, byte)
  233. DEFINE_ELEMENT (_NL_TIME_CAL_DIRECTION, "cal_direction", std, byte)
  234. DEFINE_ELEMENT (_NL_TIME_TIMEZONE, "timezone", std, string)
  235. DEFINE_ELEMENT (_DATE_FMT, "date_fmt", opt, string)
  236. DEFINE_ELEMENT (_NL_W_DATE_FMT, "wide-date_fmt", opt, wstring)
  237. DEFINE_ELEMENT (_NL_TIME_CODESET, "time-codeset", std, string)
  238. #endif
  239. ), NO_POSTLOAD)
  240. DEFINE_CATEGORY
  241. (
  242. LC_MESSAGES, "LC_MESSAGES",
  243. (
  244. DEFINE_ELEMENT (YESEXPR, "yesexpr", std, string)
  245. DEFINE_ELEMENT (NOEXPR, "noexpr", std, string)
  246. DEFINE_ELEMENT (YESSTR, "yesstr", opt, string)
  247. DEFINE_ELEMENT (NOSTR, "nostr", opt, string)
  248. #if 0
  249. DEFINE_ELEMENT (_NL_MESSAGES_CODESET, "messages-codeset", std, string)
  250. #endif
  251. ), NO_POSTLOAD)
  252. #if 0
  253. DEFINE_CATEGORY
  254. (
  255. LC_PAPER, "LC_PAPER",
  256. (
  257. DEFINE_ELEMENT (_NL_PAPER_HEIGHT, "height", std, word)
  258. DEFINE_ELEMENT (_NL_PAPER_WIDTH, "width", std, word)
  259. DEFINE_ELEMENT (_NL_PAPER_CODESET, "paper-codeset", std, string)
  260. ), NO_POSTLOAD)
  261. DEFINE_CATEGORY
  262. (
  263. LC_NAME, "LC_NAME",
  264. (
  265. DEFINE_ELEMENT (_NL_NAME_NAME_FMT, "name_fmt", std, string)
  266. DEFINE_ELEMENT (_NL_NAME_NAME_GEN, "name_gen", std, string)
  267. DEFINE_ELEMENT (_NL_NAME_NAME_MR, "name_mr", std, string)
  268. DEFINE_ELEMENT (_NL_NAME_NAME_MRS, "name_mrs", std, string)
  269. DEFINE_ELEMENT (_NL_NAME_NAME_MISS, "name_miss", std, string)
  270. DEFINE_ELEMENT (_NL_NAME_NAME_MS, "name_ms", std, string)
  271. DEFINE_ELEMENT (_NL_NAME_CODESET, "name-codeset", std, string)
  272. ), NO_POSTLOAD)
  273. DEFINE_CATEGORY
  274. (
  275. LC_ADDRESS, "LC_ADDRESS",
  276. (
  277. DEFINE_ELEMENT (_NL_ADDRESS_POSTAL_FMT, "postal_fmt", std, string)
  278. DEFINE_ELEMENT (_NL_ADDRESS_COUNTRY_NAME, "country_name", std, string)
  279. DEFINE_ELEMENT (_NL_ADDRESS_COUNTRY_POST, "country_post", std, string)
  280. DEFINE_ELEMENT (_NL_ADDRESS_COUNTRY_AB2, "country_ab2", std, string)
  281. DEFINE_ELEMENT (_NL_ADDRESS_COUNTRY_AB3, "country_ab3", std, string)
  282. DEFINE_ELEMENT (_NL_ADDRESS_COUNTRY_CAR, "country_car", std, string)
  283. DEFINE_ELEMENT (_NL_ADDRESS_COUNTRY_NUM, "country_num", std, word)
  284. DEFINE_ELEMENT (_NL_ADDRESS_COUNTRY_ISBN, "country_isbn", std, string)
  285. DEFINE_ELEMENT (_NL_ADDRESS_LANG_NAME, "lang_name", std, string)
  286. DEFINE_ELEMENT (_NL_ADDRESS_LANG_AB, "lang_ab", std, string)
  287. DEFINE_ELEMENT (_NL_ADDRESS_LANG_TERM, "lang_term", std, string)
  288. DEFINE_ELEMENT (_NL_ADDRESS_LANG_LIB, "lang_lib", std, string)
  289. DEFINE_ELEMENT (_NL_ADDRESS_CODESET, "address-codeset", std, string)
  290. ), NO_POSTLOAD)
  291. DEFINE_CATEGORY
  292. (
  293. LC_TELEPHONE, "LC_TELEPHONE",
  294. (
  295. DEFINE_ELEMENT (_NL_TELEPHONE_TEL_INT_FMT, "tel_int_fmt", std, string)
  296. DEFINE_ELEMENT (_NL_TELEPHONE_TEL_DOM_FMT, "tel_dom_fmt", std, string)
  297. DEFINE_ELEMENT (_NL_TELEPHONE_INT_SELECT, "int_select", std, string)
  298. DEFINE_ELEMENT (_NL_TELEPHONE_INT_PREFIX, "int_prefix", std, string)
  299. DEFINE_ELEMENT (_NL_TELEPHONE_CODESET, "telephone-codeset", std, string)
  300. ), NO_POSTLOAD)
  301. DEFINE_CATEGORY
  302. (
  303. LC_MEASUREMENT, "LC_MEASUREMENT",
  304. (
  305. DEFINE_ELEMENT (_NL_MEASUREMENT_MEASUREMENT, "measurement", std, byte)
  306. DEFINE_ELEMENT (_NL_MEASUREMENT_CODESET, "measurement-codeset", std, string)
  307. ), NO_POSTLOAD)
  308. DEFINE_CATEGORY
  309. (
  310. LC_IDENTIFICATION, "LC_IDENTIFICATION",
  311. (
  312. DEFINE_ELEMENT (_NL_IDENTIFICATION_TITLE, "title", std, string)
  313. DEFINE_ELEMENT (_NL_IDENTIFICATION_SOURCE, "source", std, string)
  314. DEFINE_ELEMENT (_NL_IDENTIFICATION_ADDRESS, "address", std, string)
  315. DEFINE_ELEMENT (_NL_IDENTIFICATION_CONTACT, "contact", std, string)
  316. DEFINE_ELEMENT (_NL_IDENTIFICATION_EMAIL, "email", std, string)
  317. DEFINE_ELEMENT (_NL_IDENTIFICATION_TEL, "tel", std, string)
  318. DEFINE_ELEMENT (_NL_IDENTIFICATION_FAX, "fax", std, string)
  319. DEFINE_ELEMENT (_NL_IDENTIFICATION_LANGUAGE, "language", std, string)
  320. DEFINE_ELEMENT (_NL_IDENTIFICATION_TERRITORY, "territory", std, string)
  321. DEFINE_ELEMENT (_NL_IDENTIFICATION_AUDIENCE, "audience", std, string)
  322. DEFINE_ELEMENT (_NL_IDENTIFICATION_APPLICATION, "application", std, string)
  323. DEFINE_ELEMENT (_NL_IDENTIFICATION_ABBREVIATION, "abbreviation", std, string)
  324. DEFINE_ELEMENT (_NL_IDENTIFICATION_REVISION, "revision", std, string)
  325. DEFINE_ELEMENT (_NL_IDENTIFICATION_DATE, "date", std, string)
  326. DEFINE_ELEMENT (_NL_IDENTIFICATION_CATEGORY, "category", std, stringarray, 13, 13)
  327. DEFINE_ELEMENT (_NL_IDENTIFICATION_CODESET, "identification-codeset", std, string)
  328. ), NO_POSTLOAD)
  329. #endif