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
8ef9d651
Kaydet (Commit)
8ef9d651
authored
Ara 02, 2013
tarafından
Kohei Yoshida
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Remove inline methods from the header.
Change-Id: Ie2cff194c1db5eaa992c4bcaaa06ec9a419d85a7
üst
4ba42fc8
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
23 additions
and
5 deletions
+23
-5
fastparser.cxx
sax/source/fastparser/fastparser.cxx
+18
-0
fastparser.hxx
sax/source/fastparser/fastparser.hxx
+5
-5
No files found.
sax/source/fastparser/fastparser.cxx
Dosyayı görüntüle @
8ef9d651
...
...
@@ -81,6 +81,9 @@ static int call_callbackExternalEntityRef( XML_Parser parser,
namespace
sax_fastparser
{
NameWithToken
::
NameWithToken
(
const
OUString
&
sName
,
const
sal_Int32
&
nToken
)
:
msName
(
sName
),
mnToken
(
nToken
)
{}
SaxContext
::
SaxContext
(
sal_Int32
nElementToken
,
const
OUString
&
aNamespace
,
const
OUString
&
aElementName
)
:
mnElementToken
(
nElementToken
)
{
...
...
@@ -847,6 +850,21 @@ bool FastSaxParser::consume(EventList *pEventList)
return
true
;
}
void
FastSaxParser
::
pushEntity
(
const
Entity
&
rEntity
)
{
maEntities
.
push
(
rEntity
);
}
void
FastSaxParser
::
popEntity
()
{
maEntities
.
pop
();
}
Entity
&
FastSaxParser
::
getEntity
()
{
return
maEntities
.
top
();
}
// starts parsing with actual parser !
void
FastSaxParser
::
parse
()
{
...
...
sax/source/fastparser/fastparser.hxx
Dosyayı görüntüle @
8ef9d651
...
...
@@ -58,8 +58,8 @@ struct NameWithToken
{
OUString
msName
;
sal_Int32
mnToken
;
NameWithToken
(
const
OUString
&
sName
,
const
sal_Int32
&
nToken
)
:
msName
(
sName
),
mnToken
(
nToken
)
{}
NameWithToken
(
const
OUString
&
sName
,
const
sal_Int32
&
nToken
);
};
typedef
std
::
vector
<
Event
>
EventList
;
...
...
@@ -193,9 +193,9 @@ public:
const
XML_Char
*
systemId
,
const
XML_Char
*
publicId
,
const
XML_Char
*
notationName
);
void
pushEntity
(
const
Entity
&
rEntity
)
{
maEntities
.
push
(
rEntity
);
}
void
popEntity
()
{
maEntities
.
pop
();
}
Entity
&
getEntity
()
{
return
maEntities
.
top
();
}
void
pushEntity
(
const
Entity
&
rEntity
)
;
void
popEntity
()
;
Entity
&
getEntity
()
;
void
parse
();
void
produce
(
CallbackType
aType
);
...
...
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