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_MeasuringSystem */
93 /* loc_CalendarType */
102 /* loc_MonPositiveSpaceSep and loc_MonNegativeSpaceSep */
106 /* loc_MonPositiveSignPos and loc_MonNegativeSignPos */
108 #define SP_PREC_ALL 1
109 #define SP_SUCC_ALL 2
110 #define SP_PREC_CURR 3
111 #define SP_SUCC_CURR 4
113 /* loc_MonPositiveCSPos and loc_MonNegativeCSPos */
114 #define CSP_PRECEDES 0
115 #define CSP_SUCCEEDS 1
119 #define OC_TagBase (TAG_USER + 0x90000)
120 #define OC_BuiltInLanguage (OC_TagBase + 1)
121 #define OC_BuiltInCodeSet (OC_TagBase + 2)
122 #define OC_Version (OC_TagBase + 3)
123 #define OC_Language (OC_TagBase + 4)
128 #define SC_COLLATE1 1
129 #define SC_COLLATE2 2
131 /* Internal String-Numbers */
134 #define DAY_1 1 /* Sunday */
135 #define DAY_2 2 /* Monday */
136 #define DAY_3 3 /* Tuesday */
137 #define DAY_4 4 /* Wednesday */
138 #define DAY_5 5 /* Thursday */
139 #define DAY_6 6 /* Friday */
140 #define DAY_7 7 /* Saturday */
142 /* Abbreviated Days of Week */
152 #define MON_1 15 /* January */
165 /* Abbreviated Months */
185 #define SOFTHYPHEN 43
186 #define HARDHYPHEN 44
189 #define CLOSEQUOTE 46
191 #define YESTERDAYSTR 47
193 #define TOMORROWSTR 49
200 struct Node cat_Link
;
209 #endif /* LIBRARIES_LOCALE_H */