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
4e6a7df7
Kaydet (Commit)
4e6a7df7
authored
Kas 06, 2012
tarafından
Norbert Thiebaud
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
svl: aNameStandardFormat can be OUString for free
Change-Id: I61f57ed6a5aad0bf7a69319c36b080213b74ad6a
üst
ead89ae2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
28 additions
and
22 deletions
+28
-22
zforscan.cxx
svl/source/numbers/zforscan.cxx
+27
-21
zforscan.hxx
svl/source/numbers/zforscan.hxx
+1
-1
No files found.
svl/source/numbers/zforscan.cxx
Dosyayı görüntüle @
4e6a7df7
...
@@ -169,9 +169,9 @@ void ImpSvNumberformatScan::InitKeywords() const
...
@@ -169,9 +169,9 @@ void ImpSvNumberformatScan::InitKeywords() const
/** Extract the name of General, Standard, Whatever, ignoring leading modifiers
/** Extract the name of General, Standard, Whatever, ignoring leading modifiers
such as [NatNum1]. */
such as [NatNum1]. */
static
String
lcl_extractStandardGeneralName
(
const
::
rtl
::
OUString
&
rCode
)
static
OU
String
lcl_extractStandardGeneralName
(
const
::
rtl
::
OUString
&
rCode
)
{
{
String
aStr
;
OU
String
aStr
;
const
sal_Unicode
*
p
=
rCode
.
getStr
();
const
sal_Unicode
*
p
=
rCode
.
getStr
();
const
sal_Unicode
*
const
pStop
=
p
+
rCode
.
getLength
();
const
sal_Unicode
*
const
pStop
=
p
+
rCode
.
getLength
();
const
sal_Unicode
*
pBeg
=
p
;
// name begins here
const
sal_Unicode
*
pBeg
=
p
;
// name begins here
...
@@ -181,32 +181,36 @@ static String lcl_extractStandardGeneralName( const ::rtl::OUString & rCode )
...
@@ -181,32 +181,36 @@ static String lcl_extractStandardGeneralName( const ::rtl::OUString & rCode )
{
{
switch
(
*
p
)
switch
(
*
p
)
{
{
case
'['
:
case
'['
:
bMod
=
true
;
bMod
=
true
;
break
;
break
;
case
']'
:
case
']'
:
if
(
bMod
)
if
(
bMod
)
{
{
bMod
=
false
;
bMod
=
false
;
pBeg
=
p
+
1
;
pBeg
=
p
+
1
;
}
}
// else: would be a locale data error, easily to be spotted in
// else: would be a locale data error, easily to be spotted in
// UI dialog
// UI dialog
break
;
break
;
case
';'
:
case
';'
:
if
(
!
bMod
)
if
(
!
bMod
)
{
{
bDone
=
true
;
bDone
=
true
;
--
p
;
// put back, increment by one follows
--
p
;
// put back, increment by one follows
}
}
break
;
break
;
}
}
++
p
;
++
p
;
if
(
bMod
)
if
(
bMod
)
{
pBeg
=
p
;
pBeg
=
p
;
}
}
}
if
(
pBeg
<
p
)
if
(
pBeg
<
p
)
{
aStr
=
rCode
.
copy
(
pBeg
-
rCode
.
getStr
(),
p
-
pBeg
);
aStr
=
rCode
.
copy
(
pBeg
-
rCode
.
getStr
(),
p
-
pBeg
);
}
return
aStr
;
return
aStr
;
}
}
...
@@ -1558,7 +1562,9 @@ xub_StrLen ImpSvNumberformatScan::FinalScan( String& rString )
...
@@ -1558,7 +1562,9 @@ xub_StrLen ImpSvNumberformatScan::FinalScan( String& rString )
{
{
nThousand
=
FLAG_STANDARD_IN_FORMAT
;
nThousand
=
FLAG_STANDARD_IN_FORMAT
;
if
(
bConvertMode
)
if
(
bConvertMode
)
{
sStrArray
[
i
]
=
sNameStandardFormat
;
sStrArray
[
i
]
=
sNameStandardFormat
;
}
}
}
nPos
=
nPos
+
sStrArray
[
i
].
Len
();
nPos
=
nPos
+
sStrArray
[
i
].
Len
();
i
++
;
i
++
;
...
...
svl/source/numbers/zforscan.hxx
Dosyayı görüntüle @
4e6a7df7
...
@@ -155,7 +155,7 @@ private: // ---- privater Teil
...
@@ -155,7 +155,7 @@ private: // ---- privater Teil
Color
StandardColor
[
NF_MAX_DEFAULT_COLORS
];
Color
StandardColor
[
NF_MAX_DEFAULT_COLORS
];
// Array der Standardfarben
// Array der Standardfarben
Date
*
pNullDate
;
// 30Dec1899
Date
*
pNullDate
;
// 30Dec1899
String
sNameStandardFormat
;
// "Standard"
OUString
sNameStandardFormat
;
// "Standard"
sal_uInt16
nStandardPrec
;
// default Precision for Standardformat
sal_uInt16
nStandardPrec
;
// default Precision for Standardformat
SvNumberFormatter
*
pFormatter
;
// Pointer auf die Formatliste
SvNumberFormatter
*
pFormatter
;
// Pointer auf die Formatliste
...
...
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