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
802fe487
Kaydet (Commit)
802fe487
authored
Şub 26, 2015
tarafından
Michael Stahl
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
comphelper: compare implemented as subtraction
Change-Id: Ic7abd7dd588339e06b6764659829f35b4ea87adb
üst
78738781
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
9 deletions
+4
-9
string.cxx
comphelper/source/misc/string.cxx
+4
-9
No files found.
comphelper/source/misc/string.cxx
Dosyayı görüntüle @
802fe487
...
...
@@ -323,18 +323,13 @@ sal_Int32 compareNatural( const OUString & rLHS, const OUString & rRHS,
sal_uInt32
nLHS
=
comphelper
::
string
::
decimalStringToNumber
(
rLHS
.
copy
(
nLHSFirstDigitPos
,
nLHSChunkLen
));
sal_uInt32
nRHS
=
comphelper
::
string
::
decimalStringToNumber
(
rRHS
.
copy
(
nRHSFirstDigitPos
,
nRHSChunkLen
));
nRet
=
nLHS
-
nRHS
;
if
(
nRet
!=
0
)
if
(
nLHS
!=
nRHS
)
{
nRet
=
(
nLHS
<
nRHS
)
?
-
1
:
1
;
break
;
}
}
//Squeeze these down to -1, 0, 1 in case there is an assumption those are
//the only valid returns
if
(
nRet
>
0
)
nRet
=
1
;
else
if
(
nRet
<
0
)
nRet
=
-
1
;
return
nRet
;
}
...
...
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