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[] = {0x49, 0x45, 0x0};
11 : static const sal_Unicode countryDefaultName[] = {0x49, 0x72, 0x65, 0x6c, 0x61, 0x6e, 0x64, 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_IE(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[] = {0x20, 0x0};
37 : static const sal_Unicode LongDateDaySeparator[] = {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[] = {0x61, 0x2e, 0x6d, 0x2e, 0x0};
45 : static const sal_Unicode timePM[] = {0x70, 0x2e, 0x6d, 0x2e, 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_IE(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, 0x49, 0x52, 0xa3, 0x2d, 0x31, 0x38, 0x30, 0x39, 0x5d, 0x0};
76 : extern sal_Unicode ** SAL_CALL getAllFormats0_en_GB(sal_Int16& count, const sal_Unicode*& from, const sal_Unicode*& to);
77 56 : SAL_DLLPUBLIC_EXPORT sal_Unicode ** SAL_CALL getAllFormats0_en_IE(sal_Int16& count, const sal_Unicode*& from, const sal_Unicode*& to)
78 : {
79 56 : to = replaceTo0;
80 : const sal_Unicode* tmp;
81 56 : return getAllFormats0_en_GB(count, from, tmp);
82 : }
83 : extern sal_Unicode ** SAL_CALL getDateAcceptancePatterns_en_GB(sal_Int16& count);
84 0 : SAL_DLLPUBLIC_EXPORT sal_Unicode ** SAL_CALL getDateAcceptancePatterns_en_IE(sal_Int16& count)
85 : {
86 0 : return getDateAcceptancePatterns_en_GB(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_IE(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_IE(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_IE(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_IE(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_IE(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_IE(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[] = {0x73, 0x75, 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_IE(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[] = {0};
168 : static const sal_Unicode defaultCurrencyLegacyOnly0[] = {0};
169 : static const sal_Unicode currencyID0[] = {0x45, 0x55, 0x52, 0x0};
170 : static const sal_Unicode currencySymbol0[] = {0x20ac, 0x0};
171 : static const sal_Unicode bankSymbol0[] = {0x45, 0x55, 0x52, 0x0};
172 : static const sal_Unicode currencyName0[] = {0x45, 0x75, 0x72, 0x6f, 0x0};
173 : static const sal_Unicode currencyDecimalPlaces0[] = {2};
174 :
175 : static const sal_Unicode defaultCurrency1[] = {0};
176 : static const sal_Unicode defaultCurrencyUsedInCompatibleFormatCodes1[] = {1};
177 : static const sal_Unicode defaultCurrencyLegacyOnly1[] = {0};
178 : static const sal_Unicode currencyID1[] = {0x49, 0x45, 0x50, 0x0};
179 : static const sal_Unicode currencySymbol1[] = {0x49, 0x52, 0xa3, 0x0};
180 : static const sal_Unicode bankSymbol1[] = {0x49, 0x45, 0x50, 0x0};
181 : static const sal_Unicode currencyName1[] = {0x49, 0x72, 0x69, 0x73, 0x68, 0x20, 0x50, 0x6f, 0x75, 0x6e, 0x64, 0x0};
182 : static const sal_Unicode currencyDecimalPlaces1[] = {2};
183 :
184 : static const sal_Unicode defaultCurrency2[] = {0};
185 : static const sal_Unicode defaultCurrencyUsedInCompatibleFormatCodes2[] = {0};
186 : static const sal_Unicode defaultCurrencyLegacyOnly2[] = {0};
187 : static const sal_Unicode currencyID2[] = {0x47, 0x42, 0x50, 0x0};
188 : static const sal_Unicode currencySymbol2[] = {0xa3, 0x0};
189 : static const sal_Unicode bankSymbol2[] = {0x47, 0x42, 0x50, 0x0};
190 : static const sal_Unicode currencyName2[] = {0x42, 0x72, 0x69, 0x74, 0x69, 0x73, 0x68, 0x20, 0x50, 0x6f, 0x75, 0x6e, 0x64, 0x20, 0x53, 0x74, 0x65, 0x72, 0x6c, 0x69, 0x6e, 0x67, 0x0};
191 : static const sal_Unicode currencyDecimalPlaces2[] = {2};
192 :
193 : static const sal_Int16 currencyCount = 3;
194 :
195 : static const sal_Unicode* currencies[] = {
196 : currencyID0,
197 : currencySymbol0,
198 : bankSymbol0,
199 : currencyName0,
200 : defaultCurrency0,
201 : defaultCurrencyUsedInCompatibleFormatCodes0,
202 : currencyDecimalPlaces0,
203 : defaultCurrencyLegacyOnly0,
204 : currencyID1,
205 : currencySymbol1,
206 : bankSymbol1,
207 : currencyName1,
208 : defaultCurrency1,
209 : defaultCurrencyUsedInCompatibleFormatCodes1,
210 : currencyDecimalPlaces1,
211 : defaultCurrencyLegacyOnly1,
212 : currencyID2,
213 : currencySymbol2,
214 : bankSymbol2,
215 : currencyName2,
216 : defaultCurrency2,
217 : defaultCurrencyUsedInCompatibleFormatCodes2,
218 : currencyDecimalPlaces2,
219 : defaultCurrencyLegacyOnly2,
220 : };
221 :
222 56 : SAL_DLLPUBLIC_EXPORT sal_Unicode ** SAL_CALL getAllCurrencies_en_IE(sal_Int16& count)
223 : {
224 56 : count = currencyCount;
225 56 : return (sal_Unicode**)currencies;
226 : }
227 : extern sal_Unicode ** SAL_CALL getTransliterations_en_US(sal_Int16& count);
228 0 : SAL_DLLPUBLIC_EXPORT sal_Unicode ** SAL_CALL getTransliterations_en_IE(sal_Int16& count)
229 : {
230 0 : return getTransliterations_en_US(count);
231 : }
232 : extern sal_Unicode ** SAL_CALL getForbiddenCharacters_en_US(sal_Int16& count);
233 0 : SAL_DLLPUBLIC_EXPORT sal_Unicode ** SAL_CALL getForbiddenCharacters_en_IE(sal_Int16& count)
234 : {
235 0 : return getForbiddenCharacters_en_US(count);
236 : }
237 : extern sal_Unicode ** SAL_CALL getBreakIteratorRules_en_US(sal_Int16& count);
238 0 : SAL_DLLPUBLIC_EXPORT sal_Unicode ** SAL_CALL getBreakIteratorRules_en_IE(sal_Int16& count)
239 : {
240 0 : return getBreakIteratorRules_en_US(count);
241 : }
242 : extern sal_Unicode ** SAL_CALL getReservedWords_en_US(sal_Int16& count);
243 0 : SAL_DLLPUBLIC_EXPORT sal_Unicode ** SAL_CALL getReservedWords_en_IE(sal_Int16& count)
244 : {
245 0 : return getReservedWords_en_US(count);
246 : }
247 : // ---> ContinuousNumbering
248 : extern const sal_Unicode *** SAL_CALL getContinuousNumberingLevels_en_US(sal_Int16& nStyles, sal_Int16& nAttributes);
249 0 : SAL_DLLPUBLIC_EXPORT const sal_Unicode *** SAL_CALL getContinuousNumberingLevels_en_IE(sal_Int16& nStyles, sal_Int16& nAttributes)
250 : {
251 0 : return getContinuousNumberingLevels_en_US(nStyles, nAttributes);
252 : }
253 : // ---> OutlineNumbering
254 : extern const sal_Unicode **** SAL_CALL getOutlineNumberingLevels_en_US(sal_Int16& nStyles, sal_Int16& nLevels, sal_Int16& nAttributes);
255 0 : SAL_DLLPUBLIC_EXPORT const sal_Unicode **** SAL_CALL getOutlineNumberingLevels_en_IE(sal_Int16& nStyles, sal_Int16& nLevels, sal_Int16& nAttributes)
256 : {
257 0 : return getOutlineNumberingLevels_en_US(nStyles, nLevels, nAttributes);
258 : }
259 : } // extern "C"
260 :
|