Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
core
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
LibreOffice
core
Commits
2cf78960
Kaydet (Commit)
2cf78960
authored
Tem 27, 2012
tarafından
Caolán McNamara
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
add regression test for #i21290
Change-Id: Ic60f440f8dc8fcfa76a023557e76fcf8e3c52476
üst
fae17f30
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
43 additions
and
17 deletions
+43
-17
test_breakiterator.cxx
i18npool/qa/cppunit/test_breakiterator.cxx
+41
-0
README
i18npool/source/breakiterator/data/README
+2
-17
No files found.
i18npool/qa/cppunit/test_breakiterator.cxx
Dosyayı görüntüle @
2cf78960
...
...
@@ -435,6 +435,47 @@ void TestBreakIterator::testWordBoundaries()
while
(
nPos
++
<
aTest
.
getLength
());
CPPUNIT_ASSERT
(
i
==
SAL_N_ELEMENTS
(
aExpected
));
}
//https://issues.apache.org/ooo/show_bug.cgi?id=21290
for
(
int
j
=
0
;
j
<
2
;
++
j
)
{
switch
(
j
)
{
case
0
:
aLocale
.
Language
=
rtl
::
OUString
(
"en"
);
aLocale
.
Country
=
rtl
::
OUString
(
"US"
);
break
;
case
1
:
aLocale
.
Language
=
rtl
::
OUString
(
"grc"
);
aLocale
.
Country
=
rtl
::
OUString
();
break
;
default
:
CPPUNIT_ASSERT
(
false
);
break
;
}
const
sal_Unicode
TEST
[]
=
{
0x1F0C
,
0x03BD
,
0x03B4
,
0x03C1
,
0x03B1
,
0x0020
,
0x1F00
,
0x03C1
,
0x03BD
,
0x1F7B
,
0x03BC
,
0x03B5
,
0x03BD
,
0x03BF
,
0x03C2
,
0x0020
,
0x1F00
,
0x03BB
,
0x03BB
,
0x0020
,
0x1F24
,
0x03C3
,
0x03B8
,
0x03B9
,
0x03BF
,
0x03BD
};
rtl
::
OUString
aTest
(
TEST
,
SAL_N_ELEMENTS
(
TEST
));
sal_Int32
nPos
=
0
;
sal_Int32
aExpected
[]
=
{
5
,
15
,
19
,
26
};
size_t
i
=
0
;
do
{
CPPUNIT_ASSERT
(
i
<
SAL_N_ELEMENTS
(
aExpected
));
nPos
=
m_xBreak
->
getWordBoundary
(
aTest
,
nPos
,
aLocale
,
i18n
::
WordType
::
DICTIONARY_WORD
,
true
).
endPos
;
CPPUNIT_ASSERT
(
aExpected
[
i
++
]
==
nPos
);
}
while
(
nPos
++
<
aTest
.
getLength
());
CPPUNIT_ASSERT
(
i
==
SAL_N_ELEMENTS
(
aExpected
));
}
}
//See http://qa.openoffice.org/issues/show_bug.cgi?id=111152
...
...
i18npool/source/breakiterator/data/README
Dosyayı görüntüle @
2cf78960
...
...
@@ -602,25 +602,10 @@ Date: Mon Mar 8 16:16:16 2004 +0000
INTEGRATION: CWS i18n09 (1.2.2); FILE MERGED
2003/12/03 02:17:54 khong 1.2.2.1: #110105# Set word boundary between CJK and Latin script type
commit f0939f43315a21f5134cd631773ddae7cfef4493
Author: Jens-Heiner Rechtien <hr@openoffice.org>
Date: Mon Mar 8 16:16:04 2004 +0000
INTEGRATION: CWS i18n09 (1.12.2); FILE MERGED
2003/12/09 19:35:48 khong 1.12.2.4: #112021# fix word boundary problem on begining and end of the string
2003/12/08 23:47:26 khong 1.12.2.3: #i21907# fix isBeginWord and isEndWord problem
2003/11/18 22:55:08 khong 1.12.2.2: #i21290# #i22530# #i14640# extend CTL script support, extend Greek script type
2003/11/18 22:31:59 khong 1.12.2.1: #i21290# #i22530# #i14640# extend CTL script support, extend Greek script type
commit 8311f89a42e6a4b8147191880470da415c9d7483
Author: Rüdiger Timm <rt@openoffice.org>
Date: Tue Jan 20 12:20:28 2004 +0000
INTEGRATION: CWS i18n10 (1.12.4); FILE MERGED
2003/12/17 20:15:43 khong 1.12.4.1: #i22138# #112506# migrate to ICU collator and remove link to tool library
done, regression tests added:
#i21290# extend Greek script type
#i21907# fix isBeginWord and isEndWord problem
#i85411# Apply patch for ZWSP
#i17155# fix line breakiterator rule to make slash and hyphen as part of word when doing line break
#i13451# add '-' as midLetter for Catalan dictionary word breakiterator
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment