View | Details | Raw Unified | Return to issue 51661
Collapse All | Expand All

(-)inc/breakiterator_unicode.hxx (+6 lines)
Lines 131-136 Link Here
131
	sal_Int16 rWordType) throw( com::sun::star::uno::RuntimeException);
131
	sal_Int16 rWordType) throw( com::sun::star::uno::RuntimeException);
132
};
132
};
133
133
134
class BreakIterator_he : public BreakIterator_Unicode
135
{
136
	icu::BreakIterator* SAL_CALL loadICUWordBreakIterator(const rtl::OUString& Text, sal_Int32 nStartPos, const com::sun::star::lang::Locale& rLocale, 
137
	sal_Int16 rWordType) throw( com::sun::star::uno::RuntimeException);
138
};
139
134
class BreakIterator_hu : public BreakIterator_Unicode
140
class BreakIterator_hu : public BreakIterator_Unicode
135
{
141
{
136
	icu::BreakIterator* SAL_CALL loadICUWordBreakIterator(const rtl::OUString& Text, sal_Int32 nStartPos, const com::sun::star::lang::Locale& rLocale, 
142
	icu::BreakIterator* SAL_CALL loadICUWordBreakIterator(const rtl::OUString& Text, sal_Int32 nStartPos, const com::sun::star::lang::Locale& rLocale, 
(-)source/breakiterator/breakiterator_unicode.cxx (+18 lines)
Lines 208-213 Link Here
208
            return BreakIterator_Unicode::loadICUWordBreakIterator(Text, nStartPos, rLocale, rWordType);
208
            return BreakIterator_Unicode::loadICUWordBreakIterator(Text, nStartPos, rLocale, rWordType);
209
}
209
}
210
210
211
icu::BreakIterator* SAL_CALL BreakIterator_he::loadICUWordBreakIterator(const OUString& Text, sal_Int32 nStartPos, const lang::Locale& rLocale,
212
        sal_Int16 rWordType) throw(RuntimeException)
213
{
214
        sal_Bool newBreak = sal_False;
215
        if (rWordType == WordType::DICTIONARY_WORD) {
216
            if (! dictWordBreak) {
217
                newBreak = sal_True;
218
                dictWordBreak = loadICURuleBasedBreakIterator("dict_word_he");
219
            }
220
            if (newBreak || !dictWordText.equals(Text)) {
221
                dictWordText = Text;
222
                dictWordBreak->setText(UnicodeString(Text.getStr(), Text.getLength()));
223
            }
224
            return dictWordBreak;
225
        } else
226
            return BreakIterator_Unicode::loadICUWordBreakIterator(Text, nStartPos, rLocale, rWordType);
227
}
228
211
icu::BreakIterator* SAL_CALL BreakIterator_hu::loadICUWordBreakIterator(const OUString& Text, sal_Int32 nStartPos, const lang::Locale& rLocale,
229
icu::BreakIterator* SAL_CALL BreakIterator_hu::loadICUWordBreakIterator(const OUString& Text, sal_Int32 nStartPos, const lang::Locale& rLocale,
212
        sal_Int16 rWordType) throw(RuntimeException)
230
        sal_Int16 rWordType) throw(RuntimeException)
213
{
231
{
(-)source/registerservices/registerservices.cxx (+4 lines)
Lines 195-200 Link Here
195
IMPL_CREATEINSTANCE_MSF( BreakIteratorImpl )
195
IMPL_CREATEINSTANCE_MSF( BreakIteratorImpl )
196
IMPL_CREATEINSTANCE( BreakIterator_Unicode )
196
IMPL_CREATEINSTANCE( BreakIterator_Unicode )
197
IMPL_CREATEINSTANCE( BreakIterator_ca )
197
IMPL_CREATEINSTANCE( BreakIterator_ca )
198
IMPL_CREATEINSTANCE( BreakIterator_he )
198
IMPL_CREATEINSTANCE( BreakIterator_hu )
199
IMPL_CREATEINSTANCE( BreakIterator_hu )
199
IMPL_CREATEINSTANCE( BreakIterator_ja )
200
IMPL_CREATEINSTANCE( BreakIterator_ja )
200
IMPL_CREATEINSTANCE( BreakIterator_zh )
201
IMPL_CREATEINSTANCE( BreakIterator_zh )
Lines 438-443 Link Here
438
    {   "com.sun.star.i18n.BreakIterator_ca",
439
    {   "com.sun.star.i18n.BreakIterator_ca",
439
        "com.sun.star.i18n.BreakIterator_ca",
440
        "com.sun.star.i18n.BreakIterator_ca",
440
        &BreakIterator_ca_CreateInstance },
441
        &BreakIterator_ca_CreateInstance },
442
    {   "com.sun.star.i18n.BreakIterator_he",
443
        "com.sun.star.i18n.BreakIterator_he",
444
        &BreakIterator_he_CreateInstance },
441
    {   "com.sun.star.i18n.BreakIterator_hu",
445
    {   "com.sun.star.i18n.BreakIterator_hu",
442
        "com.sun.star.i18n.BreakIterator_hu",
446
        "com.sun.star.i18n.BreakIterator_hu",
443
        &BreakIterator_hu_CreateInstance },
447
        &BreakIterator_hu_CreateInstance },

Return to issue 51661