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
c0bbf6f7
Kaydet (Commit)
c0bbf6f7
authored
Ock 17, 2012
tarafından
Eike Rathke
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
rudimentary check if date acceptance pattern interferes with decimal number
üst
fa836f7b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
2 deletions
+21
-2
LocaleNode.cxx
i18npool/source/localedata/LocaleNode.cxx
+21
-2
No files found.
i18npool/source/localedata/LocaleNode.cxx
Dosyayı görüntüle @
c0bbf6f7
...
...
@@ -382,7 +382,8 @@ void LCInfoNode::generateCode (const OFileWriter &of) const
}
OUString
aDateSep
;
static
OUString
aDateSep
;
static
OUString
aDecSep
;
void
LCCTYPENode
::
generateCode
(
const
OFileWriter
&
of
)
const
{
...
...
@@ -400,7 +401,7 @@ void LCCTYPENode::generateCode (const OFileWriter &of) const
writeParameterCheckLen
(
of
,
"DateSeparator"
,
"dateSeparator"
,
1
,
1
);
OUString
aThoSep
=
writeParameterCheckLen
(
of
,
"ThousandSeparator"
,
"thousandSeparator"
,
1
,
1
);
OUString
aDecSep
=
aDecSep
=
writeParameterCheckLen
(
of
,
"DecimalSeparator"
,
"decimalSeparator"
,
1
,
1
);
OUString
aTimeSep
=
writeParameterCheckLen
(
of
,
"TimeSeparator"
,
"timeSeparator"
,
1
,
1
);
...
...
@@ -1203,6 +1204,24 @@ 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
)
{
if
((
*
aIt
).
getLength
()
==
(
cDecSep
<=
0xffff
?
3
:
4
))
{
nIndex
=
1
;
if
((
*
aIt
).
iterateCodePoints
(
&
nIndex
)
==
cDecSep
)
{
++
nError
;
fprintf
(
stderr
,
"Error: Date acceptance pattern '%s' matches decimal number '#%s#'
\n
"
,
OSTR
(
*
aIt
),
OSTR
(
aDecSep
));
}
}
}
sal_Int16
nbOfDateAcceptancePatterns
=
static_cast
<
sal_Int16
>
(
theDateAcceptancePatterns
.
size
());
for
(
sal_Int16
i
=
0
;
i
<
nbOfDateAcceptancePatterns
;
++
i
)
...
...
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