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
2c7b6aa7
Kaydet (Commit)
2c7b6aa7
authored
May 31, 2013
tarafından
Luboš Luňák
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
rewrite OUString test to not trigger literalalternative plugin warnings
Change-Id: Ic359209c44171ab42fa21cd300b433facd3c5ea6
üst
6d114cda
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
8 deletions
+10
-8
test_oustring_compare.cxx
sal/qa/rtl/strings/test_oustring_compare.cxx
+10
-8
No files found.
sal/qa/rtl/strings/test_oustring_compare.cxx
Dosyayı görüntüle @
2c7b6aa7
...
...
@@ -44,20 +44,22 @@ CPPUNIT_TEST_SUITE_REGISTRATION(test::oustring::Compare);
void
test
::
oustring
::
Compare
::
equalsIgnoreAsciiCaseAscii
()
{
CPPUNIT_ASSERT
(
!
rtl
::
OUString
().
equalsIgnoreAsciiCaseAscii
(
"abc"
));
CPPUNIT_ASSERT
(
!
rtl
::
OUString
().
equalsIgnoreAsciiCaseAsciiL
(
RTL_CONSTASCII_STRINGPARAM
(
"abc"
)));
const
char
*
const
abc
=
"abc"
;
const
char
*
const
abcd
=
"abcd"
;
const
char
*
const
empty
=
""
;
CPPUNIT_ASSERT
(
!
rtl
::
OUString
().
equalsIgnoreAsciiCaseAscii
(
abc
));
CPPUNIT_ASSERT
(
!
rtl
::
OUString
().
equalsIgnoreAsciiCaseAsciiL
(
abc
,
3
));
CPPUNIT_ASSERT
(
!
rtl
::
OUString
(
"abc"
).
equalsIgnoreAsciiCaseAscii
(
""
));
equalsIgnoreAsciiCaseAscii
(
empty
));
CPPUNIT_ASSERT
(
!
rtl
::
OUString
(
"abc"
).
equalsIgnoreAsciiCaseAsciiL
(
RTL_CONSTASCII_STRINGPARAM
(
""
)
));
equalsIgnoreAsciiCaseAsciiL
(
empty
,
0
));
CPPUNIT_ASSERT
(
rtl
::
OUString
(
"abc"
).
equalsIgnoreAsciiCaseAscii
(
"abc"
));
equalsIgnoreAsciiCaseAscii
(
abc
));
CPPUNIT_ASSERT
(
!
rtl
::
OUString
(
"abcd"
).
equalsIgnoreAsciiCaseAscii
(
"abc"
));
equalsIgnoreAsciiCaseAscii
(
abc
));
CPPUNIT_ASSERT
(
!
rtl
::
OUString
(
"abc"
).
equalsIgnoreAsciiCaseAscii
(
"abcd"
));
equalsIgnoreAsciiCaseAscii
(
abcd
));
}
void
test
::
oustring
::
Compare
::
compareToIgnoreAsciiCase
()
...
...
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