summaryrefslogtreecommitdiff
path: root/i18npool/source/indexentry/indexentrysupplier_asian.cxx
diff options
context:
space:
mode:
authorKarl Hong <khong@openoffice.org>2002-05-31 03:53:29 +0000
committerKarl Hong <khong@openoffice.org>2002-05-31 03:53:29 +0000
commit7797f0d6f9a98cc9fa5fd27b1958c422dcdf6b8b (patch)
tree18ca3d0b6768171a967f8905207ae07b0a833655 /i18npool/source/indexentry/indexentrysupplier_asian.cxx
parent41f31047333814587bc05bbc089e99cb4c5dbdbc (diff)
#95565#Update Japanese phonetic indexentrysupplier
Diffstat (limited to 'i18npool/source/indexentry/indexentrysupplier_asian.cxx')
-rw-r--r--i18npool/source/indexentry/indexentrysupplier_asian.cxx14
1 files changed, 12 insertions, 2 deletions
diff --git a/i18npool/source/indexentry/indexentrysupplier_asian.cxx b/i18npool/source/indexentry/indexentrysupplier_asian.cxx
index 7f6e57eee7b4..45edb38f1cbd 100644
--- a/i18npool/source/indexentry/indexentrysupplier_asian.cxx
+++ b/i18npool/source/indexentry/indexentrysupplier_asian.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: indexentrysupplier_asian.cxx,v $
*
- * $Revision: 1.1 $
+ * $Revision: 1.2 $
*
- * last change: $Author: er $ $Date: 2002-03-28 00:31:18 $
+ * last change: $Author: khong $ $Date: 2002-05-31 04:51:19 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -74,4 +74,14 @@ rtl::OUString SAL_CALL IndexEntrySupplier_CJK::getIndexString( const rtl::OUStri
rtl::OUString(&CJK_idxStr[idx2[ first + (ch & 0xff) ]]);
}
+rtl::OUString SAL_CALL IndexEntrySupplier_CJK::getIndexString( const rtl::OUString & rIndexEntry,
+ const sal_uInt16 idx1[], const sal_Unicode idx2[])
+ throw (com::sun::star::uno::RuntimeException) {
+ sal_uInt16 ch = *(rIndexEntry.getStr()), first = idx1[ ch >> 8 ];
+ return first == 0xFFFF ?
+ // using alphanumeric index for non-define stirng
+ rtl::OUString(&idxStr[(ch & 0xFF00) ? 0 : ch], 1) :
+ rtl::OUString(&idx2[ first + (ch & 0xff) ], 1);
+}
+
} } } }