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
6df46d63
Kaydet (Commit)
6df46d63
authored
Haz 03, 2015
tarafından
Eike Rathke
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
ensure that at least one abbreviated DateAcceptancePattern is present
Change-Id: I30619fc9f894dda89cd1c84153abcb21214a5fbc
üst
c681c4ca
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
0 deletions
+16
-0
LocaleNode.cxx
i18npool/source/localedata/LocaleNode.cxx
+16
-0
No files found.
i18npool/source/localedata/LocaleNode.cxx
Dosyayı görüntüle @
6df46d63
...
@@ -896,6 +896,22 @@ void LCFormatNode::generateCode (const OFileWriter &of) const
...
@@ -896,6 +896,22 @@ void LCFormatNode::generateCode (const OFileWriter &of) const
// LC_FORMAT, not in optional LC_FORMAT_1
// LC_FORMAT, not in optional LC_FORMAT_1
if
(
mnSection
==
0
)
if
(
mnSection
==
0
)
{
{
// At least one abbreviated date acceptance pattern must be present.
if
(
theDateAcceptancePatterns
.
empty
())
incError
(
"No DateAcceptancePattern present.
\n
"
);
else
{
bool
bHaveAbbr
=
false
;
for
(
::
std
::
vector
<
OUString
>::
const_iterator
it
(
theDateAcceptancePatterns
.
begin
());
!
bHaveAbbr
&&
it
!=
theDateAcceptancePatterns
.
end
();
++
it
)
{
if
((
*
it
).
indexOf
(
'D'
)
>
-
1
&&
(
*
it
).
indexOf
(
'M'
)
>
-
1
&&
(
*
it
).
indexOf
(
'Y'
)
<=
-
1
)
bHaveAbbr
=
true
;
}
if
(
!
bHaveAbbr
)
incError
(
"No abbreviated DateAcceptancePattern present. For example M/D or D.M.
\n
"
);
}
// 0..47 MUST be present, 48,49 MUST NOT be present
// 0..47 MUST be present, 48,49 MUST NOT be present
ValueSet
::
const_iterator
aIter
(
aFormatIndexSet
.
begin
());
ValueSet
::
const_iterator
aIter
(
aFormatIndexSet
.
begin
());
for
(
sal_Int16
nNext
=
cssi
::
NumberFormatIndex
::
NUMBER_START
;
for
(
sal_Int16
nNext
=
cssi
::
NumberFormatIndex
::
NUMBER_START
;
...
...
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