1 #ifndef LIBRARIES_LOCALE_H
2 #define LIBRARIES_LOCALE_H
5 Copyright © 1995-2007, The AROS Development Team. All rights reserved.
8 Desc: Definitions for locale.library
12 #ifndef EXEC_LIBRARIES_H
13 # include <exec/libraries.h>
16 # include <exec/lists.h>
19 # include <exec/nodes.h>
22 # include <exec/types.h>
24 #ifndef UTILITY_TAGITEM_H
25 # include <utility/tagitem.h>
30 struct Library lb_LibNode
;
36 STRPTR loc_LocaleName
;
37 STRPTR loc_LanguageName
;
38 STRPTR loc_PrefLanguages
[10];
42 ULONG loc_CountryCode
;
43 ULONG loc_TelephoneCode
;
45 UBYTE loc_MeasuringSystem
; /* see below */
46 UBYTE loc_CalendarType
; /* see below */
47 UBYTE loc_Reserved0
[2];
49 STRPTR loc_DateTimeFormat
;
50 STRPTR loc_DateFormat
;
51 STRPTR loc_TimeFormat
;
52 STRPTR loc_ShortDateTimeFormat
;
53 STRPTR loc_ShortDateFormat
;
54 STRPTR loc_ShortTimeFormat
;
56 STRPTR loc_DecimalPoint
;
57 STRPTR loc_GroupSeparator
;
58 STRPTR loc_FracGroupSeparator
;
60 UBYTE
* loc_FracGrouping
;
61 STRPTR loc_MonDecimalPoint
;
62 STRPTR loc_MonGroupSeparator
;
63 STRPTR loc_MonFracGroupSeparator
;
64 UBYTE
* loc_MonGrouping
;
65 UBYTE
* loc_MonFracGrouping
;
67 UBYTE loc_MonFracDigits
;
68 UBYTE loc_MonIntFracDigits
;
69 UBYTE loc_Reserved1
[2];
72 STRPTR loc_MonSmallCS
;
75 STRPTR loc_MonPositiveSign
;
76 UBYTE loc_MonPositiveSpaceSep
; /* see below */
77 UBYTE loc_MonPositiveSignPos
; /* see below */
78 UBYTE loc_MonPositiveCSPos
; /* see below */
80 STRPTR loc_MonNegativeSign
;
81 UBYTE loc_MonNegativeSpaceSep
; /* see below */
82 UBYTE loc_MonNegativeSignPos
; /* see below */
83 UBYTE loc_MonNegativeCSPos
; /* see below */
87 /* loc_Flags, AROS-specific */
88 #define LOCF_GMT_CLOCK (1UL << 16) /* Hardware clock stores GMT */
90 /* loc_MeasuringSystem */
96 /* loc_CalendarType */
105 /* loc_MonPositiveSpaceSep and loc_MonNegativeSpaceSep */
109 /* loc_MonPositiveSignPos and loc_MonNegativeSignPos */
111 #define SP_PREC_ALL 1
112 #define SP_SUCC_ALL 2
113 #define SP_PREC_CURR 3
114 #define SP_SUCC_CURR 4
116 /* loc_MonPositiveCSPos and loc_MonNegativeCSPos */
117 #define CSP_PRECEDES 0
118 #define CSP_SUCCEEDS 1
122 #define OC_TagBase (TAG_USER + 0x90000)
123 #define OC_BuiltInLanguage (OC_TagBase + 1)
124 #define OC_BuiltInCodeSet (OC_TagBase + 2)
125 #define OC_Version (OC_TagBase + 3)
126 #define OC_Language (OC_TagBase + 4)
131 #define SC_COLLATE1 1
132 #define SC_COLLATE2 2
134 /* Internal String-Numbers */
137 #define DAY_1 1 /* Sunday */
138 #define DAY_2 2 /* Monday */
139 #define DAY_3 3 /* Tuesday */
140 #define DAY_4 4 /* Wednesday */
141 #define DAY_5 5 /* Thursday */
142 #define DAY_6 6 /* Friday */
143 #define DAY_7 7 /* Saturday */
145 /* Abbreviated Days of Week */
155 #define MON_1 15 /* January */
168 /* Abbreviated Months */
188 #define SOFTHYPHEN 43
189 #define HARDHYPHEN 44
192 #define CLOSEQUOTE 46
194 #define YESTERDAYSTR 47
196 #define TOMORROWSTR 49
203 struct Node cat_Link
;
212 #endif /* LIBRARIES_LOCALE_H */