Line data Source code
1 : #include <sal/types.h>
2 :
3 :
4 : #include <stdio.h> // debug printfs
5 :
6 : extern "C" {
7 :
8 : static const sal_Unicode langID[] = {0x65, 0x6e, 0x0};
9 : static const sal_Unicode langDefaultName[] = {0x45, 0x6e, 0x67, 0x6c, 0x69, 0x73, 0x68, 0x0};
10 : static const sal_Unicode countryID[] = {0x42, 0x5a, 0x0};
11 : static const sal_Unicode countryDefaultName[] = {0x42, 0x65, 0x6c, 0x69, 0x7a, 0x65, 0x0};
12 : static const sal_Unicode Variant[] = {0x0};
13 :
14 : static const sal_Unicode* LCInfoArray[] = {
15 : langID,
16 : langDefaultName,
17 : countryID,
18 : countryDefaultName,
19 : Variant
20 : };
21 :
22 0 : SAL_DLLPUBLIC_EXPORT sal_Unicode ** SAL_CALL getLCInfo_en_BZ(sal_Int16& count)
23 : {
24 0 : count = 0;
25 0 : return (sal_Unicode**)LCInfoArray;
26 : }
27 :
28 :
29 : static const sal_Unicode LC_CTYPE_Unoid[] = {0x0};
30 : static const sal_Unicode dateSeparator[] = {0x2f, 0x0};
31 : static const sal_Unicode thousandSeparator[] = {0x2c, 0x0};
32 : static const sal_Unicode decimalSeparator[] = {0x2e, 0x0};
33 : static const sal_Unicode timeSeparator[] = {0x3a, 0x0};
34 : static const sal_Unicode time100SecSeparator[] = {0x2e, 0x0};
35 : static const sal_Unicode listSeparator[] = {0x3b, 0x0};
36 : static const sal_Unicode LongDateDayOfWeekSeparator[] = {0x2c, 0x20, 0x0};
37 : static const sal_Unicode LongDateDaySeparator[] = {0x2c, 0x20, 0x0};
38 : static const sal_Unicode LongDateMonthSeparator[] = {0x20, 0x0};
39 : static const sal_Unicode LongDateYearSeparator[] = {0x20, 0x0};
40 : static const sal_Unicode quotationStart[] = {0x2018, 0x0};
41 : static const sal_Unicode quotationEnd[] = {0x2019, 0x0};
42 : static const sal_Unicode doubleQuotationStart[] = {0x201c, 0x0};
43 : static const sal_Unicode doubleQuotationEnd[] = {0x201d, 0x0};
44 : static const sal_Unicode timeAM[] = {0x41, 0x4d, 0x0};
45 : static const sal_Unicode timePM[] = {0x50, 0x4d, 0x0};
46 : static const sal_Unicode measurementSystem[] = {0x6d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x0};
47 :
48 : static const sal_Unicode* LCType[] = {
49 : LC_CTYPE_Unoid,
50 : dateSeparator,
51 : thousandSeparator,
52 : decimalSeparator,
53 : timeSeparator,
54 : time100SecSeparator,
55 : listSeparator,
56 : quotationStart,
57 : quotationEnd,
58 : doubleQuotationStart,
59 : doubleQuotationEnd,
60 : timeAM,
61 : timePM,
62 : measurementSystem,
63 : LongDateDayOfWeekSeparator,
64 : LongDateDaySeparator,
65 : LongDateMonthSeparator,
66 : LongDateYearSeparator
67 : };
68 :
69 0 : SAL_DLLPUBLIC_EXPORT sal_Unicode ** SAL_CALL getLocaleItem_en_BZ(sal_Int16& count)
70 : {
71 0 : count = 0;
72 0 : return (sal_Unicode**)LCType;
73 : }
74 : static const sal_Unicode replaceFrom0[] = {0x0};
75 : static const sal_Unicode replaceTo0[] = {0x5b, 0x24, 0x42, 0x5a, 0x24, 0x2d, 0x32, 0x38, 0x30, 0x39, 0x5d, 0x0};
76 : extern sal_Unicode ** SAL_CALL getAllFormats0_en_US(sal_Int16& count, const sal_Unicode*& from, const sal_Unicode*& to);
77 28 : SAL_DLLPUBLIC_EXPORT sal_Unicode ** SAL_CALL getAllFormats0_en_BZ(sal_Int16& count, const sal_Unicode*& from, const sal_Unicode*& to)
78 : {
79 28 : to = replaceTo0;
80 : const sal_Unicode* tmp;
81 28 : return getAllFormats0_en_US(count, from, tmp);
82 : }
83 : extern sal_Unicode ** SAL_CALL getDateAcceptancePatterns_en_US(sal_Int16& count);
84 0 : SAL_DLLPUBLIC_EXPORT sal_Unicode ** SAL_CALL getDateAcceptancePatterns_en_BZ(sal_Int16& count)
85 : {
86 0 : return getDateAcceptancePatterns_en_US(count);
87 : }
88 : extern sal_Unicode ** SAL_CALL getCollatorImplementation_en_US(sal_Int16& count);
89 0 : SAL_DLLPUBLIC_EXPORT sal_Unicode ** SAL_CALL getCollatorImplementation_en_BZ(sal_Int16& count)
90 : {
91 0 : return getCollatorImplementation_en_US(count);
92 : }
93 : extern sal_Unicode ** SAL_CALL getCollationOptions_en_US(sal_Int16& count);
94 0 : SAL_DLLPUBLIC_EXPORT sal_Unicode ** SAL_CALL getCollationOptions_en_BZ(sal_Int16& count)
95 : {
96 0 : return getCollationOptions_en_US(count);
97 : }
98 : extern sal_Unicode ** SAL_CALL getSearchOptions_en_US(sal_Int16& count);
99 0 : SAL_DLLPUBLIC_EXPORT sal_Unicode ** SAL_CALL getSearchOptions_en_BZ(sal_Int16& count)
100 : {
101 0 : return getSearchOptions_en_US(count);
102 : }
103 : extern sal_Unicode ** SAL_CALL getIndexAlgorithm_en_US(sal_Int16& count);
104 0 : SAL_DLLPUBLIC_EXPORT sal_Unicode ** SAL_CALL getIndexAlgorithm_en_BZ(sal_Int16& count)
105 : {
106 0 : return getIndexAlgorithm_en_US(count);
107 : }
108 : extern sal_Unicode ** SAL_CALL getUnicodeScripts_en_US(sal_Int16& count);
109 0 : SAL_DLLPUBLIC_EXPORT sal_Unicode ** SAL_CALL getUnicodeScripts_en_BZ(sal_Int16& count)
110 : {
111 0 : return getUnicodeScripts_en_US(count);
112 : }
113 : extern sal_Unicode ** SAL_CALL getFollowPageWords_en_US(sal_Int16& count);
114 0 : SAL_DLLPUBLIC_EXPORT sal_Unicode ** SAL_CALL getFollowPageWords_en_BZ(sal_Int16& count)
115 : {
116 0 : return getFollowPageWords_en_US(count);
117 : }
118 : static const sal_Unicode calendarID0[] = {0x67, 0x72, 0x65, 0x67, 0x6f, 0x72, 0x69, 0x61, 0x6e, 0x0};
119 : static const sal_Unicode defaultCalendar0[] = {1};
120 : static const sal_Unicode dayRef0[] = {0x72, 0x65, 0x66, 0x0};
121 : static const sal_Unicode dayRefName0[] = {0x65, 0x6e, 0x5f, 0x55, 0x53, 0x5f, 0x67, 0x72, 0x65, 0x67, 0x6f, 0x72, 0x69, 0x61, 0x6e, 0x0};
122 : static const sal_Unicode monthRef0[] = {0x72, 0x65, 0x66, 0x0};
123 : static const sal_Unicode monthRefName0[] = {0x65, 0x6e, 0x5f, 0x55, 0x53, 0x5f, 0x67, 0x72, 0x65, 0x67, 0x6f, 0x72, 0x69, 0x61, 0x6e, 0x0};
124 : static const sal_Unicode genitiveMonthRef0[] = {0x72, 0x65, 0x66, 0x0};
125 : static const sal_Unicode genitiveMonthRefName0[] = {0x65, 0x6e, 0x5f, 0x55, 0x53, 0x5f, 0x67, 0x72, 0x65, 0x67, 0x6f, 0x72, 0x69, 0x61, 0x6e, 0x0};
126 : static const sal_Unicode partitiveMonthRef0[] = {0x72, 0x65, 0x66, 0x0};
127 : static const sal_Unicode partitiveMonthRefName0[] = {0x65, 0x6e, 0x5f, 0x55, 0x53, 0x5f, 0x67, 0x72, 0x65, 0x67, 0x6f, 0x72, 0x69, 0x61, 0x6e, 0x0};
128 : static const sal_Unicode eraRef0[] = {0x72, 0x65, 0x66, 0x0};
129 : static const sal_Unicode eraRefName0[] = {0x65, 0x6e, 0x5f, 0x55, 0x53, 0x5f, 0x67, 0x72, 0x65, 0x67, 0x6f, 0x72, 0x69, 0x61, 0x6e, 0x0};
130 : static const sal_Unicode startDayOfWeek0[] = {0x6d, 0x6f, 0x6e, 0x0};
131 : static const sal_Unicode minimalDaysInFirstWeek0[] = {1};
132 : static const sal_Int16 calendarsCount = 1;
133 :
134 : static const sal_Unicode nbOfDays[] = {0};
135 : static const sal_Unicode nbOfMonths[] = {0};
136 : static const sal_Unicode nbOfGenitiveMonths[] = {0};
137 : static const sal_Unicode nbOfPartitiveMonths[] = {0};
138 : static const sal_Unicode nbOfEras[] = {0};
139 : static const sal_Unicode* calendars[] = {
140 : nbOfDays,
141 : nbOfMonths,
142 : nbOfGenitiveMonths,
143 : nbOfPartitiveMonths,
144 : nbOfEras,
145 : calendarID0,
146 : defaultCalendar0,
147 : dayRef0,
148 : dayRefName0,
149 : monthRef0,
150 : monthRefName0,
151 : genitiveMonthRef0,
152 : genitiveMonthRefName0,
153 : partitiveMonthRef0,
154 : partitiveMonthRefName0,
155 : eraRef0,
156 : eraRefName0,
157 : startDayOfWeek0,
158 : minimalDaysInFirstWeek0,
159 : };
160 :
161 0 : SAL_DLLPUBLIC_EXPORT sal_Unicode ** SAL_CALL getAllCalendars_en_BZ(sal_Int16& count)
162 : {
163 0 : count = calendarsCount;
164 0 : return (sal_Unicode**)calendars;
165 : }
166 : static const sal_Unicode defaultCurrency0[] = {1};
167 : static const sal_Unicode defaultCurrencyUsedInCompatibleFormatCodes0[] = {1};
168 : static const sal_Unicode defaultCurrencyLegacyOnly0[] = {0};
169 : static const sal_Unicode currencyID0[] = {0x42, 0x5a, 0x44, 0x0};
170 : static const sal_Unicode currencySymbol0[] = {0x42, 0x5a, 0x24, 0x0};
171 : static const sal_Unicode bankSymbol0[] = {0x42, 0x5a, 0x44, 0x0};
172 : static const sal_Unicode currencyName0[] = {0x42, 0x65, 0x6c, 0x69, 0x7a, 0x65, 0x20, 0x44, 0x6f, 0x6c, 0x6c, 0x61, 0x72, 0x0};
173 : static const sal_Unicode currencyDecimalPlaces0[] = {2};
174 :
175 : static const sal_Int16 currencyCount = 1;
176 :
177 : static const sal_Unicode* currencies[] = {
178 : currencyID0,
179 : currencySymbol0,
180 : bankSymbol0,
181 : currencyName0,
182 : defaultCurrency0,
183 : defaultCurrencyUsedInCompatibleFormatCodes0,
184 : currencyDecimalPlaces0,
185 : defaultCurrencyLegacyOnly0,
186 : };
187 :
188 56 : SAL_DLLPUBLIC_EXPORT sal_Unicode ** SAL_CALL getAllCurrencies_en_BZ(sal_Int16& count)
189 : {
190 56 : count = currencyCount;
191 56 : return (sal_Unicode**)currencies;
192 : }
193 : extern sal_Unicode ** SAL_CALL getTransliterations_en_US(sal_Int16& count);
194 0 : SAL_DLLPUBLIC_EXPORT sal_Unicode ** SAL_CALL getTransliterations_en_BZ(sal_Int16& count)
195 : {
196 0 : return getTransliterations_en_US(count);
197 : }
198 : extern sal_Unicode ** SAL_CALL getForbiddenCharacters_en_US(sal_Int16& count);
199 0 : SAL_DLLPUBLIC_EXPORT sal_Unicode ** SAL_CALL getForbiddenCharacters_en_BZ(sal_Int16& count)
200 : {
201 0 : return getForbiddenCharacters_en_US(count);
202 : }
203 : extern sal_Unicode ** SAL_CALL getBreakIteratorRules_en_US(sal_Int16& count);
204 0 : SAL_DLLPUBLIC_EXPORT sal_Unicode ** SAL_CALL getBreakIteratorRules_en_BZ(sal_Int16& count)
205 : {
206 0 : return getBreakIteratorRules_en_US(count);
207 : }
208 : extern sal_Unicode ** SAL_CALL getReservedWords_en_US(sal_Int16& count);
209 0 : SAL_DLLPUBLIC_EXPORT sal_Unicode ** SAL_CALL getReservedWords_en_BZ(sal_Int16& count)
210 : {
211 0 : return getReservedWords_en_US(count);
212 : }
213 : // ---> ContinuousNumbering
214 : extern const sal_Unicode *** SAL_CALL getContinuousNumberingLevels_en_US(sal_Int16& nStyles, sal_Int16& nAttributes);
215 0 : SAL_DLLPUBLIC_EXPORT const sal_Unicode *** SAL_CALL getContinuousNumberingLevels_en_BZ(sal_Int16& nStyles, sal_Int16& nAttributes)
216 : {
217 0 : return getContinuousNumberingLevels_en_US(nStyles, nAttributes);
218 : }
219 : // ---> OutlineNumbering
220 : extern const sal_Unicode **** SAL_CALL getOutlineNumberingLevels_en_US(sal_Int16& nStyles, sal_Int16& nLevels, sal_Int16& nAttributes);
221 0 : SAL_DLLPUBLIC_EXPORT const sal_Unicode **** SAL_CALL getOutlineNumberingLevels_en_BZ(sal_Int16& nStyles, sal_Int16& nLevels, sal_Int16& nAttributes)
222 : {
223 0 : return getOutlineNumberingLevels_en_US(nStyles, nLevels, nAttributes);
224 : }
225 : } // extern "C"
226 :
|