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
922a94f3
Kaydet (Commit)
922a94f3
authored
Eki 27, 2017
tarafından
Eike Rathke
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Add LocaleDataWrapper::getNumDecimalSepAlt(), tdf#81671
Change-Id: Id3a16004603685ef859506c2c6d86f8ff097c1d0
üst
51a7ae74
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
2 deletions
+7
-2
localedatawrapper.hxx
include/unotools/localedatawrapper.hxx
+3
-1
localedatawrapper.cxx
unotools/source/i18n/localedatawrapper.cxx
+4
-1
No files found.
include/unotools/localedatawrapper.hxx
Dosyayı görüntüle @
922a94f3
...
...
@@ -65,7 +65,7 @@ class UNOTOOLS_DLLPUBLIC LocaleDataWrapper
css
::
uno
::
Sequence
<
OUString
>
aDateAcceptancePatterns
;
css
::
uno
::
Sequence
<
sal_Int32
>
aGrouping
;
// cached items
OUString
aLocaleItem
[
css
::
i18n
::
LocaleItem
::
COUNT
];
OUString
aLocaleItem
[
css
::
i18n
::
LocaleItem
::
COUNT
2
];
OUString
aReservedWord
[
css
::
i18n
::
reservedWords
::
COUNT
];
OUString
aCurrSymbol
;
OUString
aCurrBankSymbol
;
...
...
@@ -209,6 +209,8 @@ public:
{
return
getOneLocaleItem
(
css
::
i18n
::
LocaleItem
::
THOUSAND_SEPARATOR
);
}
const
OUString
&
getNumDecimalSep
()
const
{
return
getOneLocaleItem
(
css
::
i18n
::
LocaleItem
::
DECIMAL_SEPARATOR
);
}
const
OUString
&
getNumDecimalSepAlt
()
const
{
return
getOneLocaleItem
(
css
::
i18n
::
LocaleItem
::
DECIMAL_SEPARATOR_ALTERNATIVE
);
}
const
OUString
&
getTimeSep
()
const
{
return
getOneLocaleItem
(
css
::
i18n
::
LocaleItem
::
TIME_SEPARATOR
);
}
const
OUString
&
getTime100SecSep
()
const
...
...
unotools/source/i18n/localedatawrapper.cxx
Dosyayı görüntüle @
922a94f3
...
...
@@ -355,7 +355,7 @@ std::vector< LanguageType > LocaleDataWrapper::getInstalledLanguageTypes()
const
OUString
&
LocaleDataWrapper
::
getOneLocaleItem
(
sal_Int16
nItem
)
const
{
::
utl
::
ReadWriteGuard
aGuard
(
aMutex
);
if
(
nItem
>=
LocaleItem
::
COUNT
)
if
(
nItem
>=
LocaleItem
::
COUNT
2
)
{
SAL_WARN
(
"unotools.i18n"
,
"getOneLocaleItem: bounds"
);
return
aLocaleItem
[
0
];
...
...
@@ -428,6 +428,9 @@ void LocaleDataWrapper::getOneLocaleItemImpl( sal_Int16 nItem )
case
LocaleItem
:
:
LONG_DATE_YEAR_SEPARATOR
:
aLocaleItem
[
nItem
]
=
aLocaleDataItem
.
LongDateYearSeparator
;
break
;
case
LocaleItem
:
:
DECIMAL_SEPARATOR_ALTERNATIVE
:
aLocaleItem
[
nItem
]
=
aLocaleDataItem
.
decimalSeparatorAlternative
;
break
;
default
:
SAL_WARN
(
"unotools.i18n"
,
"getOneLocaleItemImpl: which one?"
);
}
...
...
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