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
880948b2
Kaydet (Commit)
880948b2
authored
Şub 12, 2014
tarafından
Noel Grandin
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
sal_Bool->bool
Change-Id: I65bcdf1d09f58fbfcde055ccb6b4842e3f95f973
üst
389c4289
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
26 additions
and
26 deletions
+26
-26
difimp.cxx
sc/source/filter/dif/difimp.cxx
+8
-8
dif.hxx
sc/source/filter/inc/dif.hxx
+18
-18
No files found.
sc/source/filter/dif/difimp.cxx
Dosyayı görüntüle @
880948b2
...
...
@@ -631,17 +631,17 @@ const sal_Unicode* DifParser::ScanIntVal( const sal_Unicode* pStart, sal_uInt32&
}
sal_B
ool
DifParser
::
ScanFloatVal
(
const
sal_Unicode
*
pStart
)
{
b
ool
DifParser
::
ScanFloatVal
(
const
sal_Unicode
*
pStart
)
{
sal_Bool
bNeg
=
false
;
double
fFracPos
=
1.0
;
double
fFracPos
=
1.0
;
sal_Int32
nExp
=
0
;
sal_Bool
bExpNeg
=
false
;
sal_Bool
bExpOverflow
=
false
;
static
const
sal_uInt16
nExpLimit
=
4096
;
// ACHTUNG: muss genauer ermittelt werden!
sal_Unicode
cAkt
;
sal_B
ool
bRet
=
false
;
b
ool
bRet
=
false
;
enum
STATE
{
S_FIRST
,
S_PRE
,
S_POST
,
S_EXP_FIRST
,
S_EXP
,
S_END
,
S_FINDEND
};
...
...
@@ -702,7 +702,7 @@ sal_Bool DifParser::ScanFloatVal( const sal_Unicode* pStart )
eS
=
S_EXP
;
break
;
case
0x00
:
// IsNumberEnding( cAkt )
bRet
=
sal_T
rue
;
// no
bRet
=
t
rue
;
// no
default
:
// break!
eS
=
S_END
;
}
...
...
@@ -723,7 +723,7 @@ sal_Bool DifParser::ScanFloatVal( const sal_Unicode* pStart )
eS
=
S_EXP_FIRST
;
break
;
case
0x00
:
// IsNumberEnding( cAkt )
bRet
=
sal_T
rue
;
// no
bRet
=
t
rue
;
// no
default
:
// break!
eS
=
S_END
;
}
...
...
@@ -776,7 +776,7 @@ sal_Bool DifParser::ScanFloatVal( const sal_Unicode* pStart )
case
S_FINDEND
:
if
(
IsNumberEnding
(
cAkt
)
)
{
bRet
=
sal_T
rue
;
// damit sinnvoll weitergeparst werden kann
bRet
=
t
rue
;
// damit sinnvoll weitergeparst werden kann
eS
=
S_END
;
}
break
;
...
...
@@ -900,7 +900,7 @@ void DifColumn::Apply( ScDocument& rDoc, const SCCOL nCol, const SCTAB nTab )
}
DifAttrCache
::
DifAttrCache
(
const
sal_B
ool
bNewPlain
)
DifAttrCache
::
DifAttrCache
(
const
b
ool
bNewPlain
)
{
bPlain
=
bNewPlain
;
ppCols
=
new
DifColumn
*
[
MAXCOL
+
1
];
...
...
sc/source/filter/inc/dif.hxx
Dosyayı görüntüle @
880948b2
...
...
@@ -70,15 +70,15 @@ public:
private
:
SvNumberFormatter
*
pNumFormatter
;
SvStream
&
rIn
;
sal_B
ool
bPlain
;
b
ool
bPlain
;
OUString
aLookAheadLine
;
bool
ReadNextLine
(
OUString
&
rStr
);
bool
LookAhead
();
DATASET
GetNumberDataset
(
const
sal_Unicode
*
pPossibleNumericData
);
static
inline
sal_B
ool
IsBOT
(
const
sal_Unicode
*
pRef
);
static
inline
sal_B
ool
IsEOD
(
const
sal_Unicode
*
pRef
);
static
inline
sal_B
ool
Is1_0
(
const
sal_Unicode
*
pRef
);
static
inline
b
ool
IsBOT
(
const
sal_Unicode
*
pRef
);
static
inline
b
ool
IsEOD
(
const
sal_Unicode
*
pRef
);
static
inline
b
ool
Is1_0
(
const
sal_Unicode
*
pRef
);
public
:
DifParser
(
SvStream
&
,
const
sal_uInt32
nOption
,
ScDocument
&
,
rtl_TextEncoding
);
...
...
@@ -87,17 +87,17 @@ public:
DATASET
GetNextDataset
(
void
);
const
sal_Unicode
*
ScanIntVal
(
const
sal_Unicode
*
pStart
,
sal_uInt32
&
rRet
);
sal_B
ool
ScanFloatVal
(
const
sal_Unicode
*
pStart
);
b
ool
ScanFloatVal
(
const
sal_Unicode
*
pStart
);
inline
sal_B
ool
IsNumber
(
const
sal_Unicode
cChar
);
inline
sal_B
ool
IsNumberEnding
(
const
sal_Unicode
cChar
);
inline
b
ool
IsNumber
(
const
sal_Unicode
cChar
);
inline
b
ool
IsNumberEnding
(
const
sal_Unicode
cChar
);
static
inline
sal_B
ool
IsV
(
const
sal_Unicode
*
pRef
);
static
inline
b
ool
IsV
(
const
sal_Unicode
*
pRef
);
inline
sal_B
ool
IsPlain
(
void
)
const
;
inline
b
ool
IsPlain
(
void
)
const
;
};
inline
sal_B
ool
DifParser
::
IsBOT
(
const
sal_Unicode
*
pRef
)
inline
b
ool
DifParser
::
IsBOT
(
const
sal_Unicode
*
pRef
)
{
return
(
pRef
[
0
]
==
pKeyBOT
[
0
]
&&
pRef
[
1
]
==
pKeyBOT
[
1
]
&&
...
...
@@ -105,7 +105,7 @@ inline sal_Bool DifParser::IsBOT( const sal_Unicode* pRef )
pRef
[
3
]
==
pKeyBOT
[
3
]
);
}
inline
sal_B
ool
DifParser
::
IsEOD
(
const
sal_Unicode
*
pRef
)
inline
b
ool
DifParser
::
IsEOD
(
const
sal_Unicode
*
pRef
)
{
return
(
pRef
[
0
]
==
pKeyEOD
[
0
]
&&
pRef
[
1
]
==
pKeyEOD
[
1
]
&&
...
...
@@ -113,7 +113,7 @@ inline sal_Bool DifParser::IsEOD( const sal_Unicode* pRef )
pRef
[
3
]
==
pKeyEOD
[
3
]
);
}
inline
sal_B
ool
DifParser
::
Is1_0
(
const
sal_Unicode
*
pRef
)
inline
b
ool
DifParser
::
Is1_0
(
const
sal_Unicode
*
pRef
)
{
return
(
pRef
[
0
]
==
pKey1_0
[
0
]
&&
pRef
[
1
]
==
pKey1_0
[
1
]
&&
...
...
@@ -121,23 +121,23 @@ inline sal_Bool DifParser::Is1_0( const sal_Unicode* pRef )
pRef
[
3
]
==
pKey1_0
[
3
]
);
}
inline
sal_B
ool
DifParser
::
IsV
(
const
sal_Unicode
*
pRef
)
inline
b
ool
DifParser
::
IsV
(
const
sal_Unicode
*
pRef
)
{
return
(
pRef
[
0
]
==
pKeyV
[
0
]
&&
pRef
[
1
]
==
pKeyV
[
1
]
);
}
inline
sal_B
ool
DifParser
::
IsNumber
(
const
sal_Unicode
cChar
)
inline
b
ool
DifParser
::
IsNumber
(
const
sal_Unicode
cChar
)
{
return
(
cChar
>=
'0'
&&
cChar
<=
'9'
);
}
inline
sal_B
ool
DifParser
::
IsNumberEnding
(
const
sal_Unicode
cChar
)
inline
b
ool
DifParser
::
IsNumberEnding
(
const
sal_Unicode
cChar
)
{
return
(
cChar
==
0x00
);
}
inline
sal_B
ool
DifParser
::
IsPlain
(
void
)
const
inline
b
ool
DifParser
::
IsPlain
(
void
)
const
{
return
bPlain
;
}
...
...
@@ -173,7 +173,7 @@ class DifAttrCache
{
public
:
DifAttrCache
(
const
sal_B
ool
bPlain
);
DifAttrCache
(
const
b
ool
bPlain
);
~
DifAttrCache
();
...
...
@@ -186,7 +186,7 @@ public:
private
:
DifColumn
**
ppCols
;
sal_B
ool
bPlain
;
b
ool
bPlain
;
};
#endif
...
...
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