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
06b4ca89
Kaydet (Commit)
06b4ca89
authored
Mar 28, 2014
tarafından
Eike Rathke
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
name things what they are
Change-Id: I13d0cb525f3ca22b1b9158b2ac20b8b59d645463
üst
2cf4763e
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
10 deletions
+10
-10
zforfind.cxx
svl/source/numbers/zforfind.cxx
+4
-4
zformat.cxx
svl/source/numbers/zformat.cxx
+1
-1
zforscan.cxx
svl/source/numbers/zforscan.cxx
+5
-5
No files found.
svl/source/numbers/zforfind.cxx
Dosyayı görüntüle @
06b4ca89
...
...
@@ -65,7 +65,7 @@ const sal_uInt8 ImpSvNumberInputScan::nMatchedUsedAsReturn = 0x10;
* would work, together with the nTimezonePos handling in GetTimeRef(). */
#define NF_RECOGNIZE_ISO8601_TIMEZONES 0
static
const
sal_Unicode
cNo
nBreaking
Space
=
0xA0
;
static
const
sal_Unicode
cNo
Break
Space
=
0xA0
;
ImpSvNumberInputScan
::
ImpSvNumberInputScan
(
SvNumberFormatter
*
pFormatterP
)
:
...
...
@@ -461,7 +461,7 @@ inline void ImpSvNumberInputScan::SkipBlanks( const OUString& rString,
if
(
nPos
<
rString
.
getLength
()
)
{
const
sal_Unicode
*
p
=
rString
.
getStr
()
+
nPos
;
while
(
*
p
==
' '
||
*
p
==
cNo
nBreaking
Space
)
while
(
*
p
==
' '
||
*
p
==
cNo
Break
Space
)
{
nPos
++
;
p
++
;
...
...
@@ -493,8 +493,8 @@ inline bool ImpSvNumberInputScan::GetThousandSep( const OUString& rString,
sal_uInt16
nStringPos
)
{
const
OUString
&
rSep
=
pFormatter
->
GetNumThousandSep
();
// Is it an ordinary space instead of a no
n-breaking
space?
bool
bSpaceBreak
=
rSep
[
0
]
==
cNo
nBreaking
Space
&&
rString
[
0
]
==
(
sal_Unicode
)
0x20
&&
// Is it an ordinary space instead of a no
-break
space?
bool
bSpaceBreak
=
rSep
[
0
]
==
cNo
Break
Space
&&
rString
[
0
]
==
(
sal_Unicode
)
0x20
&&
rSep
.
getLength
()
==
1
&&
rString
.
getLength
()
==
1
;
if
(
!
((
rString
==
rSep
||
bSpaceBreak
)
&&
// nothing else
nStringPos
<
nAnzStrings
-
1
&&
// safety first!
...
...
svl/source/numbers/zformat.cxx
Dosyayı görüntüle @
06b4ca89
...
...
@@ -722,7 +722,7 @@ SvNumberformat::SvNumberformat(OUString& rString,
{
OUStringBuffer
sBuff
(
rString
);
// If the group (AKA thousand) separator is a No
n-Breaking
Space (French)
// If the group (AKA thousand) separator is a No
-Break
Space (French)
// replace all occurrences by a simple space.
// The tokens will be changed to the LocaleData separator again later on.
const
sal_Unicode
cNBSp
=
0xA0
;
...
...
svl/source/numbers/zforscan.cxx
Dosyayı görüntüle @
06b4ca89
...
...
@@ -36,7 +36,7 @@
#include <svl/nfsymbol.hxx>
using
namespace
svt
;
const
sal_Unicode
cNo
nBreaking
Space
=
0xA0
;
const
sal_Unicode
cNo
Break
Space
=
0xA0
;
namespace
{
...
...
@@ -1528,11 +1528,11 @@ sal_Int32 ImpSvNumberformatScan::FinalScan( OUString& rString )
sal_Unicode
cOldKeyMI
=
sKeyword
[
NF_KEY_MI
][
0
];
sal_Unicode
cOldKeyS
=
sKeyword
[
NF_KEY_S
][
0
];
// If the group separator is a No
n-Breaking
Space (French) continue with a
// If the group separator is a No
-Break
Space (French) continue with a
// normal space instead so queries on space work correctly.
// The format string is adjusted to allow both.
// For output of the format code string the LocaleData characters are used.
if
(
sOldThousandSep
[
0
]
==
cNo
nBreaking
Space
&&
sOldThousandSep
.
getLength
()
==
1
)
if
(
sOldThousandSep
[
0
]
==
cNo
Break
Space
&&
sOldThousandSep
.
getLength
()
==
1
)
{
sOldThousandSep
=
" "
;
}
...
...
@@ -1832,7 +1832,7 @@ sal_Int32 ImpSvNumberformatScan::FinalScan( OUString& rString )
{
// strange, those French..
bool
bFirst
=
true
;
// set a hard No
n-Breaking
Space or ConvertMode
// set a hard No
-Break
Space or ConvertMode
const
OUString
&
rSepF
=
pFormatter
->
GetNumThousandSep
();
while
(
i
<
nAnzStrings
&&
sStrArray
[
i
]
==
sOldThousandSep
&&
...
...
@@ -2712,7 +2712,7 @@ sal_Int32 ImpSvNumberformatScan::FinalScan( OUString& rString )
if
(((
eScannedType
&
NUMBERFORMAT_DATE
)
==
0
)
&&
(
StringEqualsChar
(
pFormatter
->
GetNumThousandSep
(),
c
)
||
StringEqualsChar
(
pFormatter
->
GetNumDecimalSep
(),
c
)
||
(
c
==
' '
&&
StringEqualsChar
(
pFormatter
->
GetNumThousandSep
(),
cNo
nBreaking
Space
))))
(
c
==
' '
&&
StringEqualsChar
(
pFormatter
->
GetNumThousandSep
(),
cNo
Break
Space
))))
{
rString
+=
sStrArray
[
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