75 lines
2.6 KiB
C++
75 lines
2.6 KiB
C++
// Copyright (c) 1994 James Clark
|
|
// See the file COPYING for copying permission.
|
|
|
|
#ifndef Mode_INCLUDED
|
|
#define Mode_INCLUDED 1
|
|
|
|
#ifdef SP_NAMESPACE
|
|
namespace SP_NAMESPACE {
|
|
#endif
|
|
|
|
enum Mode {
|
|
grpMode, // group
|
|
alitMode, // attribute value literals starting with LIT
|
|
alitaMode, // attribute value literals starting with LITA
|
|
aliteMode, // attribute value literals inside entity
|
|
talitMode, // tokenized attribute value literal
|
|
talitaMode,
|
|
taliteMode,
|
|
mdMode, // markup declaration
|
|
mdMinusMode, // markup declaration, also recognize minus
|
|
mdPeroMode, // markup declaration, also recognize pero
|
|
sdMode,
|
|
comMode, // comment
|
|
sdcomMode, // comment in an SGML declaration
|
|
piMode, // processing instruction
|
|
refMode, // reference
|
|
imsMode, // ignored marked section
|
|
cmsMode, // cdata marked section
|
|
rcmsMode, // rcdata marked section
|
|
// These modes are needed only for the prologue.
|
|
proMode, // prologue
|
|
dsMode, // declaration subset not in marked section
|
|
// nor in entity
|
|
dsiMode, // declaration subset in marked section or
|
|
// in entity
|
|
plitMode, // parameter literal starting with LIT
|
|
plitaMode, // paramater literal starting with LITA
|
|
pliteMode, // parameter literal inside entity
|
|
sdplitMode, // parameter literal starting with LIT
|
|
// in an SGML declaration
|
|
sdplitaMode, // parameter literal starting with LIT
|
|
// in an SGML declaration
|
|
grpsufMode, // group suffix
|
|
mlitMode, // minimum literal starting with LIT
|
|
mlitaMode, // minimum literal starting with LITA
|
|
asMode, // data/link/result attribute specification
|
|
piPasMode, // pi pseudo-attribute specification
|
|
slitMode, // system id literal starting with LIT
|
|
slitaMode, // system id literal starting with LITA
|
|
sdslitMode, // system id literal starting with LIT
|
|
// in an SGML declaration
|
|
sdslitaMode, // system id literal starting with LITA
|
|
// in an SGML declaration
|
|
// These modes are needed only for the instance.
|
|
cconMode, // CDATA content
|
|
rcconMode, // RCDATA content
|
|
cconnetMode, // CDATA content, recognize NET
|
|
rcconnetMode, // RCDATA content, recognize NET
|
|
rcconeMode, // RCDATA content inside entity
|
|
tagMode, // start- or end-tag
|
|
econMode, // element content
|
|
mconMode, // mixed content
|
|
econnetMode, // element content, recognize NET
|
|
mconnetMode // mixed content, recognize NET
|
|
};
|
|
|
|
const int nModes = mconnetMode + 1;
|
|
|
|
const int minShortrefMode = econMode;
|
|
|
|
#ifdef SP_NAMESPACE
|
|
}
|
|
#endif
|
|
|
|
#endif /* not Mode_INCLUDED */
|