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
47c6eef7
Kaydet (Commit)
47c6eef7
authored
Eki 28, 2013
tarafından
Caolán McNamara
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Related: fdo#69641 convert OSL_ASSERT into assert
Change-Id: I63c32289c7ac6a428c8c50e49650fbac98c8c5e3
üst
95e2a96f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
ustring.cxx
sal/rtl/ustring.cxx
+6
-6
No files found.
sal/rtl/ustring.cxx
Dosyayı görüntüle @
47c6eef7
...
...
@@ -980,11 +980,11 @@ sal_uInt32 SAL_CALL rtl_uString_iterateCodePoints(
sal_Int32
n
;
sal_Unicode
cu
;
sal_uInt32
cp
;
OSL_ASSERT
(
string
!=
NULL
&&
indexUtf16
!=
NULL
);
assert
(
string
!=
NULL
&&
indexUtf16
!=
NULL
);
n
=
*
indexUtf16
;
OSL_ASSERT
(
n
>=
0
&&
n
<=
string
->
length
);
assert
(
n
>=
0
&&
n
<=
string
->
length
);
while
(
incrementCodePoints
<
0
)
{
OSL_ASSERT
(
n
>
0
);
assert
(
n
>
0
);
cu
=
string
->
buffer
[
--
n
];
if
(
SAL_RTL_IS_LOW_SURROGATE
(
cu
)
&&
n
!=
0
&&
SAL_RTL_IS_HIGH_SURROGATE
(
string
->
buffer
[
n
-
1
]))
...
...
@@ -993,7 +993,7 @@ sal_uInt32 SAL_CALL rtl_uString_iterateCodePoints(
}
++
incrementCodePoints
;
}
OSL_ASSERT
(
n
>=
0
&&
n
<
string
->
length
);
assert
(
n
>=
0
&&
n
<
string
->
length
);
cu
=
string
->
buffer
[
n
];
if
(
SAL_RTL_IS_HIGH_SURROGATE
(
cu
)
&&
string
->
length
-
n
>=
2
&&
SAL_RTL_IS_LOW_SURROGATE
(
string
->
buffer
[
n
+
1
]))
...
...
@@ -1003,7 +1003,7 @@ sal_uInt32 SAL_CALL rtl_uString_iterateCodePoints(
cp
=
cu
;
}
while
(
incrementCodePoints
>
0
)
{
OSL_ASSERT
(
n
<
string
->
length
);
assert
(
n
<
string
->
length
);
cu
=
string
->
buffer
[
n
++
];
if
(
SAL_RTL_IS_HIGH_SURROGATE
(
cu
)
&&
n
!=
string
->
length
&&
SAL_RTL_IS_LOW_SURROGATE
(
string
->
buffer
[
n
]))
...
...
@@ -1012,7 +1012,7 @@ sal_uInt32 SAL_CALL rtl_uString_iterateCodePoints(
}
--
incrementCodePoints
;
}
OSL_ASSERT
(
n
>=
0
&&
n
<=
string
->
length
);
assert
(
n
>=
0
&&
n
<=
string
->
length
);
*
indexUtf16
=
n
;
return
cp
;
}
...
...
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