home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / detk45he.zip / ULSITEM.H < prev    next >
Text File  |  1999-03-15  |  17KB  |  252 lines

  1. /*
  2.  * ulsitem.h:
  3.  *
  4.  * Function:
  5.  *     Define items for use with UniQueryLocaleItem and
  6.  *     UniQueryLocaleValue.
  7.  *
  8.  * Copyright:
  9.  *     Copyright (C) International Business Machines Corp. 1989, 1997
  10.  *     All Rights Reserved
  11.  *     Licensed Materials - Property of IBM
  12.  *
  13.  * Notes:
  14.  *     All items can be queried as strings.  Those items with a name
  15.  *     prefix of 'i' or 'x' will return a binary value.
  16.  *
  17.  */
  18.  
  19. #ifdef _ULS_LANGINFO
  20. #define _ULS_ITEM
  21. #endif
  22.  
  23. #ifndef _ULS_ITEM
  24. #define _ULS_ITEM
  25. #define _ULS_LANGINFO
  26.  
  27. #ifdef __cplusplus
  28.    extern "C" {
  29. #endif
  30.  
  31. typedef int LocaleItem;
  32.  
  33. #define LOCI_sDateTime            1  /*1 Date and time format string       */
  34. #define LOCI_sShortDate           2  /*1 Short date format                 */
  35. #define LOCI_sTimeFormat          3  /*1 Time format string                */
  36. #define LOCI_s1159                4  /*1 AM string  *                      */
  37. #define LOCI_s2359                5  /*1 PM sring  *                       */
  38. #define LOCI_sAbbrevDayName7      6  /*1 Abbreviation of day 7 (Sun)       */
  39. #define LOCI_sAbbrevDayName1      7  /*1 Abbreviation of day 1 (Mon)       */
  40. #define LOCI_sAbbrevDayName2      8  /*1 Abbreviation of day 2 (Tue)       */
  41. #define LOCI_sAbbrevDayName3      9  /*1 Abbreviation of day 3 (Wed)       */
  42. #define LOCI_sAbbrevDayName4     10  /*1 Abbreviation of day 4 (Thu)       */
  43. #define LOCI_sAbbrevDayName5     11  /*1 Abbreviation of day 5 (Fri)       */
  44. #define LOCI_sAbbrevDayName6     12  /*1 Abbreviation of day 6 (Sat)       */
  45. #define LOCI_sDayName7           13  /*1 Name of day of week 7 (Sun)       */
  46. #define LOCI_sDayName1           14  /*1 Name of day of week 1 (Mon)       */
  47. #define LOCI_sDayName2           15  /*1 Name of day of week 2 (Tue)       */
  48. #define LOCI_sDayName3           16  /*1 Name of day of week 3 (Wed)       */
  49. #define LOCI_sDayName4           17  /*1 Name of day of week 4 (Thu)       */
  50. #define LOCI_sDayName5           18  /*1 Name of day of week 5 (Fri)       */
  51. #define LOCI_sDayName6           19  /*1 Name of day of week 6 (Sat)       */
  52. #define LOCI_sAbbrevMonthName1   20  /*1 Abbreviation of month 1           */
  53. #define LOCI_sAbbrevMonthName2   21  /*1 Abbreviation of month 2           */
  54. #define LOCI_sAbbrevMonthName3   22  /*1 Abbreviation of month 3           */
  55. #define LOCI_sAbbrevMonthName4   23  /*1 Abbreviation of month 4           */
  56. #define LOCI_sAbbrevMonthName5   24  /*1 Abbreviation of month 5           */
  57. #define LOCI_sAbbrevMonthName6   25  /*1 Abbreviation of month 6           */
  58. #define LOCI_sAbbrevMonthName7   26  /*1 Abbreviation of month 7           */
  59. #define LOCI_sAbbrevMonthName8   27  /*1 Abbreviation of month 8           */
  60. #define LOCI_sAbbrevMonthName9   28  /*1 Abbreviation of month 9           */
  61. #define LOCI_sAbbrevMonthName10  29  /*1 Abbreviation of month 10          */
  62. #define LOCI_sAbbrevMonthName11  30  /*1 Abbreviation of month 11          */
  63. #define LOCI_sAbbrevMonthName12  31  /*1 Abbreviation of month 12          */
  64. #define LOCI_sMonthName1         32  /*1 Name of month 1                   */
  65. #define LOCI_sMonthName2         33  /*1 Name of month 2                   */
  66. #define LOCI_sMonthName3         34  /*1 Name of month 3                   */
  67. #define LOCI_sMonthName4         35  /*1 Name of month 4                   */
  68. #define LOCI_sMonthName5         36  /*1 Name of month 5                   */
  69. #define LOCI_sMonthName6         37  /*1 Name of month 6                   */
  70. #define LOCI_sMonthName7         38  /*1 Name of month 7                   */
  71. #define LOCI_sMonthName8         39  /*1 Name of month 8                   */
  72. #define LOCI_sMonthName9         40  /*1 Name of month 9                   */
  73. #define LOCI_sMonthName10        41  /*1 Name of month 10                  */
  74. #define LOCI_sMonthName11        42  /*1 Name of month 11                  */
  75. #define LOCI_sMonthName12        43  /*1 Name of month 12                  */
  76. #define LOCI_sDecimal            44  /*2 Decimal point  *                  */
  77. #define LOCI_sThousand           45  /*2 Triad separator  *                */
  78. #define LOCI_sYesString          46  /*4 Yes string  #                     */
  79. #define LOCI_sNoString           47  /*4 No string  #                      */
  80. #define LOCI_sCurrency           48  /*3 Currency symbol  *                */
  81. #define LOCI_sCodeSet            49  /*0 Locale codeset                    */
  82. #define LOCI_xLocaleToken        50  /*0 IBM Locale Token #                */
  83. #define LOCI_xWinLocale          51  /*0 Win32 Locale ID                   */
  84. #define LOCI_iLocaleResnum       52  /*0 Resource number for description   */
  85. #define LOCI_sNativeDigits       53  /*2 String of native digits           */
  86. #define LOCI_iMaxItem            54  /*0 Maximum item number               */
  87. #define LOCI_sTimeMark           55  /*1 Time mark (am/pm) format          */
  88. #define LOCI_sEra                56  /*1 Era definition                    */
  89. #define LOCI_sAltShortDate       57  /*1 Alternate short date format string*/
  90. #define LOCI_sAltDateTime        58  /*1 Alternate date and time format    */
  91. #define LOCI_sAltTimeFormat      59  /*1 Alternate time format             */
  92. #define LOCI_sAltDigits          60  /*2 XPG4 alternate digist             */
  93. #define LOCI_sYesExpr            61  /*4 xpg4 yes expression  #            */
  94. #define LOCI_sNoExpr             62  /*4 xpg4 no expression  #             */
  95. #define LOCI_sDate               63  /*1 Short date separator  *           */
  96. #define LOCI_sTime               64  /*1 Time separator  *                 */
  97. #define LOCI_sList               65  /*0 List separator  *                 */
  98.    /* New */
  99. #define LOCI_sMonDecimalSep      66  /*3 Monetary currency separator       */
  100. #define LOCI_sMonThousandSep     67  /*3 Monetary triad separator          */
  101. #define LOCI_sGrouping           68  /*2 Grouping of digits                */
  102. #define LOCI_sMonGrouping        69  /*3 Monetary groupings                */
  103. #define LOCI_iMeasure            70  /*0 Measurement (Metric, British)     */
  104. #define LOCI_iPaper              71  /*0 Normal paper size  #              */
  105. #define LOCI_iDigits             72  /*2 Digits to right of decimal  *     */
  106. #define LOCI_iTime               73  /*1 Clock format  *                   */
  107. #define LOCI_iDate               74  /*1 Format of short date  *           */
  108. #define LOCI_iCurrency           75  /*3 Format of currency *              */
  109. #define LOCI_iCurrDigits         76  /*3 Digits to right for currency      */
  110. #define LOCI_iLzero              77  /*2 Leading zero used                 */
  111. #define LOCI_iNegNumber          78  /*2 Format of negative number  *      */
  112. #define LOCI_iLDate              79  /*1 Format of long date               */
  113. #define LOCI_iCalendarType       80  /*1 Type of default calandar          */
  114. #define LOCI_iFirstDayOfWeek     81  /*1 First day of week (0=Mon)         */
  115. #define LOCI_iFirstWeekOfYear    82  /*1 First week of year                */
  116. #define LOCI_iNegCurr            83  /*3 Format of negative currency       */
  117. #define LOCI_iTLzero             84  /*1 Leading zero on time  *           */
  118. #define LOCI_iTimePrefix         85  /*1 AM/PM preceeds time  *            */
  119. #define LOCI_iOptionalCalendar   86  /*1 Alternate calandar type           */
  120. #define LOCI_sIntlSymbol         87  /*3 International currency symbol     */
  121. #define LOCI_sAbbrevLangName     88  /*0 Windows language abbreviation     */
  122. #define LOCI_sCollate            89  /*5 Collation table                   */
  123. #define LOCI_iUpperType          90  /*0 Upper case algorithm              */
  124. #define LOCI_iUpperMissing       91  /*0 Action for missing upper case     */
  125. #define LOCI_sPositiveSign       92  /*2 Positive sign                     */
  126. #define LOCI_sNegativeSign       93  /*2 Negative sign                     */
  127. #define LOCI_sLeftNegative       94  /*4 Left paren for negative           */
  128. #define LOCI_sRightNegative      95  /*4 Right paren for negative          */
  129. #define LOCI_sLongDate           96  /*1 Long date formatting string       */
  130. #define LOCI_sAltLongDate        97  /*1 Alternate long date format string */
  131. #define LOCI_sMonthName13        98  /*1 Name of month 13                  */
  132. #define LOCI_sAbbrevMonthName13  99  /*1 Abbreviation of month 13          */
  133. #define LOCI_sName              100  /*0 OS/2 locale name  #               */
  134. #define LOCI_sLanguageID        101  /*0 Abbreviation for language (ISO)   */
  135. #define LOCI_sCountryID         102  /*0 Abbreviation for country (ISO)    */
  136. #define LOCI_sEngLanguage       103  /*0 English name of Language          */
  137. #define LOCI_sLanguage          104  /*0 Native name of language           */
  138. #define LOCI_sEngCountry        105  /*0 English name of country           */
  139. #define LOCI_sCountry           106  /*0 Localized country name  *         */
  140. #define LOCI_sNativeCtryName    107  /*0 Name of country in native language*/
  141. #define LOCI_iCountry           108  /*0 Country code  *                   */
  142. #define LOCI_sISOCodepage       109  /*0 ISO codepage name                 */
  143. #define LOCI_iAnsiCodepage      110  /*0 Windows codepage                  */
  144. #define LOCI_iCodepage          111  /*0 OS/2 primary codepage             */
  145. #define LOCI_iAltCodepage       112  /*0 OS/2 alternate codepage           */
  146. #define LOCI_iMacCodepage       113  /*0 Mac codepage                      */
  147. #define LOCI_iEbcdicCodepage    114  /*0 Ebcdic codepage                   */                            */
  148. #define LOCI_sOtherCodepages    115  /*0 Other ASCII codepages             */
  149. #define LOCI_sSetCodepage       116  /*0 Codpage to set on activation      */
  150. #define LOCI_sKeyboard          117  /*0 Primary keyboard name             */
  151. #define LOCI_sAltKeyboard       118  /*0 Alternate keyboard name           */
  152. #define LOCI_sSetKeyboard       119  /*0 Keyboard to set on activation     */
  153. #define LOCI_sDebit             120  /*4 Debit string  #                   */
  154. #define LOCI_sCredit            121  /*4 Credit string                     */
  155. #define LOCI_sLatin1Locale      122  /*0 Locale for Latin 1 names          */                      
  156. #define LOCI_wTimeFormat        123  /*1 Win32 Time format                 */
  157. #define LOCI_wShortDate         124  /*1 Win32 Date format                 */
  158. #define LOCI_wLongDate          125  /*1 Win32 Long date format            */
  159.  
  160. #define LOCI_jISO3CountryName   126  /*0 Java Abbrev for country (ISO-3)   */ 
  161. #define LOCI_jPercentPattern    127  /*2 Java percent pattern              */
  162. #define LOCI_jPercentSign       128  /*2 Java percent symbol               */
  163. #define LOCI_jExponent          129  /*2 Java exponential symbol           */
  164. #define LOCI_jFullTimeFormat    130  /*1 Java full time format             */
  165. #define LOCI_jLongTimeFormat    131  /*1 Java long time format             */
  166. #define LOCI_jShortTimeFormat   132  /*1 Java short time format            */
  167. #define LOCI_jFullDateFormat    133  /*1 Java full date format             */
  168. #define LOCI_jMediumDateFormat  134  /*1 Java medium date format           */
  169. #define LOCI_jDateTimePattern   135  /*1 Java date time format pattern     */
  170. #define LOCI_jEraStrings        136  /*1 Java era strings                  */
  171.  
  172.  
  173.  
  174.  
  175.  
  176. /*
  177.  * This max fields is used in the build, but programs should always
  178.  * query iMaxItem from the locale.
  179.  */
  180. #define LOCI_MAXITEM            136  /*  Last item                         */
  181. #define LOCI_NOUSEROVERRIDE  0x8000  /* Use system locale                  */
  182.  
  183. /*
  184.  * These alternate names are for comptatibility with earlier releases
  185.  */
  186. #define D_T_FMT     LOCI_sDateTime           /* string for date and time   */
  187. #define D_FMT       LOCI_sShortDate          /* string for formatting date */
  188. #define T_FMT       LOCI_sTimeFormat         /* string for formatting time */
  189. #define AM_STR      LOCI_s1159               /* string for a.m.            */
  190. #define PM_STR      LOCI_s2359               /* string for p.m.            */
  191. #define ABDAY_1     LOCI_sAbbrevDayName7     /* Abbrev day 1 (Sun)         */
  192. #define ABDAY_2     LOCI_sAbbrevDayName1     /* Abbrev day 2 (Mon)         */
  193. #define ABDAY_3     LOCI_sAbbrevDayName2     /* Abbrev day 3 (Tue)         */
  194. #define ABDAY_4     LOCI_sAbbrevDayName3     /* Abbrev day 4 (Wed)         */
  195. #define ABDAY_5     LOCI_sAbbrevDayName4     /* Abbrev day 5 (Thu)         */
  196. #define ABDAY_6     LOCI_sAbbrevDayName5     /* Abbrev day 6 (Fri)         */
  197. #define ABDAY_7     LOCI_sAbbrevDayName6     /* Abbrev day 7 (Sat)         */
  198. #define DAY_1       LOCI_sDayName7           /* name of day 1 (Sunday)     */
  199. #define DAY_2       LOCI_sDayName1           /* name of day 2 (Monday)     */
  200. #define DAY_3       LOCI_sDayName2           /* name of day 3 (Tuesday)    */
  201. #define DAY_4       LOCI_sDayName3           /* name of day 4 (Wednesday)  */
  202. #define DAY_5       LOCI_sDayName4           /* name of day 5 (Thursday)   */
  203. #define DAY_6       LOCI_sDayName5           /* name of day 6 (Friday)     */
  204. #define DAY_7       LOCI_sDayName6           /* name of day 7 (Saturday)   */
  205. #define ABMON_1     LOCI_sAbbrevMonthName1   /* Abbrev. name of month 1    */
  206. #define ABMON_2     LOCI_sAbbrevMonthName2   /* Abbrev. name of month 2    */
  207. #define ABMON_3     LOCI_sAbbrevMonthName3   /* Abbrev. name of month 3    */
  208. #define ABMON_4     LOCI_sAbbrevMonthName4   /* Abbrev. name of month 4    */
  209. #define ABMON_5     LOCI_sAbbrevMonthName5   /* Abbrev. name of month 5    */
  210. #define ABMON_6     LOCI_sAbbrevMonthName6   /* Abbrev. name of month 6    */
  211. #define ABMON_7     LOCI_sAbbrevMonthName7   /* Abbrev. name of month 7    */
  212. #define ABMON_8     LOCI_sAbbrevMonthName8   /* Abbrev. name of month 8    */
  213. #define ABMON_9     LOCI_sAbbrevMonthName9   /* Abbrev. name of month 9    */
  214. #define ABMON_10    LOCI_sAbbrevMonthName10  /* Abbrev. name of month 10   */
  215. #define ABMON_11    LOCI_sAbbrevMonthName11  /* Abbrev. name of month 11   */
  216. #define ABMON_12    LOCI_sAbbrevMonthName12  /* Abbrev. name of month 12   */
  217. #define MON_1       LOCI_sMonthName1         /* Name of month 1            */
  218. #define MON_2       LOCI_sMonthName2         /* Name of month 2            */
  219. #define MON_3       LOCI_sMonthName3         /* Name of month 3            */
  220. #define MON_4       LOCI_sMonthName4         /* Name of month 4            */
  221. #define MON_5       LOCI_sMonthName5         /* Name of month 5            */
  222. #define MON_6       LOCI_sMonthName6         /* Name of month 6            */
  223. #define MON_7       LOCI_sMonthName7         /* Name of month 7            */
  224. #define MON_8       LOCI_sMonthName8         /* Name of month 8            */
  225. #define MON_9       LOCI_sMonthName9         /* Name of month 9            */
  226. #define MON_10      LOCI_sMonthName10        /* Name of month 10           */
  227. #define MON_11      LOCI_sMonthName11        /* Name of month 11           */
  228. #define MON_12      LOCI_sMonthName12        /* Name of month 12           */
  229. #define RADIXCHAR   LOCI_sDecimal            /* radix character            */
  230. #define THOUSEP     LOCI_sThousand           /* separator for thousands    */
  231. #define YESSTR      LOCI_sYesString          /* yes response               */
  232. #define NOSTR       LOCI_sNoString           /* no response                */
  233. #define CRNCYSTR    LOCI_sCurrency           /* currency symbol            */
  234. #define CODESET     LOCI_sCodeSet            /* codeset name               */
  235. #define T_FMT_AMPM  LOCI_sTimeMark           /* am/pm time format          */
  236. #define ERA         LOCI_sEra                /* era description segments   */
  237. #define ERA_D_FMT   LOCI_sAltShortDate       /* era date format string     */
  238. #define ERA_D_T_FMT LOCI_sAltDateTime        /* era date and time format   */
  239. #define ERA_T_FMT   LOCI_sAltTimeFormat      /* era time format string     */
  240. #define ALT_DIGITS  LOCI_sAltDigits          /* alternative digits         */
  241. #define YESEXPR     LOCI_sYesExpr            /* yes response expression    */
  242. #define NOEXPR      LOCI_sNoExpr             /* no response expression     */
  243. #define DATESEP     LOCI_sDate               /* Date separator             */
  244. #define TIMESEP     LOCI_sTime               /* Time separator             */
  245. #define LISTSEP     LOCI_sList               /* List separator             */
  246.  
  247. #ifdef __cplusplus
  248.    }
  249. #endif
  250.  
  251. #endif
  252.