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
2830bf9a
Kaydet (Commit)
2830bf9a
authored
Eki 28, 2013
tarafından
Eike Rathke
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
iterateCodePoints() on empty string is no good anymore
Change-Id: Id2ddbbff90f3cd32c03c7623af6d458717c7e8a8
üst
20e0afa7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
10 deletions
+14
-10
LocaleNode.cxx
i18npool/source/localedata/LocaleNode.cxx
+14
-10
No files found.
i18npool/source/localedata/LocaleNode.cxx
Dosyayı görüntüle @
2830bf9a
...
...
@@ -1217,19 +1217,23 @@ void LCFormatNode::generateCode (const OFileWriter &of) const
}
// Rudimentary check if a pattern interferes with decimal number.
nIndex
=
0
;
sal_uInt32
cDecSep
=
aDecSep
.
iterateCodePoints
(
&
nIndex
);
for
(
vector
<
OUString
>::
const_iterator
aIt
=
theDateAcceptancePatterns
.
begin
();
aIt
!=
theDateAcceptancePatterns
.
end
();
++
aIt
)
// But only if not inherited in which case we don't have aDecSep here.
if
(
!
aDecSep
.
isEmpty
())
{
if
((
*
aIt
).
getLength
()
==
(
cDecSep
<=
0xffff
?
3
:
4
))
nIndex
=
0
;
sal_uInt32
cDecSep
=
aDecSep
.
iterateCodePoints
(
&
nIndex
);
for
(
vector
<
OUString
>::
const_iterator
aIt
=
theDateAcceptancePatterns
.
begin
();
aIt
!=
theDateAcceptancePatterns
.
end
();
++
aIt
)
{
nIndex
=
1
;
if
((
*
aIt
).
iterateCodePoints
(
&
nIndex
)
==
cDecSep
)
if
((
*
aIt
).
getLength
()
==
(
cDecSep
<=
0xffff
?
3
:
4
))
{
++
nError
;
fprintf
(
stderr
,
"Error: Date acceptance pattern '%s' matches decimal number '#%s#'
\n
"
,
OSTR
(
*
aIt
),
OSTR
(
aDecSep
));
nIndex
=
1
;
if
((
*
aIt
).
iterateCodePoints
(
&
nIndex
)
==
cDecSep
)
{
++
nError
;
fprintf
(
stderr
,
"Error: Date acceptance pattern '%s' matches decimal number '#%s#'
\n
"
,
OSTR
(
*
aIt
),
OSTR
(
aDecSep
));
}
}
}
}
...
...
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