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
7465f5e6
Kaydet (Commit)
7465f5e6
authored
Nis 12, 2012
tarafından
Takeshi Abe
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
extract ImpGetIntntlSep() into sbxconv.hxx and reuse it
üst
b30c9f7d
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
11 deletions
+5
-11
sbxconv.hxx
basic/source/sbx/sbxconv.hxx
+2
-0
sbxcurr.cxx
basic/source/sbx/sbxcurr.cxx
+3
-8
sbxdec.cxx
basic/source/sbx/sbxdec.cxx
+0
-3
No files found.
basic/source/sbx/sbxconv.hxx
Dosyayı görüntüle @
7465f5e6
...
...
@@ -42,6 +42,8 @@ extern SbxError ImpScan
// with advanced evaluation (International, "TRUE"/"FALSE")
extern
sal_Bool
ImpConvStringExt
(
::
rtl
::
OUString
&
rSrc
,
SbxDataType
eTargetType
);
void
ImpGetIntntlSep
(
sal_Unicode
&
rcDecimalSep
,
sal_Unicode
&
rcThousandSep
);
// SBXINT.CXX
double
ImpRound
(
double
);
...
...
basic/source/sbx/sbxcurr.cxx
Dosyayı görüntüle @
7465f5e6
...
...
@@ -40,13 +40,10 @@ static rtl::OUString ImpCurrencyToString( const sal_Int64 &rVal )
bool
isNeg
=
(
rVal
<
0
);
sal_Int64
absVal
=
isNeg
?
-
rVal
:
rVal
;
SvtSysLocale
aSysLocale
;
sal_Unicode
cDecimalSep
=
'.'
;
#if MAYBEFUTURE
sal_Unicode
cThousandSep
=
','
;
const
LocaleDataWrapper
&
rData
=
aSysLocale
.
GetLocaleData
();
cDecimalSep
=
rData
.
getNumDecimalSep
().
GetBuffer
()[
0
];
cThousandSep
=
rData
.
getNumThousandSep
().
GetBuffer
()[
0
];
ImpGetIntntlSep
(
cDecimalSep
,
cThousandSep
);
#endif
rtl
::
OUString
aAbsStr
=
rtl
::
OUString
::
valueOf
(
absVal
);
...
...
@@ -119,14 +116,12 @@ static sal_Int64 ImpStringToCurrency( const rtl::OUString &rStr )
sal_Int32
nFractDigit
=
4
;
SvtSysLocale
aSysLocale
;
sal_Unicode
cDeciPnt
=
sal_Unicode
(
'.'
);
sal_Unicode
c1000Sep
=
sal_Unicode
(
','
);
#if MAYBEFUTURE
const
LocaleDataWrapper
&
rData
=
aSysLocale
.
GetLocaleData
();
sal_Unicode
cLocaleDeciPnt
=
rData
.
getNumDecimalSep
().
GetBuffer
()[
0
];
sal_Unicode
cLocale1000Sep
=
rData
.
getNumThousandSep
().
GetBuffer
()[
0
];
sal_Unicode
cLocaleDeciPnt
,
cLocale1000Sep
;
ImpGetIntntlSep
(
cLocaleDeciPnt
,
cLocale1000Sep
);
// score each set of separators (Locale and Basic) on total number of matches
// if one set has more matches use that set
...
...
basic/source/sbx/sbxdec.cxx
Dosyayı görüntüle @
7465f5e6
...
...
@@ -201,9 +201,6 @@ void SbxDecimal::setUInt( unsigned int val )
setULong
(
(
sal_uInt32
)
val
);
}
// sbxscan.cxx
void
ImpGetIntntlSep
(
sal_Unicode
&
rcDecimalSep
,
sal_Unicode
&
rcThousandSep
);
bool
SbxDecimal
::
setString
(
::
rtl
::
OUString
*
pOUString
)
{
static
LCID
nLANGID
=
MAKELANGID
(
LANG_ENGLISH
,
SUBLANG_ENGLISH_US
);
...
...
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