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
e7a86f2d
Kaydet (Commit)
e7a86f2d
authored
Ock 10, 2014
tarafından
Stephan Bergmann
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Use bool
Change-Id: I2f1c543b106e24ff49f876dbb3d8e94f4ebf03ba
üst
680a5290
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
13 additions
and
13 deletions
+13
-13
svparser.hxx
include/svtools/svparser.hxx
+1
-1
parhtml.cxx
svtools/source/svhtml/parhtml.cxx
+8
-8
parrtf.cxx
svtools/source/svrtf/parrtf.cxx
+4
-4
No files found.
include/svtools/svparser.hxx
Dosyayı görüntüle @
e7a86f2d
...
@@ -130,7 +130,7 @@ public:
...
@@ -130,7 +130,7 @@ public:
sal_Unicode
GetNextChar
();
sal_Unicode
GetNextChar
();
void
RereadLookahead
();
void
RereadLookahead
();
inline
int
IsParserWorking
()
const
{
return
SVPAR_WORKING
==
eState
;
}
inline
bool
IsParserWorking
()
const
{
return
SVPAR_WORKING
==
eState
;
}
Link
GetAsynchCallLink
()
const
Link
GetAsynchCallLink
()
const
{
return
STATIC_LINK
(
this
,
SvParser
,
NewDataRead
);
}
{
return
STATIC_LINK
(
this
,
SvParser
,
NewDataRead
);
}
...
...
svtools/source/svhtml/parhtml.cxx
Dosyayı görüntüle @
e7a86f2d
...
@@ -421,13 +421,13 @@ int HTMLParser::FilterToken( int nToken )
...
@@ -421,13 +421,13 @@ int HTMLParser::FilterToken( int nToken )
int
HTMLParser
::
ScanText
(
const
sal_Unicode
cBreak
)
int
HTMLParser
::
ScanText
(
const
sal_Unicode
cBreak
)
{
{
OUStringBuffer
sTmpBuffer
(
MAX_LEN
);
OUStringBuffer
sTmpBuffer
(
MAX_LEN
);
int
bContinue
=
true
;
bool
bContinue
=
true
;
int
bEqSignFound
=
false
;
bool
bEqSignFound
=
false
;
sal_Unicode
cQuote
=
0U
;
sal_Unicode
cQuote
=
0U
;
while
(
bContinue
&&
IsParserWorking
()
)
while
(
bContinue
&&
IsParserWorking
()
)
{
{
int
bNextCh
=
true
;
bool
bNextCh
=
true
;
switch
(
nNextCh
)
switch
(
nNextCh
)
{
{
case
'&'
:
case
'&'
:
...
@@ -844,12 +844,12 @@ int HTMLParser::_GetNextRawToken()
...
@@ -844,12 +844,12 @@ int HTMLParser::_GetNextRawToken()
}
}
// Default return value: HTML_RAWDATA
// Default return value: HTML_RAWDATA
int
bContinue
=
true
;
bool
bContinue
=
true
;
int
nToken
=
HTML_RAWDATA
;
int
nToken
=
HTML_RAWDATA
;
SaveState
(
0
);
SaveState
(
0
);
while
(
bContinue
&&
IsParserWorking
()
)
while
(
bContinue
&&
IsParserWorking
()
)
{
{
int
bNextCh
=
true
;
bool
bNextCh
=
true
;
switch
(
nNextCh
)
switch
(
nNextCh
)
{
{
case
'<'
:
case
'<'
:
...
@@ -865,7 +865,7 @@ int HTMLParser::_GetNextRawToken()
...
@@ -865,7 +865,7 @@ int HTMLParser::_GetNextRawToken()
sal_uLong
nLinePos
=
GetLinePos
();
sal_uLong
nLinePos
=
GetLinePos
();
// Start of an end token?
// Start of an end token?
int
bOffState
=
false
;
bool
bOffState
=
false
;
if
(
'/'
==
(
nNextCh
=
GetNextChar
())
)
if
(
'/'
==
(
nNextCh
=
GetNextChar
())
)
{
{
bOffState
=
true
;
bOffState
=
true
;
...
@@ -1089,7 +1089,7 @@ int HTMLParser::_GetNextToken()
...
@@ -1089,7 +1089,7 @@ int HTMLParser::_GetNextToken()
}
}
do
{
do
{
int
bNextCh
=
true
;
bool
bNextCh
=
true
;
switch
(
nNextCh
)
switch
(
nNextCh
)
{
{
case
'<'
:
case
'<'
:
...
@@ -1098,7 +1098,7 @@ int HTMLParser::_GetNextToken()
...
@@ -1098,7 +1098,7 @@ int HTMLParser::_GetNextToken()
sal_uLong
nLineNr
=
GetLineNr
();
sal_uLong
nLineNr
=
GetLineNr
();
sal_uLong
nLinePos
=
GetLinePos
();
sal_uLong
nLinePos
=
GetLinePos
();
int
bOffState
=
false
;
bool
bOffState
=
false
;
if
(
'/'
==
(
nNextCh
=
GetNextChar
())
)
if
(
'/'
==
(
nNextCh
=
GetNextChar
())
)
{
{
bOffState
=
true
;
bOffState
=
true
;
...
...
svtools/source/svrtf/parrtf.cxx
Dosyayı görüntüle @
e7a86f2d
...
@@ -54,7 +54,7 @@ int SvRTFParser::_GetNextToken()
...
@@ -54,7 +54,7 @@ int SvRTFParser::_GetNextToken()
{
{
int
nRet
=
0
;
int
nRet
=
0
;
do
{
do
{
int
bNextCh
=
true
;
bool
bNextCh
=
true
;
switch
(
nNextCh
)
switch
(
nNextCh
)
{
{
case
'\\'
:
case
'\\'
:
...
@@ -116,7 +116,7 @@ int SvRTFParser::_GetNextToken()
...
@@ -116,7 +116,7 @@ int SvRTFParser::_GetNextToken()
}
}
// minus before numeric parameters
// minus before numeric parameters
int
bNegValue
=
false
;
bool
bNegValue
=
false
;
if
(
'-'
==
nNextCh
)
if
(
'-'
==
nNextCh
)
{
{
bNegValue
=
true
;
bNegValue
=
true
;
...
@@ -304,10 +304,10 @@ sal_Unicode SvRTFParser::GetHexValue()
...
@@ -304,10 +304,10 @@ sal_Unicode SvRTFParser::GetHexValue()
void
SvRTFParser
::
ScanText
(
const
sal_Unicode
cBreak
)
void
SvRTFParser
::
ScanText
(
const
sal_Unicode
cBreak
)
{
{
OUStringBuffer
aStrBuffer
;
OUStringBuffer
aStrBuffer
;
int
bContinue
=
true
;
bool
bContinue
=
true
;
while
(
bContinue
&&
IsParserWorking
()
&&
aStrBuffer
.
getLength
()
<
MAX_STRING_LEN
)
while
(
bContinue
&&
IsParserWorking
()
&&
aStrBuffer
.
getLength
()
<
MAX_STRING_LEN
)
{
{
int
bNextCh
=
true
;
bool
bNextCh
=
true
;
switch
(
nNextCh
)
switch
(
nNextCh
)
{
{
case
'\\'
:
case
'\\'
:
...
...
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