1*449ab281SAndrew Rist /**************************************************************
2cdf0e10cSrcweir  *
3*449ab281SAndrew Rist  * Licensed to the Apache Software Foundation (ASF) under one
4*449ab281SAndrew Rist  * or more contributor license agreements.  See the NOTICE file
5*449ab281SAndrew Rist  * distributed with this work for additional information
6*449ab281SAndrew Rist  * regarding copyright ownership.  The ASF licenses this file
7*449ab281SAndrew Rist  * to you under the Apache License, Version 2.0 (the
8*449ab281SAndrew Rist  * "License"); you may not use this file except in compliance
9*449ab281SAndrew Rist  * with the License.  You may obtain a copy of the License at
10*449ab281SAndrew Rist  *
11*449ab281SAndrew Rist  *   http://www.apache.org/licenses/LICENSE-2.0
12*449ab281SAndrew Rist  *
13*449ab281SAndrew Rist  * Unless required by applicable law or agreed to in writing,
14*449ab281SAndrew Rist  * software distributed under the License is distributed on an
15*449ab281SAndrew Rist  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16*449ab281SAndrew Rist  * KIND, either express or implied.  See the License for the
17*449ab281SAndrew Rist  * specific language governing permissions and limitations
18*449ab281SAndrew Rist  * under the License.
19*449ab281SAndrew Rist  *
20*449ab281SAndrew Rist  *************************************************************/
21*449ab281SAndrew Rist 
22*449ab281SAndrew Rist 
23cdf0e10cSrcweir 
24cdf0e10cSrcweir // MARKER(update_precomp.py): autogen include statement, do not remove
25cdf0e10cSrcweir #include "precompiled_i18npool.hxx"
26cdf0e10cSrcweir #include <com/sun/star/lang/XSingleServiceFactory.hpp>
27cdf0e10cSrcweir #include <com/sun/star/lang/XMultiServiceFactory.hpp>
28cdf0e10cSrcweir #include <com/sun/star/registry/XRegistryKey.hpp>
29cdf0e10cSrcweir 
30cdf0e10cSrcweir #include <cppuhelper/factory.hxx>
31cdf0e10cSrcweir #include <cppuhelper/weak.hxx>
32cdf0e10cSrcweir #include <osl/mutex.hxx>
33cdf0e10cSrcweir 
34cdf0e10cSrcweir #include <localedata.hxx>
35cdf0e10cSrcweir #include <numberformatcode.hxx>
36cdf0e10cSrcweir #include <nativenumbersupplier.hxx>
37cdf0e10cSrcweir #include <defaultnumberingprovider.hxx>
38cdf0e10cSrcweir #include <servicename.hxx>
39cdf0e10cSrcweir 
40cdf0e10cSrcweir #define TRANSLITERATION_ALL
41cdf0e10cSrcweir #include <transliterationImpl.hxx>
42cdf0e10cSrcweir #include <transliteration_body.hxx>
43cdf0e10cSrcweir #include <transliteration_caseignore.hxx>
44cdf0e10cSrcweir #include <transliteration_Ignore.hxx>
45cdf0e10cSrcweir #include <transliteration_OneToOne.hxx>
46cdf0e10cSrcweir #include <textToPronounce_zh.hxx>
47cdf0e10cSrcweir #include <numtotext_cjk.hxx>
48cdf0e10cSrcweir #include <numtochar.hxx>
49cdf0e10cSrcweir #include <texttonum.hxx>
50cdf0e10cSrcweir #include <chartonum.hxx>
51cdf0e10cSrcweir 
52cdf0e10cSrcweir #include <calendarImpl.hxx>
53cdf0e10cSrcweir #include <calendar_gregorian.hxx>
54cdf0e10cSrcweir #include <calendar_hijri.hxx>
55cdf0e10cSrcweir #include <calendar_jewish.hxx>
56cdf0e10cSrcweir 
57cdf0e10cSrcweir #define BREAKITERATOR_ALL
58cdf0e10cSrcweir #include <breakiteratorImpl.hxx>
59cdf0e10cSrcweir #include <breakiterator_cjk.hxx>
60cdf0e10cSrcweir #include <breakiterator_th.hxx>
61cdf0e10cSrcweir #include <breakiterator_unicode.hxx>
62cdf0e10cSrcweir 
63cdf0e10cSrcweir #include <indexentrysupplier.hxx>
64cdf0e10cSrcweir #include <indexentrysupplier_asian.hxx>
65cdf0e10cSrcweir #include <indexentrysupplier_ja_phonetic.hxx>
66cdf0e10cSrcweir #include <indexentrysupplier_common.hxx>
67cdf0e10cSrcweir #include <indexentrysupplier_default.hxx>
68cdf0e10cSrcweir 
69cdf0e10cSrcweir #define CCLASS_ALL
70cdf0e10cSrcweir #include <characterclassificationImpl.hxx>
71cdf0e10cSrcweir #include <scripttypedetector.hxx>
72cdf0e10cSrcweir #include <cclass_unicode.hxx>
73cdf0e10cSrcweir 
74cdf0e10cSrcweir #define COLLATOR_ALL
75cdf0e10cSrcweir #include <collatorImpl.hxx>
76cdf0e10cSrcweir #include <chaptercollator.hxx>
77cdf0e10cSrcweir #include <collator_unicode.hxx>
78cdf0e10cSrcweir 
79cdf0e10cSrcweir #include <inputsequencechecker.hxx>
80cdf0e10cSrcweir #include <inputsequencechecker_th.hxx>
81cdf0e10cSrcweir #include <inputsequencechecker_hi.hxx>
82cdf0e10cSrcweir 
83cdf0e10cSrcweir #include <textconversionImpl.hxx>
84cdf0e10cSrcweir #include <textconversion.hxx>
85cdf0e10cSrcweir 
86cdf0e10cSrcweir #include <ordinalsuffix.hxx>
87cdf0e10cSrcweir 
88cdf0e10cSrcweir #define IMPL_CREATEINSTANCE( ImplName ) \
89cdf0e10cSrcweir     ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface >   \
90cdf0e10cSrcweir         SAL_CALL ImplName##_CreateInstance(                                 \
91cdf0e10cSrcweir             const ::com::sun::star::uno::Reference<                         \
92cdf0e10cSrcweir                     ::com::sun::star::lang::XMultiServiceFactory >& )       \
93cdf0e10cSrcweir {                                                                           \
94cdf0e10cSrcweir     return ::com::sun::star::uno::Reference <                               \
95cdf0e10cSrcweir             ::com::sun::star::uno::XInterface >( ( ::cppu::OWeakObject* )   \
96cdf0e10cSrcweir                                     new ImplName );                         \
97cdf0e10cSrcweir }
98cdf0e10cSrcweir 
99cdf0e10cSrcweir #define IMPL_CREATEINSTANCE_MSF( ImplName ) \
100cdf0e10cSrcweir     ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface >   \
101cdf0e10cSrcweir         SAL_CALL ImplName##_CreateInstance(                                 \
102cdf0e10cSrcweir             const ::com::sun::star::uno::Reference<                         \
103cdf0e10cSrcweir                     ::com::sun::star::lang::XMultiServiceFactory >& rxMSF ) \
104cdf0e10cSrcweir {                                                                           \
105cdf0e10cSrcweir     return ::com::sun::star::uno::Reference <                               \
106cdf0e10cSrcweir             ::com::sun::star::uno::XInterface >( ( ::cppu::OWeakObject* )   \
107cdf0e10cSrcweir                                     new ImplName( rxMSF ) );                \
108cdf0e10cSrcweir }
109cdf0e10cSrcweir 
110cdf0e10cSrcweir typedef ::com::sun::star::uno::Reference<
111cdf0e10cSrcweir         ::com::sun::star::uno::XInterface > (SAL_CALL *FN_CreateInstance)(
112cdf0e10cSrcweir             const ::com::sun::star::uno::Reference<
113cdf0e10cSrcweir                 ::com::sun::star::lang::XMultiServiceFactory >& );
114cdf0e10cSrcweir 
115cdf0e10cSrcweir #define IMPL_TRANSLITERATION_ITEM( implName ) \
116cdf0e10cSrcweir     {       TRLT_SERVICELNAME_L10N, \
117cdf0e10cSrcweir         TRLT_IMPLNAME_PREFIX  #implName, \
118cdf0e10cSrcweir         &implName##_CreateInstance }
119cdf0e10cSrcweir 
120cdf0e10cSrcweir // -------------------------------------------------------------------------------------
121cdf0e10cSrcweir 
122cdf0e10cSrcweir using namespace ::com::sun::star::i18n;
123cdf0e10cSrcweir 
124cdf0e10cSrcweir IMPL_CREATEINSTANCE_MSF( NumberFormatCodeMapper )
125cdf0e10cSrcweir IMPL_CREATEINSTANCE( NativeNumberSupplier )
126cdf0e10cSrcweir IMPL_CREATEINSTANCE( LocaleData )
127cdf0e10cSrcweir IMPL_CREATEINSTANCE_MSF( DefaultNumberingProvider )
128cdf0e10cSrcweir IMPL_CREATEINSTANCE_MSF( IndexEntrySupplier )
129cdf0e10cSrcweir IMPL_CREATEINSTANCE_MSF( IndexEntrySupplier_asian )
130cdf0e10cSrcweir IMPL_CREATEINSTANCE_MSF( IndexEntrySupplier_ja_phonetic_alphanumeric_first_by_syllable )
131cdf0e10cSrcweir IMPL_CREATEINSTANCE_MSF( IndexEntrySupplier_ja_phonetic_alphanumeric_first_by_consonant )
132cdf0e10cSrcweir IMPL_CREATEINSTANCE_MSF( IndexEntrySupplier_ja_phonetic_alphanumeric_last_by_syllable )
133cdf0e10cSrcweir IMPL_CREATEINSTANCE_MSF( IndexEntrySupplier_ja_phonetic_alphanumeric_last_by_consonant )
134cdf0e10cSrcweir IMPL_CREATEINSTANCE_MSF( IndexEntrySupplier_Unicode )
135cdf0e10cSrcweir IMPL_CREATEINSTANCE_MSF( CalendarImpl )
136cdf0e10cSrcweir IMPL_CREATEINSTANCE( Calendar_gregorian )
137cdf0e10cSrcweir IMPL_CREATEINSTANCE( Calendar_hanja )
138cdf0e10cSrcweir IMPL_CREATEINSTANCE( Calendar_gengou )
139cdf0e10cSrcweir IMPL_CREATEINSTANCE( Calendar_ROC )
140cdf0e10cSrcweir IMPL_CREATEINSTANCE( Calendar_hijri )
141cdf0e10cSrcweir IMPL_CREATEINSTANCE( Calendar_jewish )
142cdf0e10cSrcweir IMPL_CREATEINSTANCE( Calendar_buddhist )
143cdf0e10cSrcweir IMPL_CREATEINSTANCE_MSF( BreakIteratorImpl )
144cdf0e10cSrcweir IMPL_CREATEINSTANCE( BreakIterator_Unicode )
145cdf0e10cSrcweir IMPL_CREATEINSTANCE( BreakIterator_ja )
146cdf0e10cSrcweir IMPL_CREATEINSTANCE( BreakIterator_zh )
147cdf0e10cSrcweir IMPL_CREATEINSTANCE( BreakIterator_zh_TW )
148cdf0e10cSrcweir IMPL_CREATEINSTANCE( BreakIterator_ko )
149cdf0e10cSrcweir IMPL_CREATEINSTANCE( BreakIterator_th )
150cdf0e10cSrcweir IMPL_CREATEINSTANCE_MSF( ChapterCollator )
151cdf0e10cSrcweir IMPL_CREATEINSTANCE_MSF( CollatorImpl )
152cdf0e10cSrcweir IMPL_CREATEINSTANCE( Collator_Unicode )
153cdf0e10cSrcweir 
154cdf0e10cSrcweir IMPL_CREATEINSTANCE_MSF( CharacterClassificationImpl )
155cdf0e10cSrcweir IMPL_CREATEINSTANCE_MSF( cclass_Unicode )
156cdf0e10cSrcweir IMPL_CREATEINSTANCE_MSF( TransliterationImpl )
157cdf0e10cSrcweir IMPL_CREATEINSTANCE( ScriptTypeDetector )
158cdf0e10cSrcweir 
159cdf0e10cSrcweir IMPL_CREATEINSTANCE_MSF( InputSequenceCheckerImpl )
160cdf0e10cSrcweir IMPL_CREATEINSTANCE( InputSequenceChecker_th )
161cdf0e10cSrcweir IMPL_CREATEINSTANCE( InputSequenceChecker_hi )
162cdf0e10cSrcweir 
163cdf0e10cSrcweir IMPL_CREATEINSTANCE_MSF( TextConversionImpl )
164cdf0e10cSrcweir IMPL_CREATEINSTANCE_MSF( TextConversion_ko )
165cdf0e10cSrcweir IMPL_CREATEINSTANCE_MSF( TextConversion_zh )
166cdf0e10cSrcweir 
167cdf0e10cSrcweir IMPL_CREATEINSTANCE( Transliteration_u2l )
168cdf0e10cSrcweir IMPL_CREATEINSTANCE( Transliteration_l2u )
169cdf0e10cSrcweir IMPL_CREATEINSTANCE( Transliteration_sentencecase )
170cdf0e10cSrcweir IMPL_CREATEINSTANCE( Transliteration_titlecase )
171cdf0e10cSrcweir IMPL_CREATEINSTANCE( Transliteration_togglecase )
172cdf0e10cSrcweir IMPL_CREATEINSTANCE( Transliteration_caseignore )
173cdf0e10cSrcweir IMPL_CREATEINSTANCE( hiraganaToKatakana )
174cdf0e10cSrcweir IMPL_CREATEINSTANCE( katakanaToHiragana )
175cdf0e10cSrcweir IMPL_CREATEINSTANCE( ignoreKana )
176cdf0e10cSrcweir IMPL_CREATEINSTANCE( fullwidthToHalfwidth )
177cdf0e10cSrcweir IMPL_CREATEINSTANCE( halfwidthToFullwidth )
178cdf0e10cSrcweir IMPL_CREATEINSTANCE( ignoreWidth )
179cdf0e10cSrcweir 
180cdf0e10cSrcweir IMPL_CREATEINSTANCE( smallToLarge_ja_JP)
181cdf0e10cSrcweir IMPL_CREATEINSTANCE( largeToSmall_ja_JP)
182cdf0e10cSrcweir IMPL_CREATEINSTANCE( ignoreTraditionalKanji_ja_JP)
183cdf0e10cSrcweir IMPL_CREATEINSTANCE( ignoreTraditionalKana_ja_JP)
184cdf0e10cSrcweir IMPL_CREATEINSTANCE( ignoreMinusSign_ja_JP)
185cdf0e10cSrcweir IMPL_CREATEINSTANCE( ignoreIterationMark_ja_JP)
186cdf0e10cSrcweir IMPL_CREATEINSTANCE( ignoreSeparator_ja_JP)
187cdf0e10cSrcweir IMPL_CREATEINSTANCE( ignoreZiZu_ja_JP)
188cdf0e10cSrcweir IMPL_CREATEINSTANCE( ignoreBaFa_ja_JP)
189cdf0e10cSrcweir IMPL_CREATEINSTANCE( ignoreTiJi_ja_JP)
190cdf0e10cSrcweir IMPL_CREATEINSTANCE( ignoreHyuByu_ja_JP)
191cdf0e10cSrcweir IMPL_CREATEINSTANCE( ignoreSeZe_ja_JP)
192cdf0e10cSrcweir IMPL_CREATEINSTANCE( ignoreIandEfollowedByYa_ja_JP)
193cdf0e10cSrcweir IMPL_CREATEINSTANCE( ignoreKiKuFollowedBySa_ja_JP)
194cdf0e10cSrcweir IMPL_CREATEINSTANCE( ignoreSize_ja_JP)
195cdf0e10cSrcweir IMPL_CREATEINSTANCE( ignoreProlongedSoundMark_ja_JP)
196cdf0e10cSrcweir IMPL_CREATEINSTANCE( ignoreMiddleDot_ja_JP)
197cdf0e10cSrcweir IMPL_CREATEINSTANCE( ignoreSpace_ja_JP)
198cdf0e10cSrcweir 
199cdf0e10cSrcweir IMPL_CREATEINSTANCE( TextToChuyin_zh_TW )
200cdf0e10cSrcweir IMPL_CREATEINSTANCE( TextToPinyin_zh_CN )
201cdf0e10cSrcweir 
202cdf0e10cSrcweir IMPL_CREATEINSTANCE( NumToCharLower_zh_CN )
203cdf0e10cSrcweir IMPL_CREATEINSTANCE( NumToCharUpper_zh_CN )
204cdf0e10cSrcweir IMPL_CREATEINSTANCE( NumToCharLower_zh_TW )
205cdf0e10cSrcweir IMPL_CREATEINSTANCE( NumToCharUpper_zh_TW )
206cdf0e10cSrcweir IMPL_CREATEINSTANCE( NumToCharHalfwidth )
207cdf0e10cSrcweir IMPL_CREATEINSTANCE( NumToCharFullwidth )
208cdf0e10cSrcweir IMPL_CREATEINSTANCE( NumToCharKanjiShort_ja_JP )
209cdf0e10cSrcweir IMPL_CREATEINSTANCE( NumToCharKanjiTraditional_ja_JP )
210cdf0e10cSrcweir IMPL_CREATEINSTANCE( NumToCharHangul_ko )
211cdf0e10cSrcweir IMPL_CREATEINSTANCE( NumToCharLower_ko )
212cdf0e10cSrcweir IMPL_CREATEINSTANCE( NumToCharUpper_ko )
213cdf0e10cSrcweir IMPL_CREATEINSTANCE( NumToCharIndic_ar )
214cdf0e10cSrcweir IMPL_CREATEINSTANCE( NumToCharEastIndic_ar )
215cdf0e10cSrcweir IMPL_CREATEINSTANCE( NumToCharIndic_hi )
216cdf0e10cSrcweir IMPL_CREATEINSTANCE( NumToChar_th )
217cdf0e10cSrcweir 
218cdf0e10cSrcweir IMPL_CREATEINSTANCE( CharToNumLower_zh_CN )
219cdf0e10cSrcweir IMPL_CREATEINSTANCE( CharToNumUpper_zh_CN )
220cdf0e10cSrcweir IMPL_CREATEINSTANCE( CharToNumLower_zh_TW )
221cdf0e10cSrcweir IMPL_CREATEINSTANCE( CharToNumUpper_zh_TW )
222cdf0e10cSrcweir IMPL_CREATEINSTANCE( CharToNumFullwidth )
223cdf0e10cSrcweir IMPL_CREATEINSTANCE( CharToNumKanjiShort_ja_JP )
224cdf0e10cSrcweir IMPL_CREATEINSTANCE( CharToNumKanjiTraditional_ja_JP )
225cdf0e10cSrcweir IMPL_CREATEINSTANCE( CharToNumHangul_ko )
226cdf0e10cSrcweir IMPL_CREATEINSTANCE( CharToNumLower_ko )
227cdf0e10cSrcweir IMPL_CREATEINSTANCE( CharToNumUpper_ko )
228cdf0e10cSrcweir IMPL_CREATEINSTANCE( CharToNumIndic_ar )
229cdf0e10cSrcweir IMPL_CREATEINSTANCE( CharToNumEastIndic_ar )
230cdf0e10cSrcweir IMPL_CREATEINSTANCE( CharToNumIndic_hi )
231cdf0e10cSrcweir IMPL_CREATEINSTANCE( CharToNum_th )
232cdf0e10cSrcweir 
233cdf0e10cSrcweir IMPL_CREATEINSTANCE( NumToTextLower_zh_CN )
234cdf0e10cSrcweir IMPL_CREATEINSTANCE( NumToTextUpper_zh_CN )
235cdf0e10cSrcweir IMPL_CREATEINSTANCE( NumToTextLower_zh_TW )
236cdf0e10cSrcweir IMPL_CREATEINSTANCE( NumToTextUpper_zh_TW )
237cdf0e10cSrcweir IMPL_CREATEINSTANCE( NumToTextFullwidth_zh_CN )
238cdf0e10cSrcweir IMPL_CREATEINSTANCE( NumToTextFullwidth_zh_TW )
239cdf0e10cSrcweir IMPL_CREATEINSTANCE( NumToTextFullwidth_ja_JP )
240cdf0e10cSrcweir IMPL_CREATEINSTANCE( NumToTextFullwidth_ko )
241cdf0e10cSrcweir IMPL_CREATEINSTANCE( NumToTextKanjiLongModern_ja_JP )
242cdf0e10cSrcweir IMPL_CREATEINSTANCE( NumToTextKanjiLongTraditional_ja_JP )
243cdf0e10cSrcweir IMPL_CREATEINSTANCE( NumToTextKanjiShortModern_ja_JP )
244cdf0e10cSrcweir IMPL_CREATEINSTANCE( NumToTextKanjiShortTraditional_ja_JP )
245cdf0e10cSrcweir IMPL_CREATEINSTANCE( NumToTextFormalHangul_ko )
246cdf0e10cSrcweir IMPL_CREATEINSTANCE( NumToTextFormalLower_ko )
247cdf0e10cSrcweir IMPL_CREATEINSTANCE( NumToTextFormalUpper_ko )
248cdf0e10cSrcweir IMPL_CREATEINSTANCE( NumToTextInformalHangul_ko )
249cdf0e10cSrcweir IMPL_CREATEINSTANCE( NumToTextInformalUpper_ko )
250cdf0e10cSrcweir IMPL_CREATEINSTANCE( NumToTextInformalLower_ko )
251cdf0e10cSrcweir 
252cdf0e10cSrcweir IMPL_CREATEINSTANCE( TextToNumLower_zh_CN )
253cdf0e10cSrcweir IMPL_CREATEINSTANCE( TextToNumUpper_zh_CN )
254cdf0e10cSrcweir IMPL_CREATEINSTANCE( TextToNumLower_zh_TW )
255cdf0e10cSrcweir IMPL_CREATEINSTANCE( TextToNumUpper_zh_TW )
256cdf0e10cSrcweir IMPL_CREATEINSTANCE( TextToNumKanjiLongModern_ja_JP )
257cdf0e10cSrcweir IMPL_CREATEINSTANCE( TextToNumKanjiLongTraditional_ja_JP )
258cdf0e10cSrcweir IMPL_CREATEINSTANCE( TextToNumFormalHangul_ko )
259cdf0e10cSrcweir IMPL_CREATEINSTANCE( TextToNumFormalLower_ko )
260cdf0e10cSrcweir IMPL_CREATEINSTANCE( TextToNumFormalUpper_ko )
261cdf0e10cSrcweir IMPL_CREATEINSTANCE( TextToNumInformalHangul_ko )
262cdf0e10cSrcweir IMPL_CREATEINSTANCE( TextToNumInformalUpper_ko )
263cdf0e10cSrcweir IMPL_CREATEINSTANCE( TextToNumInformalLower_ko )
264cdf0e10cSrcweir 
265cdf0e10cSrcweir IMPL_CREATEINSTANCE( NumToTextDate_zh )
266cdf0e10cSrcweir IMPL_CREATEINSTANCE( NumToTextAIUFullWidth_ja_JP )
267cdf0e10cSrcweir IMPL_CREATEINSTANCE( NumToTextAIUHalfWidth_ja_JP )
268cdf0e10cSrcweir IMPL_CREATEINSTANCE( NumToTextIROHAFullWidth_ja_JP )
269cdf0e10cSrcweir IMPL_CREATEINSTANCE( NumToTextIROHAHalfWidth_ja_JP )
270cdf0e10cSrcweir IMPL_CREATEINSTANCE( NumToTextCircledNumber )
271cdf0e10cSrcweir IMPL_CREATEINSTANCE( NumToTextHangulJamo_ko )
272cdf0e10cSrcweir IMPL_CREATEINSTANCE( NumToTextHangulSyllable_ko )
273cdf0e10cSrcweir IMPL_CREATEINSTANCE( NumToTextHangulCircledJamo_ko )
274cdf0e10cSrcweir IMPL_CREATEINSTANCE( NumToTextHangulCircledSyllable_ko )
275cdf0e10cSrcweir IMPL_CREATEINSTANCE( NumToTextTianGan_zh )
276cdf0e10cSrcweir IMPL_CREATEINSTANCE( NumToTextDiZi_zh )
277cdf0e10cSrcweir 
278cdf0e10cSrcweir IMPL_CREATEINSTANCE( fullwidthKatakanaToHalfwidthKatakana )
279cdf0e10cSrcweir IMPL_CREATEINSTANCE( halfwidthKatakanaToFullwidthKatakana )
280cdf0e10cSrcweir IMPL_CREATEINSTANCE( fullwidthToHalfwidthLikeASC )
281cdf0e10cSrcweir IMPL_CREATEINSTANCE( halfwidthToFullwidthLikeJIS )
282cdf0e10cSrcweir 
283cdf0e10cSrcweir IMPL_CREATEINSTANCE_MSF( OrdinalSuffix )
284cdf0e10cSrcweir 
285cdf0e10cSrcweir static const struct InstancesArray {
286cdf0e10cSrcweir         const sal_Char* pServiceNm;
287cdf0e10cSrcweir         const sal_Char* pImplementationNm;
288cdf0e10cSrcweir         FN_CreateInstance pFn;
289cdf0e10cSrcweir } aInstances[] = {
290cdf0e10cSrcweir     {   "com.sun.star.i18n.LocaleData",
291cdf0e10cSrcweir         "com.sun.star.i18n.LocaleData",
292cdf0e10cSrcweir         & LocaleData_CreateInstance },
293cdf0e10cSrcweir     {   "com.sun.star.i18n.NumberFormatMapper",
294cdf0e10cSrcweir         "com.sun.star.i18n.NumberFormatCodeMapper",
295cdf0e10cSrcweir         & NumberFormatCodeMapper_CreateInstance },
296cdf0e10cSrcweir     {   "com.sun.star.i18n.NativeNumberSupplier",
297cdf0e10cSrcweir         "com.sun.star.i18n.NativeNumberSupplier",
298cdf0e10cSrcweir         & NativeNumberSupplier_CreateInstance },
299cdf0e10cSrcweir     {   "com.sun.star.text.DefaultNumberingProvider",
300cdf0e10cSrcweir         "com.sun.star.text.DefaultNumberingProvider",
301cdf0e10cSrcweir         &DefaultNumberingProvider_CreateInstance },
302cdf0e10cSrcweir     {   "com.sun.star.i18n.IndexEntrySupplier",
303cdf0e10cSrcweir         "com.sun.star.i18n.IndexEntrySupplier",
304cdf0e10cSrcweir         &IndexEntrySupplier_CreateInstance },
305cdf0e10cSrcweir     {   "com.sun.star.i18n.IndexEntrySupplier_asian",
306cdf0e10cSrcweir         "com.sun.star.i18n.IndexEntrySupplier_asian",
307cdf0e10cSrcweir         &IndexEntrySupplier_asian_CreateInstance },
308cdf0e10cSrcweir     {   "com.sun.star.i18n.IndexEntrySupplier_ja_phonetic (alphanumeric first)",
309cdf0e10cSrcweir         "com.sun.star.i18n.IndexEntrySupplier_ja_phonetic (alphanumeric first)",
310cdf0e10cSrcweir         &IndexEntrySupplier_ja_phonetic_alphanumeric_first_by_syllable_CreateInstance },
311cdf0e10cSrcweir     {   "com.sun.star.i18n.IndexEntrySupplier_ja_phonetic (alphanumeric last)",
312cdf0e10cSrcweir         "com.sun.star.i18n.IndexEntrySupplier_ja_phonetic (alphanumeric last)",
313cdf0e10cSrcweir         &IndexEntrySupplier_ja_phonetic_alphanumeric_last_by_syllable_CreateInstance },
314cdf0e10cSrcweir     {   "com.sun.star.i18n.IndexEntrySupplier_ja_phonetic (alphanumeric first) (grouped by syllable)",
315cdf0e10cSrcweir         "com.sun.star.i18n.IndexEntrySupplier_ja_phonetic (alphanumeric first) (grouped by syllable)",
316cdf0e10cSrcweir         &IndexEntrySupplier_ja_phonetic_alphanumeric_first_by_syllable_CreateInstance },
317cdf0e10cSrcweir     {   "com.sun.star.i18n.IndexEntrySupplier_ja_phonetic (alphanumeric first) (grouped by consonant)",
318cdf0e10cSrcweir         "com.sun.star.i18n.IndexEntrySupplier_ja_phonetic (alphanumeric first) (grouped by consonant)",
319cdf0e10cSrcweir         &IndexEntrySupplier_ja_phonetic_alphanumeric_first_by_consonant_CreateInstance },
320cdf0e10cSrcweir     {   "com.sun.star.i18n.IndexEntrySupplier_ja_phonetic (alphanumeric last) (grouped by syllable)",
321cdf0e10cSrcweir         "com.sun.star.i18n.IndexEntrySupplier_ja_phonetic (alphanumeric last) (grouped by syllable)",
322cdf0e10cSrcweir         &IndexEntrySupplier_ja_phonetic_alphanumeric_last_by_syllable_CreateInstance },
323cdf0e10cSrcweir     {   "com.sun.star.i18n.IndexEntrySupplier_ja_phonetic (alphanumeric last) (grouped by consonant)",
324cdf0e10cSrcweir         "com.sun.star.i18n.IndexEntrySupplier_ja_phonetic (alphanumeric last) (grouped by consonant)",
325cdf0e10cSrcweir         &IndexEntrySupplier_ja_phonetic_alphanumeric_last_by_consonant_CreateInstance },
326cdf0e10cSrcweir     {       "com.sun.star.i18n.IndexEntrySupplier_Unicode",
327cdf0e10cSrcweir         "com.sun.star.i18n.IndexEntrySupplier_Unicode",
328cdf0e10cSrcweir         &IndexEntrySupplier_Unicode_CreateInstance },
329cdf0e10cSrcweir     {   "com.sun.star.i18n.LocaleCalendar",
330cdf0e10cSrcweir         "com.sun.star.i18n.CalendarImpl",
331cdf0e10cSrcweir         &CalendarImpl_CreateInstance },
332cdf0e10cSrcweir     {   "com.sun.star.i18n.Calendar_gregorian",
333cdf0e10cSrcweir         "com.sun.star.i18n.Calendar_gregorian",
334cdf0e10cSrcweir         &Calendar_gregorian_CreateInstance },
335cdf0e10cSrcweir     {   "com.sun.star.i18n.Calendar_gengou",
336cdf0e10cSrcweir         "com.sun.star.i18n.Calendar_gengou",
337cdf0e10cSrcweir         &Calendar_gengou_CreateInstance },
338cdf0e10cSrcweir     {   "com.sun.star.i18n.Calendar_ROC",
339cdf0e10cSrcweir         "com.sun.star.i18n.Calendar_ROC",
340cdf0e10cSrcweir         &Calendar_ROC_CreateInstance },
341cdf0e10cSrcweir     {   "com.sun.star.i18n.Calendar_hanja_yoil",
342cdf0e10cSrcweir         "com.sun.star.i18n.Calendar_hanja_yoil",
343cdf0e10cSrcweir         &Calendar_hanja_CreateInstance },
344cdf0e10cSrcweir     {   "com.sun.star.i18n.Calendar_hanja",
345cdf0e10cSrcweir         "com.sun.star.i18n.Calendar_hanja",
346cdf0e10cSrcweir         &Calendar_hanja_CreateInstance },
347cdf0e10cSrcweir     {   "com.sun.star.i18n.Calendar_hijri",
348cdf0e10cSrcweir         "com.sun.star.i18n.Calendar_hijri",
349cdf0e10cSrcweir         &Calendar_hijri_CreateInstance },
350cdf0e10cSrcweir     {   "com.sun.star.i18n.Calendar_jewish",
351cdf0e10cSrcweir         "com.sun.star.i18n.Calendar_jewish",
352cdf0e10cSrcweir         &Calendar_jewish_CreateInstance },
353cdf0e10cSrcweir     {   "com.sun.star.i18n.Calendar_buddhist",
354cdf0e10cSrcweir         "com.sun.star.i18n.Calendar_buddhist",
355cdf0e10cSrcweir         &Calendar_buddhist_CreateInstance },
356cdf0e10cSrcweir     {   "com.sun.star.i18n.BreakIterator",
357cdf0e10cSrcweir         "com.sun.star.i18n.BreakIterator",
358cdf0e10cSrcweir         &BreakIteratorImpl_CreateInstance },
359cdf0e10cSrcweir     {   "com.sun.star.i18n.BreakIterator_Unicode",
360cdf0e10cSrcweir         "com.sun.star.i18n.BreakIterator_Unicode",
361cdf0e10cSrcweir         &BreakIterator_Unicode_CreateInstance },
362cdf0e10cSrcweir     {   "com.sun.star.i18n.BreakIterator_ja",
363cdf0e10cSrcweir         "com.sun.star.i18n.BreakIterator_ja",
364cdf0e10cSrcweir         &BreakIterator_ja_CreateInstance },
365cdf0e10cSrcweir     {   "com.sun.star.i18n.BreakIterator_zh",
366cdf0e10cSrcweir         "com.sun.star.i18n.BreakIterator_zh",
367cdf0e10cSrcweir         &BreakIterator_zh_CreateInstance },
368cdf0e10cSrcweir     {   "com.sun.star.i18n.BreakIterator_zh_TW",
369cdf0e10cSrcweir         "com.sun.star.i18n.BreakIterator_zh_TW",
370cdf0e10cSrcweir         &BreakIterator_zh_TW_CreateInstance },
371cdf0e10cSrcweir     {   "com.sun.star.i18n.BreakIterator_ko",
372cdf0e10cSrcweir         "com.sun.star.i18n.BreakIterator_ko",
373cdf0e10cSrcweir         &BreakIterator_ko_CreateInstance },
374cdf0e10cSrcweir     {   "com.sun.star.i18n.BreakIterator_th",
375cdf0e10cSrcweir         "com.sun.star.i18n.BreakIterator_th",
376cdf0e10cSrcweir         &BreakIterator_th_CreateInstance },
377cdf0e10cSrcweir     {   "com.sun.star.i18n.Collator",
378cdf0e10cSrcweir         "com.sun.star.i18n.Collator",
379cdf0e10cSrcweir         &CollatorImpl_CreateInstance },
380cdf0e10cSrcweir     {   "com.sun.star.i18n.ChapterCollator",
381cdf0e10cSrcweir         "com.sun.star.i18n.ChapterCollator",
382cdf0e10cSrcweir         &ChapterCollator_CreateInstance },
383cdf0e10cSrcweir     {   "com.sun.star.i18n.Collator_Unicode",
384cdf0e10cSrcweir         "com.sun.star.i18n.Collator_Unicode",
385cdf0e10cSrcweir         &Collator_Unicode_CreateInstance },
386cdf0e10cSrcweir     {   "com.sun.star.i18n.ScriptTypeDetector",
387cdf0e10cSrcweir         "com.sun.star.i18n.ScriptTypeDetector",
388cdf0e10cSrcweir         &ScriptTypeDetector_CreateInstance },
389cdf0e10cSrcweir     {   "com.sun.star.i18n.CharacterClassification",
390cdf0e10cSrcweir         "com.sun.star.i18n.CharacterClassification",
391cdf0e10cSrcweir         &CharacterClassificationImpl_CreateInstance },
392cdf0e10cSrcweir     {   "com.sun.star.i18n.CharacterClassification_Unicode",
393cdf0e10cSrcweir         "com.sun.star.i18n.CharacterClassification_Unicode",
394cdf0e10cSrcweir         &cclass_Unicode_CreateInstance },
395cdf0e10cSrcweir     {   "com.sun.star.i18n.InputSequenceChecker",
396cdf0e10cSrcweir         "com.sun.star.i18n.InputSequenceChecker",
397cdf0e10cSrcweir         &InputSequenceCheckerImpl_CreateInstance },
398cdf0e10cSrcweir     {   "com.sun.star.i18n.InputSequenceChecker_th",
399cdf0e10cSrcweir         "com.sun.star.i18n.InputSequenceChecker_th",
400cdf0e10cSrcweir         &InputSequenceChecker_th_CreateInstance },
401cdf0e10cSrcweir     {   "com.sun.star.i18n.InputSequenceChecker_hi",
402cdf0e10cSrcweir         "com.sun.star.i18n.InputSequenceChecker_hi",
403cdf0e10cSrcweir         &InputSequenceChecker_hi_CreateInstance },
404cdf0e10cSrcweir     {   "com.sun.star.i18n.TextConversion",
405cdf0e10cSrcweir         "com.sun.star.i18n.TextConversion",
406cdf0e10cSrcweir         &TextConversionImpl_CreateInstance },
407cdf0e10cSrcweir     {   "com.sun.star.i18n.TextConversion_ko",
408cdf0e10cSrcweir         "com.sun.star.i18n.TextConversion_ko",
409cdf0e10cSrcweir         &TextConversion_ko_CreateInstance },
410cdf0e10cSrcweir     {   "com.sun.star.i18n.TextConversion_zh",
411cdf0e10cSrcweir         "com.sun.star.i18n.TextConversion_zh",
412cdf0e10cSrcweir         &TextConversion_zh_CreateInstance },
413cdf0e10cSrcweir     {   TRLT_SERVICELNAME,
414cdf0e10cSrcweir         TRLT_IMPLNAME ,
415cdf0e10cSrcweir         &TransliterationImpl_CreateInstance },
416cdf0e10cSrcweir     {   TRLT_SERVICELNAME_L10N,
417cdf0e10cSrcweir         TRLT_IMPLNAME_PREFIX  "UPPERCASE_LOWERCASE",
418cdf0e10cSrcweir         &Transliteration_u2l_CreateInstance },
419cdf0e10cSrcweir     {   TRLT_SERVICELNAME_L10N,
420cdf0e10cSrcweir         TRLT_IMPLNAME_PREFIX  "LOWERCASE_UPPERCASE",
421cdf0e10cSrcweir         &Transliteration_l2u_CreateInstance },
422cdf0e10cSrcweir     {   TRLT_SERVICELNAME_L10N,
423cdf0e10cSrcweir         TRLT_IMPLNAME_PREFIX  "SENTENCE_CASE",
424cdf0e10cSrcweir         &Transliteration_sentencecase_CreateInstance },
425cdf0e10cSrcweir     {   TRLT_SERVICELNAME_L10N,
426cdf0e10cSrcweir         TRLT_IMPLNAME_PREFIX  "TITLE_CASE",
427cdf0e10cSrcweir         &Transliteration_titlecase_CreateInstance },
428cdf0e10cSrcweir     {   TRLT_SERVICELNAME_L10N,
429cdf0e10cSrcweir         TRLT_IMPLNAME_PREFIX  "TOGGLE_CASE",
430cdf0e10cSrcweir         &Transliteration_togglecase_CreateInstance },
431cdf0e10cSrcweir     {   TRLT_SERVICELNAME_L10N,
432cdf0e10cSrcweir         TRLT_IMPLNAME_PREFIX  "IGNORE_CASE",
433cdf0e10cSrcweir         &Transliteration_caseignore_CreateInstance },
434cdf0e10cSrcweir     {   TRLT_SERVICELNAME_L10N,
435cdf0e10cSrcweir         TRLT_IMPLNAME_PREFIX  "HIRAGANA_KATAKANA",
436cdf0e10cSrcweir         &hiraganaToKatakana_CreateInstance },
437cdf0e10cSrcweir     {   TRLT_SERVICELNAME_L10N,
438cdf0e10cSrcweir         TRLT_IMPLNAME_PREFIX  "KATAKANA_HIRAGANA",
439cdf0e10cSrcweir         &katakanaToHiragana_CreateInstance },
440cdf0e10cSrcweir     {   TRLT_SERVICELNAME_L10N,
441cdf0e10cSrcweir         TRLT_IMPLNAME_PREFIX  "IGNORE_KANA",
442cdf0e10cSrcweir         &ignoreKana_CreateInstance },
443cdf0e10cSrcweir     {   TRLT_SERVICELNAME_L10N,
444cdf0e10cSrcweir         TRLT_IMPLNAME_PREFIX  "FULLWIDTH_HALFWIDTH",
445cdf0e10cSrcweir         &fullwidthToHalfwidth_CreateInstance },
446cdf0e10cSrcweir     {   TRLT_SERVICELNAME_L10N,
447cdf0e10cSrcweir         TRLT_IMPLNAME_PREFIX  "HALFWIDTH_FULLWIDTH",
448cdf0e10cSrcweir         &halfwidthToFullwidth_CreateInstance },
449cdf0e10cSrcweir     {   TRLT_SERVICELNAME_L10N,
450cdf0e10cSrcweir         TRLT_IMPLNAME_PREFIX  "IGNORE_WIDTH",
451cdf0e10cSrcweir         &ignoreWidth_CreateInstance },
452cdf0e10cSrcweir     IMPL_TRANSLITERATION_ITEM (smallToLarge_ja_JP),
453cdf0e10cSrcweir     IMPL_TRANSLITERATION_ITEM (largeToSmall_ja_JP),
454cdf0e10cSrcweir     IMPL_TRANSLITERATION_ITEM (ignoreTraditionalKanji_ja_JP),
455cdf0e10cSrcweir     IMPL_TRANSLITERATION_ITEM (ignoreTraditionalKana_ja_JP),
456cdf0e10cSrcweir     IMPL_TRANSLITERATION_ITEM (ignoreKana),
457cdf0e10cSrcweir     IMPL_TRANSLITERATION_ITEM (ignoreMinusSign_ja_JP),
458cdf0e10cSrcweir     IMPL_TRANSLITERATION_ITEM (ignoreIterationMark_ja_JP),
459cdf0e10cSrcweir     IMPL_TRANSLITERATION_ITEM (ignoreSeparator_ja_JP),
460cdf0e10cSrcweir     IMPL_TRANSLITERATION_ITEM (ignoreZiZu_ja_JP),
461cdf0e10cSrcweir     IMPL_TRANSLITERATION_ITEM (ignoreBaFa_ja_JP),
462cdf0e10cSrcweir     IMPL_TRANSLITERATION_ITEM (ignoreTiJi_ja_JP),
463cdf0e10cSrcweir     IMPL_TRANSLITERATION_ITEM (ignoreHyuByu_ja_JP),
464cdf0e10cSrcweir     IMPL_TRANSLITERATION_ITEM (ignoreSeZe_ja_JP),
465cdf0e10cSrcweir     IMPL_TRANSLITERATION_ITEM (ignoreIandEfollowedByYa_ja_JP),
466cdf0e10cSrcweir     IMPL_TRANSLITERATION_ITEM (ignoreKiKuFollowedBySa_ja_JP),
467cdf0e10cSrcweir     IMPL_TRANSLITERATION_ITEM (ignoreSize_ja_JP),
468cdf0e10cSrcweir     IMPL_TRANSLITERATION_ITEM (ignoreProlongedSoundMark_ja_JP),
469cdf0e10cSrcweir     IMPL_TRANSLITERATION_ITEM (ignoreMiddleDot_ja_JP),
470cdf0e10cSrcweir     IMPL_TRANSLITERATION_ITEM (ignoreSpace_ja_JP),
471cdf0e10cSrcweir     IMPL_TRANSLITERATION_ITEM (TextToPinyin_zh_CN),
472cdf0e10cSrcweir     IMPL_TRANSLITERATION_ITEM (TextToChuyin_zh_TW),
473cdf0e10cSrcweir 
474cdf0e10cSrcweir     IMPL_TRANSLITERATION_ITEM (NumToCharUpper_zh_CN),
475cdf0e10cSrcweir     IMPL_TRANSLITERATION_ITEM (NumToCharLower_zh_CN),
476cdf0e10cSrcweir     IMPL_TRANSLITERATION_ITEM (NumToCharUpper_zh_TW),
477cdf0e10cSrcweir     IMPL_TRANSLITERATION_ITEM (NumToCharLower_zh_TW),
478cdf0e10cSrcweir     IMPL_TRANSLITERATION_ITEM (NumToCharHalfwidth),
479cdf0e10cSrcweir     IMPL_TRANSLITERATION_ITEM (NumToCharFullwidth),
480cdf0e10cSrcweir     IMPL_TRANSLITERATION_ITEM (NumToCharKanjiShort_ja_JP),
481cdf0e10cSrcweir     IMPL_TRANSLITERATION_ITEM (NumToCharKanjiTraditional_ja_JP),
482cdf0e10cSrcweir     IMPL_TRANSLITERATION_ITEM (NumToCharLower_ko),
483cdf0e10cSrcweir     IMPL_TRANSLITERATION_ITEM (NumToCharUpper_ko),
484cdf0e10cSrcweir     IMPL_TRANSLITERATION_ITEM (NumToCharHangul_ko),
485cdf0e10cSrcweir     IMPL_TRANSLITERATION_ITEM (NumToCharIndic_ar),
486cdf0e10cSrcweir     IMPL_TRANSLITERATION_ITEM (NumToCharEastIndic_ar),
487cdf0e10cSrcweir     IMPL_TRANSLITERATION_ITEM (NumToCharIndic_hi),
488cdf0e10cSrcweir     IMPL_TRANSLITERATION_ITEM (NumToChar_th),
489cdf0e10cSrcweir 
490cdf0e10cSrcweir     IMPL_TRANSLITERATION_ITEM (CharToNumUpper_zh_CN),
491cdf0e10cSrcweir     IMPL_TRANSLITERATION_ITEM (CharToNumLower_zh_CN),
492cdf0e10cSrcweir     IMPL_TRANSLITERATION_ITEM (CharToNumUpper_zh_TW),
493cdf0e10cSrcweir     IMPL_TRANSLITERATION_ITEM (CharToNumLower_zh_TW),
494cdf0e10cSrcweir     IMPL_TRANSLITERATION_ITEM (CharToNumFullwidth),
495cdf0e10cSrcweir     IMPL_TRANSLITERATION_ITEM (CharToNumKanjiShort_ja_JP),
496cdf0e10cSrcweir     IMPL_TRANSLITERATION_ITEM (CharToNumKanjiTraditional_ja_JP),
497cdf0e10cSrcweir     IMPL_TRANSLITERATION_ITEM (CharToNumLower_ko),
498cdf0e10cSrcweir     IMPL_TRANSLITERATION_ITEM (CharToNumUpper_ko),
499cdf0e10cSrcweir     IMPL_TRANSLITERATION_ITEM (CharToNumHangul_ko),
500cdf0e10cSrcweir     IMPL_TRANSLITERATION_ITEM (CharToNumIndic_ar),
501cdf0e10cSrcweir     IMPL_TRANSLITERATION_ITEM (CharToNumEastIndic_ar),
502cdf0e10cSrcweir     IMPL_TRANSLITERATION_ITEM (CharToNumIndic_hi),
503cdf0e10cSrcweir     IMPL_TRANSLITERATION_ITEM (CharToNum_th),
504cdf0e10cSrcweir 
505cdf0e10cSrcweir     IMPL_TRANSLITERATION_ITEM (NumToTextUpper_zh_CN),
506cdf0e10cSrcweir     IMPL_TRANSLITERATION_ITEM (NumToTextLower_zh_CN),
507cdf0e10cSrcweir     IMPL_TRANSLITERATION_ITEM (NumToTextUpper_zh_TW),
508cdf0e10cSrcweir     IMPL_TRANSLITERATION_ITEM (NumToTextLower_zh_TW),
509cdf0e10cSrcweir     IMPL_TRANSLITERATION_ITEM (NumToTextFullwidth_zh_CN),
510cdf0e10cSrcweir     IMPL_TRANSLITERATION_ITEM (NumToTextFullwidth_zh_TW),
511cdf0e10cSrcweir     IMPL_TRANSLITERATION_ITEM (NumToTextFullwidth_ja_JP),
512cdf0e10cSrcweir     IMPL_TRANSLITERATION_ITEM (NumToTextFullwidth_ko),
513cdf0e10cSrcweir     IMPL_TRANSLITERATION_ITEM (NumToTextKanjiLongModern_ja_JP),
514cdf0e10cSrcweir     IMPL_TRANSLITERATION_ITEM (NumToTextKanjiLongTraditional_ja_JP),
515cdf0e10cSrcweir     IMPL_TRANSLITERATION_ITEM (NumToTextKanjiShortModern_ja_JP),
516cdf0e10cSrcweir     IMPL_TRANSLITERATION_ITEM (NumToTextKanjiShortTraditional_ja_JP),
517cdf0e10cSrcweir     IMPL_TRANSLITERATION_ITEM (NumToTextInformalHangul_ko),
518cdf0e10cSrcweir     IMPL_TRANSLITERATION_ITEM (NumToTextInformalLower_ko),
519cdf0e10cSrcweir     IMPL_TRANSLITERATION_ITEM (NumToTextInformalUpper_ko),
520cdf0e10cSrcweir     IMPL_TRANSLITERATION_ITEM (NumToTextFormalHangul_ko),
521cdf0e10cSrcweir     IMPL_TRANSLITERATION_ITEM (NumToTextFormalLower_ko),
522cdf0e10cSrcweir     IMPL_TRANSLITERATION_ITEM (NumToTextFormalUpper_ko),
523cdf0e10cSrcweir 
524cdf0e10cSrcweir     IMPL_TRANSLITERATION_ITEM (TextToNumUpper_zh_CN),
525cdf0e10cSrcweir     IMPL_TRANSLITERATION_ITEM (TextToNumLower_zh_CN),
526cdf0e10cSrcweir     IMPL_TRANSLITERATION_ITEM (TextToNumUpper_zh_TW),
527cdf0e10cSrcweir     IMPL_TRANSLITERATION_ITEM (TextToNumLower_zh_TW),
528cdf0e10cSrcweir     IMPL_TRANSLITERATION_ITEM (TextToNumKanjiLongModern_ja_JP),
529cdf0e10cSrcweir     IMPL_TRANSLITERATION_ITEM (TextToNumKanjiLongTraditional_ja_JP),
530cdf0e10cSrcweir     IMPL_TRANSLITERATION_ITEM (TextToNumInformalHangul_ko),
531cdf0e10cSrcweir     IMPL_TRANSLITERATION_ITEM (TextToNumInformalLower_ko),
532cdf0e10cSrcweir     IMPL_TRANSLITERATION_ITEM (TextToNumInformalUpper_ko),
533cdf0e10cSrcweir     IMPL_TRANSLITERATION_ITEM (TextToNumFormalHangul_ko),
534cdf0e10cSrcweir     IMPL_TRANSLITERATION_ITEM (TextToNumFormalLower_ko),
535cdf0e10cSrcweir     IMPL_TRANSLITERATION_ITEM (TextToNumFormalUpper_ko),
536cdf0e10cSrcweir 
537cdf0e10cSrcweir     IMPL_TRANSLITERATION_ITEM (NumToTextDate_zh),
538cdf0e10cSrcweir     IMPL_TRANSLITERATION_ITEM (NumToTextAIUFullWidth_ja_JP),
539cdf0e10cSrcweir     IMPL_TRANSLITERATION_ITEM (NumToTextAIUHalfWidth_ja_JP),
540cdf0e10cSrcweir     IMPL_TRANSLITERATION_ITEM (NumToTextIROHAFullWidth_ja_JP),
541cdf0e10cSrcweir     IMPL_TRANSLITERATION_ITEM (NumToTextIROHAHalfWidth_ja_JP),
542cdf0e10cSrcweir     IMPL_TRANSLITERATION_ITEM (NumToTextCircledNumber),
543cdf0e10cSrcweir     IMPL_TRANSLITERATION_ITEM (NumToTextHangulJamo_ko),
544cdf0e10cSrcweir     IMPL_TRANSLITERATION_ITEM (NumToTextHangulSyllable_ko),
545cdf0e10cSrcweir     IMPL_TRANSLITERATION_ITEM (NumToTextHangulCircledJamo_ko),
546cdf0e10cSrcweir     IMPL_TRANSLITERATION_ITEM (NumToTextHangulCircledSyllable_ko),
547cdf0e10cSrcweir     IMPL_TRANSLITERATION_ITEM (NumToTextTianGan_zh),
548cdf0e10cSrcweir     IMPL_TRANSLITERATION_ITEM (NumToTextDiZi_zh),
549cdf0e10cSrcweir 
550cdf0e10cSrcweir     {   "com.sun.star.i18n.OrdinalSuffix",
551cdf0e10cSrcweir         "com.sun.star.i18n.OrdinalSuffix",
552cdf0e10cSrcweir         & OrdinalSuffix_CreateInstance },
553cdf0e10cSrcweir 
554cdf0e10cSrcweir     {   TRLT_SERVICELNAME_L10N,
555cdf0e10cSrcweir         TRLT_IMPLNAME_PREFIX  "FULLWIDTHKATAKANA_HALFWIDTHKATAKANA",
556cdf0e10cSrcweir         &fullwidthKatakanaToHalfwidthKatakana_CreateInstance },
557cdf0e10cSrcweir     {   TRLT_SERVICELNAME_L10N,
558cdf0e10cSrcweir         TRLT_IMPLNAME_PREFIX  "HALFWIDTHKATAKANA_FULLWIDTHKATAKANA",
559cdf0e10cSrcweir         &halfwidthKatakanaToFullwidthKatakana_CreateInstance },
560cdf0e10cSrcweir     {   TRLT_SERVICELNAME_L10N,
561cdf0e10cSrcweir         TRLT_IMPLNAME_PREFIX  "FULLWIDTH_HALFWIDTH_LIKE_ASC",
562cdf0e10cSrcweir         &fullwidthToHalfwidthLikeASC_CreateInstance },
563cdf0e10cSrcweir     {   TRLT_SERVICELNAME_L10N,
564cdf0e10cSrcweir         TRLT_IMPLNAME_PREFIX  "HALFWIDTH_FULLWIDTH_LIKE_JIS",
565cdf0e10cSrcweir         &halfwidthToFullwidthLikeJIS_CreateInstance },
566cdf0e10cSrcweir // add here new services !!
567cdf0e10cSrcweir     { 0, 0, 0 }
568cdf0e10cSrcweir };
569cdf0e10cSrcweir 
570cdf0e10cSrcweir 
571cdf0e10cSrcweir extern "C"
572cdf0e10cSrcweir {
573cdf0e10cSrcweir 
component_getImplementationEnvironment(const sal_Char ** ppEnvTypeName,uno_Environment **)574cdf0e10cSrcweir void SAL_CALL component_getImplementationEnvironment( const sal_Char** ppEnvTypeName, uno_Environment** /*ppEnv*/ )
575cdf0e10cSrcweir {
576cdf0e10cSrcweir     *ppEnvTypeName = CPPU_CURRENT_LANGUAGE_BINDING_NAME;
577cdf0e10cSrcweir }
578cdf0e10cSrcweir 
component_getFactory(const sal_Char * sImplementationName,void * _pServiceManager,void *)579cdf0e10cSrcweir void* SAL_CALL component_getFactory( const sal_Char* sImplementationName, void* _pServiceManager, void* /*_pRegistryKey*/ )
580cdf0e10cSrcweir {
581cdf0e10cSrcweir     void* pRet = NULL;
582cdf0e10cSrcweir 
583cdf0e10cSrcweir     ::com::sun::star::lang::XMultiServiceFactory* pServiceManager =
584cdf0e10cSrcweir         reinterpret_cast< ::com::sun::star::lang::XMultiServiceFactory* >
585cdf0e10cSrcweir             ( _pServiceManager );
586cdf0e10cSrcweir     ::com::sun::star::uno::Reference<
587cdf0e10cSrcweir             ::com::sun::star::lang::XSingleServiceFactory > xFactory;
588cdf0e10cSrcweir 
589cdf0e10cSrcweir     for( const InstancesArray* pArr = aInstances; pArr->pServiceNm; ++pArr )
590cdf0e10cSrcweir     {
591cdf0e10cSrcweir         if( 0 == rtl_str_compare( sImplementationName, pArr->pImplementationNm ) )
592cdf0e10cSrcweir         {
593cdf0e10cSrcweir             ::com::sun::star::uno::Sequence< ::rtl::OUString > aServiceNames(1);
594cdf0e10cSrcweir             aServiceNames.getArray()[0] =
595cdf0e10cSrcweir                 ::rtl::OUString::createFromAscii( pArr->pServiceNm );
596cdf0e10cSrcweir             xFactory = ::cppu::createSingleFactory(
597cdf0e10cSrcweir                     pServiceManager, aServiceNames.getArray()[0],
598cdf0e10cSrcweir                     *pArr->pFn, aServiceNames );
599cdf0e10cSrcweir             break;
600cdf0e10cSrcweir         }
601cdf0e10cSrcweir     }
602cdf0e10cSrcweir 
603cdf0e10cSrcweir     if ( xFactory.is() )
604cdf0e10cSrcweir     {
605cdf0e10cSrcweir         xFactory->acquire();
606cdf0e10cSrcweir         pRet = xFactory.get();
607cdf0e10cSrcweir     }
608cdf0e10cSrcweir 
609cdf0e10cSrcweir     return pRet;
610cdf0e10cSrcweir }
611cdf0e10cSrcweir 
612cdf0e10cSrcweir }   // "C"
613