summaryrefslogtreecommitdiff
path: root/i18npool
diff options
context:
space:
mode:
authorRüdiger Timm <rt@openoffice.org>2007-01-25 08:36:11 +0000
committerRüdiger Timm <rt@openoffice.org>2007-01-25 08:36:11 +0000
commita1e39c722c3d6cf2e1ee28c0e65a6e1c94d2ff90 (patch)
tree81ecf3156c157ad3cc814e382b08233b01400fee /i18npool
parentdcb34523aa4094eb7c9bc8829d61740e07cd9f0e (diff)
INTEGRATION: CWS i18n28 (1.46.22); FILE MERGED
2006/12/06 05:52:39 khong 1.46.22.1: #i64400# add an optional breakiterator entry in localedata
Diffstat (limited to 'i18npool')
-rw-r--r--i18npool/source/localedata/localedata.cxx28
1 files changed, 26 insertions, 2 deletions
diff --git a/i18npool/source/localedata/localedata.cxx b/i18npool/source/localedata/localedata.cxx
index 2211f5ff6a34..6de9ca2a3fe9 100644
--- a/i18npool/source/localedata/localedata.cxx
+++ b/i18npool/source/localedata/localedata.cxx
@@ -4,9 +4,9 @@
*
* $RCSfile: localedata.cxx,v $
*
- * $Revision: 1.46 $
+ * $Revision: 1.47 $
*
- * last change: $Author: ihi $ $Date: 2006-10-18 11:32:13 $
+ * last change: $Author: rt $ $Date: 2007-01-25 09:36:11 $
*
* The Contents of this file are made available subject to
* the terms of GNU Lesser General Public License Version 2.1.
@@ -796,6 +796,30 @@ LocaleData::getForbiddenCharacters( const Locale& rLocale ) throw(RuntimeExcepti
Sequence< OUString > SAL_CALL
+LocaleData::getBreakIteratorRules( const Locale& rLocale ) throw(RuntimeException)
+{
+ sal_Int16 LCBreakIteratorRuleCount = 0;
+ sal_Unicode **LCBreakIteratorRulesArray = NULL;
+
+ MyFunc_Type func = (MyFunc_Type) getFunctionSymbol( rLocale, "getBreakIteratorRules" );
+
+ if ( func ) {
+ LCBreakIteratorRulesArray = func(LCBreakIteratorRuleCount);
+ Sequence< OUString > seq(LCBreakIteratorRuleCount);
+ for(int i = 0; i < (LCBreakIteratorRuleCount); i++) {
+ OUString elem(LCBreakIteratorRulesArray[i]);
+ seq[i] = elem;
+ }
+ return seq;
+ }
+ else {
+ Sequence< OUString > seq1(0);
+ return seq1;
+ }
+}
+
+
+Sequence< OUString > SAL_CALL
LocaleData::getReservedWord( const Locale& rLocale ) throw(RuntimeException)
{
sal_Int16 LCReservedWordsCount = 0;