summaryrefslogtreecommitdiff
path: root/i18npool
diff options
context:
space:
mode:
authorKurt Zenker <kz@openoffice.org>2004-07-30 13:38:05 +0000
committerKurt Zenker <kz@openoffice.org>2004-07-30 13:38:05 +0000
commit9ea4c16a699ac7cf5e255a19653651ac993f022b (patch)
tree58946375519f8dc8cf7a680b4ca3df0056f01442 /i18npool
parent2887ecb5554eee699e1dce4ffbc2dfcf71a54a41 (diff)
INTEGRATION: CWS i18n13 (1.9.92); FILE MERGED
2004/06/11 19:23:04 khong 1.9.92.1: #112772# Japanese word breakiterator is not correct
Diffstat (limited to 'i18npool')
-rw-r--r--i18npool/source/breakiterator/breakiterator_cjk.cxx13
1 files changed, 7 insertions, 6 deletions
diff --git a/i18npool/source/breakiterator/breakiterator_cjk.cxx b/i18npool/source/breakiterator/breakiterator_cjk.cxx
index a9b388844de0..88cfc4e1a5c8 100644
--- a/i18npool/source/breakiterator/breakiterator_cjk.cxx
+++ b/i18npool/source/breakiterator/breakiterator_cjk.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: breakiterator_cjk.cxx,v $
*
- * $Revision: 1.9 $
+ * $Revision: 1.10 $
*
- * last change: $Author: rt $ $Date: 2003-06-12 07:33:55 $
+ * last change: $Author: kz $ $Date: 2004-07-30 14:38:05 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -127,7 +127,7 @@ LineBreakResults SAL_CALL BreakIterator_CJK::getLineBreak(
const LineBreakHyphenationOptions& hOptions,
const LineBreakUserOptions& bOptions ) throw(RuntimeException)
{
- LineBreakResults result;
+ LineBreakResults lbr;
if (bOptions.allowPunctuationOutsideMargin &&
bOptions.forbiddenBeginCharacters.indexOf(Text[nStartPos]) != -1 &&
@@ -140,9 +140,9 @@ LineBreakResults SAL_CALL BreakIterator_CJK::getLineBreak(
nStartPos--;
}
- result.breakIndex = nStartPos;
- result.breakType = BreakType::WORDBOUNDARY;
- return result;
+ lbr.breakIndex = nStartPos;
+ lbr.breakType = BreakType::WORDBOUNDARY;
+ return lbr;
}
// ----------------------------------------------------
// class BreakIterator_zh
@@ -164,6 +164,7 @@ BreakIterator_zh::~BreakIterator_zh()
BreakIterator_ja::BreakIterator_ja()
{
dict = new xdictionary("ja");
+ dict->setJapaneseWordBreak();
cBreakIterator = "com.sun.star.i18n.BreakIterator_ja";
}