Geant4-11
Macros | Typedefs | Functions | Variables
xmlrole.cc File Reference
#include <stddef.h>
#include "expat_external.h"
#include "internal.h"
#include "xmlrole.h"
#include "ascii.h"

Go to the source code of this file.

Macros

#define MIN_BYTES_PER_CHAR(enc)   ((enc)->minBytesPerChar)
 
#define setTopLevel(state)   ((state)->handler = internalSubset)
 

Typedefs

typedef int PTRCALL PROLOG_HANDLER(PROLOG_STATE *state, int tok, const char *ptr, const char *end, const ENCODING *enc)
 

Functions

static int PTRCALL attlist0 (PROLOG_STATE *state, int tok, const char *ptr, const char *end, const ENCODING *enc)
 
static int PTRCALL attlist1 (PROLOG_STATE *state, int tok, const char *ptr, const char *end, const ENCODING *enc)
 
static int PTRCALL attlist2 (PROLOG_STATE *state, int tok, const char *ptr, const char *end, const ENCODING *enc)
 
static int PTRCALL attlist3 (PROLOG_STATE *state, int tok, const char *ptr, const char *end, const ENCODING *enc)
 
static int PTRCALL attlist4 (PROLOG_STATE *state, int tok, const char *ptr, const char *end, const ENCODING *enc)
 
static int PTRCALL attlist5 (PROLOG_STATE *state, int tok, const char *ptr, const char *end, const ENCODING *enc)
 
static int PTRCALL attlist6 (PROLOG_STATE *state, int tok, const char *ptr, const char *end, const ENCODING *enc)
 
static int PTRCALL attlist7 (PROLOG_STATE *state, int tok, const char *ptr, const char *end, const ENCODING *enc)
 
static int PTRCALL attlist8 (PROLOG_STATE *state, int tok, const char *ptr, const char *end, const ENCODING *enc)
 
static int PTRCALL attlist9 (PROLOG_STATE *state, int tok, const char *ptr, const char *end, const ENCODING *enc)
 
static int FASTCALL common (PROLOG_STATE *state, int tok)
 
static int PTRCALL declClose (PROLOG_STATE *state, int tok, const char *ptr, const char *end, const ENCODING *enc)
 
static int PTRCALL doctype0 (PROLOG_STATE *state, int tok, const char *ptr, const char *end, const ENCODING *enc)
 
static int PTRCALL doctype1 (PROLOG_STATE *state, int tok, const char *ptr, const char *end, const ENCODING *enc)
 
static int PTRCALL doctype2 (PROLOG_STATE *state, int tok, const char *ptr, const char *end, const ENCODING *enc)
 
static int PTRCALL doctype3 (PROLOG_STATE *state, int tok, const char *ptr, const char *end, const ENCODING *enc)
 
static int PTRCALL doctype4 (PROLOG_STATE *state, int tok, const char *ptr, const char *end, const ENCODING *enc)
 
static int PTRCALL doctype5 (PROLOG_STATE *state, int tok, const char *ptr, const char *end, const ENCODING *enc)
 
static int PTRCALL element0 (PROLOG_STATE *state, int tok, const char *ptr, const char *end, const ENCODING *enc)
 
static int PTRCALL element1 (PROLOG_STATE *state, int tok, const char *ptr, const char *end, const ENCODING *enc)
 
static int PTRCALL element2 (PROLOG_STATE *state, int tok, const char *ptr, const char *end, const ENCODING *enc)
 
static int PTRCALL element3 (PROLOG_STATE *state, int tok, const char *ptr, const char *end, const ENCODING *enc)
 
static int PTRCALL element4 (PROLOG_STATE *state, int tok, const char *ptr, const char *end, const ENCODING *enc)
 
static int PTRCALL element5 (PROLOG_STATE *state, int tok, const char *ptr, const char *end, const ENCODING *enc)
 
static int PTRCALL element6 (PROLOG_STATE *state, int tok, const char *ptr, const char *end, const ENCODING *enc)
 
static int PTRCALL element7 (PROLOG_STATE *state, int tok, const char *ptr, const char *end, const ENCODING *enc)
 
static int PTRCALL entity0 (PROLOG_STATE *state, int tok, const char *ptr, const char *end, const ENCODING *enc)
 
static int PTRCALL entity1 (PROLOG_STATE *state, int tok, const char *ptr, const char *end, const ENCODING *enc)
 
static int PTRCALL entity10 (PROLOG_STATE *state, int tok, const char *ptr, const char *end, const ENCODING *enc)
 
static int PTRCALL entity2 (PROLOG_STATE *state, int tok, const char *ptr, const char *end, const ENCODING *enc)
 
static int PTRCALL entity3 (PROLOG_STATE *state, int tok, const char *ptr, const char *end, const ENCODING *enc)
 
static int PTRCALL entity4 (PROLOG_STATE *state, int tok, const char *ptr, const char *end, const ENCODING *enc)
 
static int PTRCALL entity5 (PROLOG_STATE *state, int tok, const char *ptr, const char *end, const ENCODING *enc)
 
static int PTRCALL entity6 (PROLOG_STATE *state, int tok, const char *ptr, const char *end, const ENCODING *enc)
 
static int PTRCALL entity7 (PROLOG_STATE *state, int tok, const char *ptr, const char *end, const ENCODING *enc)
 
static int PTRCALL entity8 (PROLOG_STATE *state, int tok, const char *ptr, const char *end, const ENCODING *enc)
 
static int PTRCALL entity9 (PROLOG_STATE *state, int tok, const char *ptr, const char *end, const ENCODING *enc)
 
static int PTRCALL error (PROLOG_STATE *state, int tok, const char *ptr, const char *end, const ENCODING *enc)
 
static int PTRCALL internalSubset (PROLOG_STATE *state, int tok, const char *ptr, const char *end, const ENCODING *enc)
 
static int PTRCALL notation0 (PROLOG_STATE *state, int tok, const char *ptr, const char *end, const ENCODING *enc)
 
static int PTRCALL notation1 (PROLOG_STATE *state, int tok, const char *ptr, const char *end, const ENCODING *enc)
 
static int PTRCALL notation2 (PROLOG_STATE *state, int tok, const char *ptr, const char *end, const ENCODING *enc)
 
static int PTRCALL notation3 (PROLOG_STATE *state, int tok, const char *ptr, const char *end, const ENCODING *enc)
 
static int PTRCALL notation4 (PROLOG_STATE *state, int tok, const char *ptr, const char *end, const ENCODING *enc)
 
static int PTRCALL prolog0 (PROLOG_STATE *state, int tok, const char *ptr, const char *end, const ENCODING *enc)
 
static int PTRCALL prolog1 (PROLOG_STATE *state, int tok, const char *ptr, const char *end, const ENCODING *enc)
 
static int PTRCALL prolog2 (PROLOG_STATE *state, int tok, const char *ptr, const char *end, const ENCODING *enc)
 
void XmlPrologStateInit (PROLOG_STATE *state)
 

Variables

static PROLOG_HANDLER attlist0
 
static PROLOG_HANDLER attlist1
 
static PROLOG_HANDLER attlist2
 
static PROLOG_HANDLER attlist3
 
static PROLOG_HANDLER attlist4
 
static PROLOG_HANDLER attlist5
 
static PROLOG_HANDLER attlist6
 
static PROLOG_HANDLER attlist7
 
static PROLOG_HANDLER attlist8
 
static PROLOG_HANDLER attlist9
 
static PROLOG_HANDLER declClose
 
static PROLOG_HANDLER doctype0
 
static PROLOG_HANDLER doctype1
 
static PROLOG_HANDLER doctype2
 
static PROLOG_HANDLER doctype3
 
static PROLOG_HANDLER doctype4
 
static PROLOG_HANDLER doctype5
 
static PROLOG_HANDLER element0
 
static PROLOG_HANDLER element1
 
static PROLOG_HANDLER element2
 
static PROLOG_HANDLER element3
 
static PROLOG_HANDLER element4
 
static PROLOG_HANDLER element5
 
static PROLOG_HANDLER element6
 
static PROLOG_HANDLER element7
 
static PROLOG_HANDLER entity0
 
static PROLOG_HANDLER entity1
 
static PROLOG_HANDLER entity10
 
static PROLOG_HANDLER entity2
 
static PROLOG_HANDLER entity3
 
static PROLOG_HANDLER entity4
 
static PROLOG_HANDLER entity5
 
static PROLOG_HANDLER entity6
 
static PROLOG_HANDLER entity7
 
static PROLOG_HANDLER entity8
 
static PROLOG_HANDLER entity9
 
static PROLOG_HANDLER error
 
static PROLOG_HANDLER internalSubset
 
static const char KW_ANY []
 
static const char KW_ATTLIST []
 
static const char KW_CDATA []
 
static const char KW_DOCTYPE []
 
static const char KW_ELEMENT []
 
static const char KW_EMPTY []
 
static const char KW_ENTITIES []
 
static const char KW_ENTITY []
 
static const char KW_FIXED []
 
static const char KW_ID []
 
static const char KW_IDREF []
 
static const char KW_IDREFS []
 
static const char KW_IMPLIED []
 
static const char KW_NDATA []
 
static const char KW_NMTOKEN []
 
static const char KW_NMTOKENS []
 
static const char KW_NOTATION []
 
static const char KW_PCDATA []
 
static const char KW_PUBLIC []
 
static const char KW_REQUIRED []
 
static const char KW_SYSTEM []
 
static PROLOG_HANDLER notation0
 
static PROLOG_HANDLER notation1
 
static PROLOG_HANDLER notation2
 
static PROLOG_HANDLER notation3
 
static PROLOG_HANDLER notation4
 
static PROLOG_HANDLER prolog0
 
static PROLOG_HANDLER prolog1
 
static PROLOG_HANDLER prolog2
 

Macro Definition Documentation

◆ MIN_BYTES_PER_CHAR

#define MIN_BYTES_PER_CHAR (   enc)    ((enc)->minBytesPerChar)

Definition at line 93 of file xmlrole.cc.

◆ setTopLevel

#define setTopLevel (   state)    ((state)->handler = internalSubset)

Definition at line 102 of file xmlrole.cc.

Typedef Documentation

◆ PROLOG_HANDLER

typedef int PTRCALL PROLOG_HANDLER(PROLOG_STATE *state, int tok, const char *ptr, const char *end, const ENCODING *enc)

Definition at line 105 of file xmlrole.cc.

Function Documentation

◆ attlist0()

static int PTRCALL attlist0 ( PROLOG_STATE state,
int  tok,
const char *  ptr,
const char *  end,
const ENCODING enc 
)
static

Definition at line 758 of file xmlrole.cc.

763{
764 switch (tok) {
765 case XML_TOK_PROLOG_S:
767 case XML_TOK_NAME:
769 state->handler = attlist1;
771 }
772 return common(state, tok);
773}
static int FASTCALL common(PROLOG_STATE *state, int tok)
Definition: xmlrole.cc:1309
static PROLOG_HANDLER attlist1
Definition: xmlrole.cc:118
@ XML_ROLE_ATTLIST_ELEMENT_NAME
Definition: xmlrole.h:56
@ XML_ROLE_ATTLIST_NONE
Definition: xmlrole.h:55
#define XML_TOK_NAME
Definition: xmltok.h:49
#define XML_TOK_PREFIXED_NAME
Definition: xmltok.h:82
#define XML_TOK_PROLOG_S
Definition: xmltok.h:46

References attlist1, common(), XML_ROLE_ATTLIST_ELEMENT_NAME, XML_ROLE_ATTLIST_NONE, XML_TOK_NAME, XML_TOK_PREFIXED_NAME, and XML_TOK_PROLOG_S.

◆ attlist1()

static int PTRCALL attlist1 ( PROLOG_STATE state,
int  tok,
const char *  ptr,
const char *  end,
const ENCODING enc 
)
static

Definition at line 776 of file xmlrole.cc.

781{
782 switch (tok) {
783 case XML_TOK_PROLOG_S:
786 setTopLevel(state);
788 case XML_TOK_NAME:
790 state->handler = attlist2;
792 }
793 return common(state, tok);
794}
#define setTopLevel(state)
Definition: xmlrole.cc:102
static PROLOG_HANDLER attlist2
Definition: xmlrole.cc:118
@ XML_ROLE_ATTRIBUTE_NAME
Definition: xmlrole.h:44
#define XML_TOK_DECL_CLOSE
Definition: xmltok.h:48

References attlist2, common(), setTopLevel, XML_ROLE_ATTLIST_NONE, XML_ROLE_ATTRIBUTE_NAME, XML_TOK_DECL_CLOSE, XML_TOK_NAME, XML_TOK_PREFIXED_NAME, and XML_TOK_PROLOG_S.

◆ attlist2()

static int PTRCALL attlist2 ( PROLOG_STATE state,
int  tok,
const char *  ptr,
const char *  end,
const ENCODING enc 
)
static

Definition at line 797 of file xmlrole.cc.

802{
803 switch (tok) {
804 case XML_TOK_PROLOG_S:
806 case XML_TOK_NAME:
807 {
808 static const char * const types[] = {
809 KW_CDATA,
810 KW_ID,
811 KW_IDREF,
812 KW_IDREFS,
813 KW_ENTITY,
817 };
818 int i;
819 for (i = 0; i < (int)(sizeof(types)/sizeof(types[0])); i++)
820 if (XmlNameMatchesAscii(enc, ptr, end, types[i])) {
821 state->handler = attlist8;
823 }
824 }
825 if (XmlNameMatchesAscii(enc, ptr, end, KW_NOTATION)) {
826 state->handler = attlist5;
828 }
829 break;
831 state->handler = attlist3;
833 }
834 return common(state, tok);
835}
static const char KW_NOTATION[]
Definition: xmlrole.cc:79
static PROLOG_HANDLER attlist8
Definition: xmlrole.cc:119
static const char KW_NMTOKENS[]
Definition: xmlrole.cc:76
static const char KW_NMTOKEN[]
Definition: xmlrole.cc:74
static const char KW_ENTITIES[]
Definition: xmlrole.cc:49
static const char KW_IDREFS[]
Definition: xmlrole.cc:60
static const char KW_CDATA[]
Definition: xmlrole.cc:41
static const char KW_IDREF[]
Definition: xmlrole.cc:58
static PROLOG_HANDLER attlist5
Definition: xmlrole.cc:118
static const char KW_ENTITY[]
Definition: xmlrole.cc:52
static PROLOG_HANDLER attlist3
Definition: xmlrole.cc:118
static const char KW_ID[]
Definition: xmlrole.cc:56
@ XML_ROLE_ATTRIBUTE_TYPE_CDATA
Definition: xmlrole.h:45
#define XML_TOK_OPEN_PAREN
Definition: xmltok.h:54
#define XmlNameMatchesAscii(enc, ptr1, end1, ptr2)
Definition: xmltok.h:229

References attlist3, attlist5, attlist8, common(), KW_CDATA, KW_ENTITIES, KW_ENTITY, KW_ID, KW_IDREF, KW_IDREFS, KW_NMTOKEN, KW_NMTOKENS, KW_NOTATION, XML_ROLE_ATTLIST_NONE, XML_ROLE_ATTRIBUTE_TYPE_CDATA, XML_TOK_NAME, XML_TOK_OPEN_PAREN, XML_TOK_PROLOG_S, and XmlNameMatchesAscii.

◆ attlist3()

static int PTRCALL attlist3 ( PROLOG_STATE state,
int  tok,
const char *  ptr,
const char *  end,
const ENCODING enc 
)
static

Definition at line 838 of file xmlrole.cc.

843{
844 switch (tok) {
845 case XML_TOK_PROLOG_S:
847 case XML_TOK_NMTOKEN:
848 case XML_TOK_NAME:
850 state->handler = attlist4;
852 }
853 return common(state, tok);
854}
static PROLOG_HANDLER attlist4
Definition: xmlrole.cc:118
@ XML_ROLE_ATTRIBUTE_ENUM_VALUE
Definition: xmlrole.h:53
#define XML_TOK_NMTOKEN
Definition: xmltok.h:50

References attlist4, common(), XML_ROLE_ATTLIST_NONE, XML_ROLE_ATTRIBUTE_ENUM_VALUE, XML_TOK_NAME, XML_TOK_NMTOKEN, XML_TOK_PREFIXED_NAME, and XML_TOK_PROLOG_S.

◆ attlist4()

static int PTRCALL attlist4 ( PROLOG_STATE state,
int  tok,
const char *  ptr,
const char *  end,
const ENCODING enc 
)
static

Definition at line 857 of file xmlrole.cc.

862{
863 switch (tok) {
864 case XML_TOK_PROLOG_S:
867 state->handler = attlist8;
869 case XML_TOK_OR:
870 state->handler = attlist3;
872 }
873 return common(state, tok);
874}
#define XML_TOK_CLOSE_PAREN
Definition: xmltok.h:55
#define XML_TOK_OR
Definition: xmltok.h:52

References attlist3, attlist8, common(), XML_ROLE_ATTLIST_NONE, XML_TOK_CLOSE_PAREN, XML_TOK_OR, and XML_TOK_PROLOG_S.

◆ attlist5()

static int PTRCALL attlist5 ( PROLOG_STATE state,
int  tok,
const char *  ptr,
const char *  end,
const ENCODING enc 
)
static

Definition at line 877 of file xmlrole.cc.

882{
883 switch (tok) {
884 case XML_TOK_PROLOG_S:
887 state->handler = attlist6;
889 }
890 return common(state, tok);
891}
static PROLOG_HANDLER attlist6
Definition: xmlrole.cc:118

References attlist6, common(), XML_ROLE_ATTLIST_NONE, XML_TOK_OPEN_PAREN, and XML_TOK_PROLOG_S.

◆ attlist6()

static int PTRCALL attlist6 ( PROLOG_STATE state,
int  tok,
const char *  ptr,
const char *  end,
const ENCODING enc 
)
static

Definition at line 894 of file xmlrole.cc.

899{
900 switch (tok) {
901 case XML_TOK_PROLOG_S:
903 case XML_TOK_NAME:
904 state->handler = attlist7;
906 }
907 return common(state, tok);
908}
static PROLOG_HANDLER attlist7
Definition: xmlrole.cc:119
@ XML_ROLE_ATTRIBUTE_NOTATION_VALUE
Definition: xmlrole.h:54

References attlist7, common(), XML_ROLE_ATTLIST_NONE, XML_ROLE_ATTRIBUTE_NOTATION_VALUE, XML_TOK_NAME, and XML_TOK_PROLOG_S.

◆ attlist7()

static int PTRCALL attlist7 ( PROLOG_STATE state,
int  tok,
const char *  ptr,
const char *  end,
const ENCODING enc 
)
static

Definition at line 911 of file xmlrole.cc.

916{
917 switch (tok) {
918 case XML_TOK_PROLOG_S:
921 state->handler = attlist8;
923 case XML_TOK_OR:
924 state->handler = attlist6;
926 }
927 return common(state, tok);
928}

References attlist6, attlist8, common(), XML_ROLE_ATTLIST_NONE, XML_TOK_CLOSE_PAREN, XML_TOK_OR, and XML_TOK_PROLOG_S.

◆ attlist8()

static int PTRCALL attlist8 ( PROLOG_STATE state,
int  tok,
const char *  ptr,
const char *  end,
const ENCODING enc 
)
static

Definition at line 932 of file xmlrole.cc.

937{
938 switch (tok) {
939 case XML_TOK_PROLOG_S:
942 if (XmlNameMatchesAscii(enc,
943 ptr + MIN_BYTES_PER_CHAR(enc),
944 end,
945 KW_IMPLIED)) {
946 state->handler = attlist1;
948 }
949 if (XmlNameMatchesAscii(enc,
950 ptr + MIN_BYTES_PER_CHAR(enc),
951 end,
952 KW_REQUIRED)) {
953 state->handler = attlist1;
955 }
956 if (XmlNameMatchesAscii(enc,
957 ptr + MIN_BYTES_PER_CHAR(enc),
958 end,
959 KW_FIXED)) {
960 state->handler = attlist9;
962 }
963 break;
964 case XML_TOK_LITERAL:
965 state->handler = attlist1;
967 }
968 return common(state, tok);
969}
static const char KW_FIXED[]
Definition: xmlrole.cc:54
static PROLOG_HANDLER attlist9
Definition: xmlrole.cc:119
#define MIN_BYTES_PER_CHAR(enc)
Definition: xmlrole.cc:93
static const char KW_REQUIRED[]
Definition: xmlrole.cc:86
static const char KW_IMPLIED[]
Definition: xmlrole.cc:66
@ XML_ROLE_IMPLIED_ATTRIBUTE_VALUE
Definition: xmlrole.h:57
@ XML_ROLE_DEFAULT_ATTRIBUTE_VALUE
Definition: xmlrole.h:59
@ XML_ROLE_REQUIRED_ATTRIBUTE_VALUE
Definition: xmlrole.h:58
#define XML_TOK_POUND_NAME
Definition: xmltok.h:51
#define XML_TOK_LITERAL
Definition: xmltok.h:58

References attlist1, attlist9, common(), KW_FIXED, KW_IMPLIED, KW_REQUIRED, MIN_BYTES_PER_CHAR, XML_ROLE_ATTLIST_NONE, XML_ROLE_DEFAULT_ATTRIBUTE_VALUE, XML_ROLE_IMPLIED_ATTRIBUTE_VALUE, XML_ROLE_REQUIRED_ATTRIBUTE_VALUE, XML_TOK_LITERAL, XML_TOK_POUND_NAME, XML_TOK_PROLOG_S, and XmlNameMatchesAscii.

◆ attlist9()

static int PTRCALL attlist9 ( PROLOG_STATE state,
int  tok,
const char *  ptr,
const char *  end,
const ENCODING enc 
)
static

Definition at line 972 of file xmlrole.cc.

977{
978 switch (tok) {
979 case XML_TOK_PROLOG_S:
981 case XML_TOK_LITERAL:
982 state->handler = attlist1;
984 }
985 return common(state, tok);
986}
@ XML_ROLE_FIXED_ATTRIBUTE_VALUE
Definition: xmlrole.h:60

References attlist1, common(), XML_ROLE_ATTLIST_NONE, XML_ROLE_FIXED_ATTRIBUTE_VALUE, XML_TOK_LITERAL, and XML_TOK_PROLOG_S.

◆ common()

static int FASTCALL common ( PROLOG_STATE state,
int  tok 
)
static

Definition at line 1309 of file xmlrole.cc.

1310{
1311#ifdef XML_DTD
1312 if (!state->documentEntity && tok == XML_TOK_PARAM_ENTITY_REF)
1313 return XML_ROLE_INNER_PARAM_ENTITY_REF;
1314#endif
1315 state->handler = error;
1316 return XML_ROLE_ERROR;
1317}
static PROLOG_HANDLER error
Definition: xmlrole.cc:127
@ XML_ROLE_ERROR
Definition: xmlrole.h:21
#define XML_TOK_PARAM_ENTITY_REF
Definition: xmltok.h:59

References error, XML_ROLE_ERROR, and XML_TOK_PARAM_ENTITY_REF.

Referenced by G4FTFModel::AdjustNucleons(), G4FTFModel::AdjustNucleonsAlgorithm_afterSampling(), G4FTFModel::AdjustNucleonsAlgorithm_beforeSampling(), G4FTFModel::AdjustNucleonsAlgorithm_Sampling(), G4FTFAnnihilation::Annihilate(), attlist0(), attlist1(), attlist2(), attlist3(), attlist4(), attlist5(), attlist6(), attlist7(), attlist8(), attlist9(), G4FTFAnnihilation::Create1DiquarkAntiDiquarkString(), G4FTFAnnihilation::Create1QuarkAntiQuarkString(), G4FTFAnnihilation::Create2QuarkAntiQuarkStrings(), G4FTFAnnihilation::Create3QuarkAntiQuarkStrings(), declClose(), doctype0(), doctype1(), doctype2(), doctype3(), doctype4(), doctype5(), element0(), element1(), element2(), element3(), element4(), element5(), element6(), element7(), entity0(), entity1(), entity10(), entity2(), entity3(), entity4(), entity5(), entity6(), entity7(), entity8(), entity9(), G4DiffractiveExcitation::ExciteParticipants(), G4DiffractiveExcitation::ExciteParticipants_doChargeExchange(), G4DiffractiveExcitation::ExciteParticipants_doDiffraction(), G4DiffractiveExcitation::ExciteParticipants_doNonDiffraction(), internalSubset(), notation0(), notation1(), notation2(), notation3(), notation4(), prolog0(), prolog1(), and prolog2().

◆ declClose()

static int PTRCALL declClose ( PROLOG_STATE state,
int  tok,
const char *  ptr,
const char *  end,
const ENCODING enc 
)
static

Definition at line 1282 of file xmlrole.cc.

1287{
1288 switch (tok) {
1289 case XML_TOK_PROLOG_S:
1290 return state->role_none;
1291 case XML_TOK_DECL_CLOSE:
1292 setTopLevel(state);
1293 return state->role_none;
1294 }
1295 return common(state, tok);
1296}
int role_none
Definition: xmlrole.h:94

References common(), prolog_state::role_none, setTopLevel, XML_TOK_DECL_CLOSE, and XML_TOK_PROLOG_S.

◆ doctype0()

static int PTRCALL doctype0 ( PROLOG_STATE state,
int  tok,
const char *  ptr,
const char *  end,
const ENCODING enc 
)
static

Definition at line 221 of file xmlrole.cc.

226{
227 switch (tok) {
228 case XML_TOK_PROLOG_S:
230 case XML_TOK_NAME:
232 state->handler = doctype1;
234 }
235 return common(state, tok);
236}
static PROLOG_HANDLER doctype1
Definition: xmlrole.cc:113
@ XML_ROLE_DOCTYPE_NONE
Definition: xmlrole.h:25
@ XML_ROLE_DOCTYPE_NAME
Definition: xmlrole.h:26

References common(), doctype1, XML_ROLE_DOCTYPE_NAME, XML_ROLE_DOCTYPE_NONE, XML_TOK_NAME, XML_TOK_PREFIXED_NAME, and XML_TOK_PROLOG_S.

◆ doctype1()

static int PTRCALL doctype1 ( PROLOG_STATE state,
int  tok,
const char *  ptr,
const char *  end,
const ENCODING enc 
)
static

Definition at line 239 of file xmlrole.cc.

244{
245 switch (tok) {
246 case XML_TOK_PROLOG_S:
249 state->handler = internalSubset;
252 state->handler = prolog2;
254 case XML_TOK_NAME:
255 if (XmlNameMatchesAscii(enc, ptr, end, KW_SYSTEM)) {
256 state->handler = doctype3;
258 }
259 if (XmlNameMatchesAscii(enc, ptr, end, KW_PUBLIC)) {
260 state->handler = doctype2;
262 }
263 break;
264 }
265 return common(state, tok);
266}
static PROLOG_HANDLER prolog2
Definition: xmlrole.cc:112
static PROLOG_HANDLER doctype2
Definition: xmlrole.cc:113
static PROLOG_HANDLER internalSubset
Definition: xmlrole.cc:114
static const char KW_SYSTEM[]
Definition: xmlrole.cc:89
static const char KW_PUBLIC[]
Definition: xmlrole.cc:84
static PROLOG_HANDLER doctype3
Definition: xmlrole.cc:113
@ XML_ROLE_DOCTYPE_INTERNAL_SUBSET
Definition: xmlrole.h:29
@ XML_ROLE_DOCTYPE_CLOSE
Definition: xmlrole.h:30
#define XML_TOK_OPEN_BRACKET
Definition: xmltok.h:56

References common(), doctype2, doctype3, internalSubset, KW_PUBLIC, KW_SYSTEM, prolog2, XML_ROLE_DOCTYPE_CLOSE, XML_ROLE_DOCTYPE_INTERNAL_SUBSET, XML_ROLE_DOCTYPE_NONE, XML_TOK_DECL_CLOSE, XML_TOK_NAME, XML_TOK_OPEN_BRACKET, XML_TOK_PROLOG_S, and XmlNameMatchesAscii.

◆ doctype2()

static int PTRCALL doctype2 ( PROLOG_STATE state,
int  tok,
const char *  ptr,
const char *  end,
const ENCODING enc 
)
static

Definition at line 269 of file xmlrole.cc.

274{
275 switch (tok) {
276 case XML_TOK_PROLOG_S:
278 case XML_TOK_LITERAL:
279 state->handler = doctype3;
281 }
282 return common(state, tok);
283}
@ XML_ROLE_DOCTYPE_PUBLIC_ID
Definition: xmlrole.h:28

References common(), doctype3, XML_ROLE_DOCTYPE_NONE, XML_ROLE_DOCTYPE_PUBLIC_ID, XML_TOK_LITERAL, and XML_TOK_PROLOG_S.

◆ doctype3()

static int PTRCALL doctype3 ( PROLOG_STATE state,
int  tok,
const char *  ptr,
const char *  end,
const ENCODING enc 
)
static

Definition at line 286 of file xmlrole.cc.

291{
292 switch (tok) {
293 case XML_TOK_PROLOG_S:
295 case XML_TOK_LITERAL:
296 state->handler = doctype4;
298 }
299 return common(state, tok);
300}
static PROLOG_HANDLER doctype4
Definition: xmlrole.cc:113
@ XML_ROLE_DOCTYPE_SYSTEM_ID
Definition: xmlrole.h:27

References common(), doctype4, XML_ROLE_DOCTYPE_NONE, XML_ROLE_DOCTYPE_SYSTEM_ID, XML_TOK_LITERAL, and XML_TOK_PROLOG_S.

◆ doctype4()

static int PTRCALL doctype4 ( PROLOG_STATE state,
int  tok,
const char *  ptr,
const char *  end,
const ENCODING enc 
)
static

Definition at line 303 of file xmlrole.cc.

308{
309 switch (tok) {
310 case XML_TOK_PROLOG_S:
313 state->handler = internalSubset;
316 state->handler = prolog2;
318 }
319 return common(state, tok);
320}

References common(), internalSubset, prolog2, XML_ROLE_DOCTYPE_CLOSE, XML_ROLE_DOCTYPE_INTERNAL_SUBSET, XML_ROLE_DOCTYPE_NONE, XML_TOK_DECL_CLOSE, XML_TOK_OPEN_BRACKET, and XML_TOK_PROLOG_S.

◆ doctype5()

static int PTRCALL doctype5 ( PROLOG_STATE state,
int  tok,
const char *  ptr,
const char *  end,
const ENCODING enc 
)
static

Definition at line 323 of file xmlrole.cc.

328{
329 switch (tok) {
330 case XML_TOK_PROLOG_S:
333 state->handler = prolog2;
335 }
336 return common(state, tok);
337}

References common(), prolog2, XML_ROLE_DOCTYPE_CLOSE, XML_ROLE_DOCTYPE_NONE, XML_TOK_DECL_CLOSE, and XML_TOK_PROLOG_S.

◆ element0()

static int PTRCALL element0 ( PROLOG_STATE state,
int  tok,
const char *  ptr,
const char *  end,
const ENCODING enc 
)
static

Definition at line 989 of file xmlrole.cc.

994{
995 switch (tok) {
996 case XML_TOK_PROLOG_S:
998 case XML_TOK_NAME:
1000 state->handler = element1;
1001 return XML_ROLE_ELEMENT_NAME;
1002 }
1003 return common(state, tok);
1004}
static PROLOG_HANDLER element1
Definition: xmlrole.cc:120
@ XML_ROLE_ELEMENT_NONE
Definition: xmlrole.h:61
@ XML_ROLE_ELEMENT_NAME
Definition: xmlrole.h:62

References common(), element1, XML_ROLE_ELEMENT_NAME, XML_ROLE_ELEMENT_NONE, XML_TOK_NAME, XML_TOK_PREFIXED_NAME, and XML_TOK_PROLOG_S.

◆ element1()

static int PTRCALL element1 ( PROLOG_STATE state,
int  tok,
const char *  ptr,
const char *  end,
const ENCODING enc 
)
static

Definition at line 1007 of file xmlrole.cc.

1012{
1013 switch (tok) {
1014 case XML_TOK_PROLOG_S:
1015 return XML_ROLE_ELEMENT_NONE;
1016 case XML_TOK_NAME:
1017 if (XmlNameMatchesAscii(enc, ptr, end, KW_EMPTY)) {
1018 state->handler = declClose;
1021 }
1022 if (XmlNameMatchesAscii(enc, ptr, end, KW_ANY)) {
1023 state->handler = declClose;
1025 return XML_ROLE_CONTENT_ANY;
1026 }
1027 break;
1028 case XML_TOK_OPEN_PAREN:
1029 state->handler = element2;
1030 state->level = 1;
1031 return XML_ROLE_GROUP_OPEN;
1032 }
1033 return common(state, tok);
1034}
unsigned level
Definition: xmlrole.h:93
static PROLOG_HANDLER element2
Definition: xmlrole.cc:120
static const char KW_ANY[]
Definition: xmlrole.cc:37
static PROLOG_HANDLER declClose
Definition: xmlrole.cc:126
static const char KW_EMPTY[]
Definition: xmlrole.cc:47
@ XML_ROLE_CONTENT_ANY
Definition: xmlrole.h:63
@ XML_ROLE_GROUP_OPEN
Definition: xmlrole.h:66
@ XML_ROLE_CONTENT_EMPTY
Definition: xmlrole.h:64

References common(), declClose, element2, KW_ANY, KW_EMPTY, prolog_state::level, prolog_state::role_none, XML_ROLE_CONTENT_ANY, XML_ROLE_CONTENT_EMPTY, XML_ROLE_ELEMENT_NONE, XML_ROLE_GROUP_OPEN, XML_TOK_NAME, XML_TOK_OPEN_PAREN, XML_TOK_PROLOG_S, and XmlNameMatchesAscii.

◆ element2()

static int PTRCALL element2 ( PROLOG_STATE state,
int  tok,
const char *  ptr,
const char *  end,
const ENCODING enc 
)
static

Definition at line 1037 of file xmlrole.cc.

1042{
1043 switch (tok) {
1044 case XML_TOK_PROLOG_S:
1045 return XML_ROLE_ELEMENT_NONE;
1046 case XML_TOK_POUND_NAME:
1047 if (XmlNameMatchesAscii(enc,
1048 ptr + MIN_BYTES_PER_CHAR(enc),
1049 end,
1050 KW_PCDATA)) {
1051 state->handler = element3;
1053 }
1054 break;
1055 case XML_TOK_OPEN_PAREN:
1056 state->level = 2;
1057 state->handler = element6;
1058 return XML_ROLE_GROUP_OPEN;
1059 case XML_TOK_NAME:
1061 state->handler = element7;
1064 state->handler = element7;
1067 state->handler = element7;
1069 case XML_TOK_NAME_PLUS:
1070 state->handler = element7;
1072 }
1073 return common(state, tok);
1074}
static const char KW_PCDATA[]
Definition: xmlrole.cc:82
static PROLOG_HANDLER element6
Definition: xmlrole.cc:120
static PROLOG_HANDLER element7
Definition: xmlrole.cc:121
static PROLOG_HANDLER element3
Definition: xmlrole.cc:120
@ XML_ROLE_CONTENT_PCDATA
Definition: xmlrole.h:65
@ XML_ROLE_CONTENT_ELEMENT_REP
Definition: xmlrole.h:74
@ XML_ROLE_CONTENT_ELEMENT
Definition: xmlrole.h:73
@ XML_ROLE_CONTENT_ELEMENT_PLUS
Definition: xmlrole.h:76
@ XML_ROLE_CONTENT_ELEMENT_OPT
Definition: xmlrole.h:75
#define XML_TOK_NAME_ASTERISK
Definition: xmltok.h:64
#define XML_TOK_NAME_PLUS
Definition: xmltok.h:65
#define XML_TOK_NAME_QUESTION
Definition: xmltok.h:63

References common(), element3, element6, element7, KW_PCDATA, prolog_state::level, MIN_BYTES_PER_CHAR, XML_ROLE_CONTENT_ELEMENT, XML_ROLE_CONTENT_ELEMENT_OPT, XML_ROLE_CONTENT_ELEMENT_PLUS, XML_ROLE_CONTENT_ELEMENT_REP, XML_ROLE_CONTENT_PCDATA, XML_ROLE_ELEMENT_NONE, XML_ROLE_GROUP_OPEN, XML_TOK_NAME, XML_TOK_NAME_ASTERISK, XML_TOK_NAME_PLUS, XML_TOK_NAME_QUESTION, XML_TOK_OPEN_PAREN, XML_TOK_POUND_NAME, XML_TOK_PREFIXED_NAME, XML_TOK_PROLOG_S, and XmlNameMatchesAscii.

◆ element3()

static int PTRCALL element3 ( PROLOG_STATE state,
int  tok,
const char *  ptr,
const char *  end,
const ENCODING enc 
)
static

Definition at line 1077 of file xmlrole.cc.

1082{
1083 switch (tok) {
1084 case XML_TOK_PROLOG_S:
1085 return XML_ROLE_ELEMENT_NONE;
1087 state->handler = declClose;
1089 return XML_ROLE_GROUP_CLOSE;
1091 state->handler = declClose;
1094 case XML_TOK_OR:
1095 state->handler = element4;
1096 return XML_ROLE_ELEMENT_NONE;
1097 }
1098 return common(state, tok);
1099}
static PROLOG_HANDLER element4
Definition: xmlrole.cc:120
@ XML_ROLE_GROUP_CLOSE_REP
Definition: xmlrole.h:68
@ XML_ROLE_GROUP_CLOSE
Definition: xmlrole.h:67
#define XML_TOK_CLOSE_PAREN_ASTERISK
Definition: xmltok.h:69

References common(), declClose, element4, prolog_state::role_none, XML_ROLE_ELEMENT_NONE, XML_ROLE_GROUP_CLOSE, XML_ROLE_GROUP_CLOSE_REP, XML_TOK_CLOSE_PAREN, XML_TOK_CLOSE_PAREN_ASTERISK, XML_TOK_OR, and XML_TOK_PROLOG_S.

◆ element4()

static int PTRCALL element4 ( PROLOG_STATE state,
int  tok,
const char *  ptr,
const char *  end,
const ENCODING enc 
)
static

Definition at line 1102 of file xmlrole.cc.

1107{
1108 switch (tok) {
1109 case XML_TOK_PROLOG_S:
1110 return XML_ROLE_ELEMENT_NONE;
1111 case XML_TOK_NAME:
1113 state->handler = element5;
1115 }
1116 return common(state, tok);
1117}
static PROLOG_HANDLER element5
Definition: xmlrole.cc:120

References common(), element5, XML_ROLE_CONTENT_ELEMENT, XML_ROLE_ELEMENT_NONE, XML_TOK_NAME, XML_TOK_PREFIXED_NAME, and XML_TOK_PROLOG_S.

◆ element5()

static int PTRCALL element5 ( PROLOG_STATE state,
int  tok,
const char *  ptr,
const char *  end,
const ENCODING enc 
)
static

Definition at line 1120 of file xmlrole.cc.

1125{
1126 switch (tok) {
1127 case XML_TOK_PROLOG_S:
1128 return XML_ROLE_ELEMENT_NONE;
1130 state->handler = declClose;
1133 case XML_TOK_OR:
1134 state->handler = element4;
1135 return XML_ROLE_ELEMENT_NONE;
1136 }
1137 return common(state, tok);
1138}

References common(), declClose, element4, prolog_state::role_none, XML_ROLE_ELEMENT_NONE, XML_ROLE_GROUP_CLOSE_REP, XML_TOK_CLOSE_PAREN_ASTERISK, XML_TOK_OR, and XML_TOK_PROLOG_S.

◆ element6()

static int PTRCALL element6 ( PROLOG_STATE state,
int  tok,
const char *  ptr,
const char *  end,
const ENCODING enc 
)
static

◆ element7()

static int PTRCALL element7 ( PROLOG_STATE state,
int  tok,
const char *  ptr,
const char *  end,
const ENCODING enc 
)
static

Definition at line 1171 of file xmlrole.cc.

1176{
1177 switch (tok) {
1178 case XML_TOK_PROLOG_S:
1179 return XML_ROLE_ELEMENT_NONE;
1181 state->level -= 1;
1182 if (state->level == 0) {
1183 state->handler = declClose;
1185 }
1186 return XML_ROLE_GROUP_CLOSE;
1188 state->level -= 1;
1189 if (state->level == 0) {
1190 state->handler = declClose;
1192 }
1195 state->level -= 1;
1196 if (state->level == 0) {
1197 state->handler = declClose;
1199 }
1202 state->level -= 1;
1203 if (state->level == 0) {
1204 state->handler = declClose;
1206 }
1208 case XML_TOK_COMMA:
1209 state->handler = element6;
1211 case XML_TOK_OR:
1212 state->handler = element6;
1213 return XML_ROLE_GROUP_CHOICE;
1214 }
1215 return common(state, tok);
1216}
@ XML_ROLE_GROUP_CHOICE
Definition: xmlrole.h:71
@ XML_ROLE_GROUP_SEQUENCE
Definition: xmlrole.h:72
@ XML_ROLE_GROUP_CLOSE_OPT
Definition: xmlrole.h:69
@ XML_ROLE_GROUP_CLOSE_PLUS
Definition: xmlrole.h:70
#define XML_TOK_CLOSE_PAREN_PLUS
Definition: xmltok.h:70
#define XML_TOK_COMMA
Definition: xmltok.h:71
#define XML_TOK_CLOSE_PAREN_QUESTION
Definition: xmltok.h:68

References common(), declClose, element6, prolog_state::level, prolog_state::role_none, XML_ROLE_ELEMENT_NONE, XML_ROLE_GROUP_CHOICE, XML_ROLE_GROUP_CLOSE, XML_ROLE_GROUP_CLOSE_OPT, XML_ROLE_GROUP_CLOSE_PLUS, XML_ROLE_GROUP_CLOSE_REP, XML_ROLE_GROUP_SEQUENCE, XML_TOK_CLOSE_PAREN, XML_TOK_CLOSE_PAREN_ASTERISK, XML_TOK_CLOSE_PAREN_PLUS, XML_TOK_CLOSE_PAREN_QUESTION, XML_TOK_COMMA, XML_TOK_OR, and XML_TOK_PROLOG_S.

◆ entity0()

static int PTRCALL entity0 ( PROLOG_STATE state,
int  tok,
const char *  ptr,
const char *  end,
const ENCODING enc 
)
static

Definition at line 442 of file xmlrole.cc.

447{
448 switch (tok) {
449 case XML_TOK_PROLOG_S:
451 case XML_TOK_PERCENT:
452 state->handler = entity1;
454 case XML_TOK_NAME:
455 state->handler = entity2;
457 }
458 return common(state, tok);
459}
static PROLOG_HANDLER entity2
Definition: xmlrole.cc:115
static PROLOG_HANDLER entity1
Definition: xmlrole.cc:115
@ XML_ROLE_ENTITY_NONE
Definition: xmlrole.h:33
@ XML_ROLE_GENERAL_ENTITY_NAME
Definition: xmlrole.h:31
#define XML_TOK_PERCENT
Definition: xmltok.h:53

References common(), entity1, entity2, XML_ROLE_ENTITY_NONE, XML_ROLE_GENERAL_ENTITY_NAME, XML_TOK_NAME, XML_TOK_PERCENT, and XML_TOK_PROLOG_S.

◆ entity1()

static int PTRCALL entity1 ( PROLOG_STATE state,
int  tok,
const char *  ptr,
const char *  end,
const ENCODING enc 
)
static

Definition at line 462 of file xmlrole.cc.

467{
468 switch (tok) {
469 case XML_TOK_PROLOG_S:
471 case XML_TOK_NAME:
472 state->handler = entity7;
474 }
475 return common(state, tok);
476}
static PROLOG_HANDLER entity7
Definition: xmlrole.cc:116
@ XML_ROLE_PARAM_ENTITY_NAME
Definition: xmlrole.h:32

References common(), entity7, XML_ROLE_ENTITY_NONE, XML_ROLE_PARAM_ENTITY_NAME, XML_TOK_NAME, and XML_TOK_PROLOG_S.

◆ entity10()

static int PTRCALL entity10 ( PROLOG_STATE state,
int  tok,
const char *  ptr,
const char *  end,
const ENCODING enc 
)
static

Definition at line 644 of file xmlrole.cc.

649{
650 switch (tok) {
651 case XML_TOK_PROLOG_S:
654 setTopLevel(state);
656 }
657 return common(state, tok);
658}
@ XML_ROLE_ENTITY_COMPLETE
Definition: xmlrole.h:37

References common(), setTopLevel, XML_ROLE_ENTITY_COMPLETE, XML_ROLE_ENTITY_NONE, XML_TOK_DECL_CLOSE, and XML_TOK_PROLOG_S.

◆ entity2()

static int PTRCALL entity2 ( PROLOG_STATE state,
int  tok,
const char *  ptr,
const char *  end,
const ENCODING enc 
)
static

Definition at line 479 of file xmlrole.cc.

484{
485 switch (tok) {
486 case XML_TOK_PROLOG_S:
488 case XML_TOK_NAME:
489 if (XmlNameMatchesAscii(enc, ptr, end, KW_SYSTEM)) {
490 state->handler = entity4;
492 }
493 if (XmlNameMatchesAscii(enc, ptr, end, KW_PUBLIC)) {
494 state->handler = entity3;
496 }
497 break;
498 case XML_TOK_LITERAL:
499 state->handler = declClose;
502 }
503 return common(state, tok);
504}
static PROLOG_HANDLER entity4
Definition: xmlrole.cc:115
static PROLOG_HANDLER entity3
Definition: xmlrole.cc:115
@ XML_ROLE_ENTITY_VALUE
Definition: xmlrole.h:34

References common(), declClose, entity3, entity4, KW_PUBLIC, KW_SYSTEM, prolog_state::role_none, XML_ROLE_ENTITY_NONE, XML_ROLE_ENTITY_VALUE, XML_TOK_LITERAL, XML_TOK_NAME, XML_TOK_PROLOG_S, and XmlNameMatchesAscii.

◆ entity3()

static int PTRCALL entity3 ( PROLOG_STATE state,
int  tok,
const char *  ptr,
const char *  end,
const ENCODING enc 
)
static

Definition at line 507 of file xmlrole.cc.

512{
513 switch (tok) {
514 case XML_TOK_PROLOG_S:
516 case XML_TOK_LITERAL:
517 state->handler = entity4;
519 }
520 return common(state, tok);
521}
@ XML_ROLE_ENTITY_PUBLIC_ID
Definition: xmlrole.h:36

References common(), entity4, XML_ROLE_ENTITY_NONE, XML_ROLE_ENTITY_PUBLIC_ID, XML_TOK_LITERAL, and XML_TOK_PROLOG_S.

◆ entity4()

static int PTRCALL entity4 ( PROLOG_STATE state,
int  tok,
const char *  ptr,
const char *  end,
const ENCODING enc 
)
static

Definition at line 524 of file xmlrole.cc.

529{
530 switch (tok) {
531 case XML_TOK_PROLOG_S:
533 case XML_TOK_LITERAL:
534 state->handler = entity5;
536 }
537 return common(state, tok);
538}
static PROLOG_HANDLER entity5
Definition: xmlrole.cc:115
@ XML_ROLE_ENTITY_SYSTEM_ID
Definition: xmlrole.h:35

References common(), entity5, XML_ROLE_ENTITY_NONE, XML_ROLE_ENTITY_SYSTEM_ID, XML_TOK_LITERAL, and XML_TOK_PROLOG_S.

◆ entity5()

static int PTRCALL entity5 ( PROLOG_STATE state,
int  tok,
const char *  ptr,
const char *  end,
const ENCODING enc 
)
static

Definition at line 541 of file xmlrole.cc.

546{
547 switch (tok) {
548 case XML_TOK_PROLOG_S:
551 setTopLevel(state);
553 case XML_TOK_NAME:
554 if (XmlNameMatchesAscii(enc, ptr, end, KW_NDATA)) {
555 state->handler = entity6;
557 }
558 break;
559 }
560 return common(state, tok);
561}
static PROLOG_HANDLER entity6
Definition: xmlrole.cc:115
static const char KW_NDATA[]
Definition: xmlrole.cc:72

References common(), entity6, KW_NDATA, setTopLevel, XML_ROLE_ENTITY_COMPLETE, XML_ROLE_ENTITY_NONE, XML_TOK_DECL_CLOSE, XML_TOK_NAME, XML_TOK_PROLOG_S, and XmlNameMatchesAscii.

◆ entity6()

static int PTRCALL entity6 ( PROLOG_STATE state,
int  tok,
const char *  ptr,
const char *  end,
const ENCODING enc 
)
static

Definition at line 564 of file xmlrole.cc.

569{
570 switch (tok) {
571 case XML_TOK_PROLOG_S:
573 case XML_TOK_NAME:
574 state->handler = declClose;
577 }
578 return common(state, tok);
579}
@ XML_ROLE_ENTITY_NOTATION_NAME
Definition: xmlrole.h:38

References common(), declClose, prolog_state::role_none, XML_ROLE_ENTITY_NONE, XML_ROLE_ENTITY_NOTATION_NAME, XML_TOK_NAME, and XML_TOK_PROLOG_S.

◆ entity7()

static int PTRCALL entity7 ( PROLOG_STATE state,
int  tok,
const char *  ptr,
const char *  end,
const ENCODING enc 
)
static

Definition at line 582 of file xmlrole.cc.

587{
588 switch (tok) {
589 case XML_TOK_PROLOG_S:
591 case XML_TOK_NAME:
592 if (XmlNameMatchesAscii(enc, ptr, end, KW_SYSTEM)) {
593 state->handler = entity9;
595 }
596 if (XmlNameMatchesAscii(enc, ptr, end, KW_PUBLIC)) {
597 state->handler = entity8;
599 }
600 break;
601 case XML_TOK_LITERAL:
602 state->handler = declClose;
605 }
606 return common(state, tok);
607}
static PROLOG_HANDLER entity8
Definition: xmlrole.cc:116
static PROLOG_HANDLER entity9
Definition: xmlrole.cc:116

References common(), declClose, entity8, entity9, KW_PUBLIC, KW_SYSTEM, prolog_state::role_none, XML_ROLE_ENTITY_NONE, XML_ROLE_ENTITY_VALUE, XML_TOK_LITERAL, XML_TOK_NAME, XML_TOK_PROLOG_S, and XmlNameMatchesAscii.

◆ entity8()

static int PTRCALL entity8 ( PROLOG_STATE state,
int  tok,
const char *  ptr,
const char *  end,
const ENCODING enc 
)
static

Definition at line 610 of file xmlrole.cc.

615{
616 switch (tok) {
617 case XML_TOK_PROLOG_S:
619 case XML_TOK_LITERAL:
620 state->handler = entity9;
622 }
623 return common(state, tok);
624}

References common(), entity9, XML_ROLE_ENTITY_NONE, XML_ROLE_ENTITY_PUBLIC_ID, XML_TOK_LITERAL, and XML_TOK_PROLOG_S.

◆ entity9()

static int PTRCALL entity9 ( PROLOG_STATE state,
int  tok,
const char *  ptr,
const char *  end,
const ENCODING enc 
)
static

Definition at line 627 of file xmlrole.cc.

632{
633 switch (tok) {
634 case XML_TOK_PROLOG_S:
636 case XML_TOK_LITERAL:
637 state->handler = entity10;
639 }
640 return common(state, tok);
641}
static PROLOG_HANDLER entity10
Definition: xmlrole.cc:116

References common(), entity10, XML_ROLE_ENTITY_NONE, XML_ROLE_ENTITY_SYSTEM_ID, XML_TOK_LITERAL, and XML_TOK_PROLOG_S.

◆ error()

static int PTRCALL error ( PROLOG_STATE state,
int  tok,
const char *  ptr,
const char *  end,
const ENCODING enc 
)
static

Definition at line 1299 of file xmlrole.cc.

1304{
1305 return XML_ROLE_NONE;
1306}
@ XML_ROLE_NONE
Definition: xmlrole.h:22

References XML_ROLE_NONE.

◆ internalSubset()

static int PTRCALL internalSubset ( PROLOG_STATE state,
int  tok,
const char *  ptr,
const char *  end,
const ENCODING enc 
)
static

Definition at line 340 of file xmlrole.cc.

345{
346 switch (tok) {
347 case XML_TOK_PROLOG_S:
348 return XML_ROLE_NONE;
350 if (XmlNameMatchesAscii(enc,
351 ptr + 2 * MIN_BYTES_PER_CHAR(enc),
352 end,
353 KW_ENTITY)) {
354 state->handler = entity0;
356 }
357 if (XmlNameMatchesAscii(enc,
358 ptr + 2 * MIN_BYTES_PER_CHAR(enc),
359 end,
360 KW_ATTLIST)) {
361 state->handler = attlist0;
363 }
364 if (XmlNameMatchesAscii(enc,
365 ptr + 2 * MIN_BYTES_PER_CHAR(enc),
366 end,
367 KW_ELEMENT)) {
368 state->handler = element0;
370 }
371 if (XmlNameMatchesAscii(enc,
372 ptr + 2 * MIN_BYTES_PER_CHAR(enc),
373 end,
374 KW_NOTATION)) {
375 state->handler = notation0;
377 }
378 break;
379 case XML_TOK_PI:
380 return XML_ROLE_PI;
381 case XML_TOK_COMMENT:
382 return XML_ROLE_COMMENT;
386 state->handler = doctype5;
388 case XML_TOK_NONE:
389 return XML_ROLE_NONE;
390 }
391 return common(state, tok);
392}
static PROLOG_HANDLER doctype5
Definition: xmlrole.cc:113
static const char KW_ELEMENT[]
Definition: xmlrole.cc:45
static PROLOG_HANDLER entity0
Definition: xmlrole.cc:115
static PROLOG_HANDLER notation0
Definition: xmlrole.cc:117
static PROLOG_HANDLER element0
Definition: xmlrole.cc:120
static const char KW_ATTLIST[]
Definition: xmlrole.cc:39
static PROLOG_HANDLER attlist0
Definition: xmlrole.cc:118
@ XML_ROLE_PARAM_ENTITY_REF
Definition: xmlrole.h:84
@ XML_ROLE_COMMENT
Definition: xmlrole.h:78
@ XML_ROLE_PI
Definition: xmlrole.h:77
@ XML_ROLE_NOTATION_NONE
Definition: xmlrole.h:39
#define XML_TOK_DECL_OPEN
Definition: xmltok.h:47
#define XML_TOK_PI
Definition: xmltok.h:40
#define XML_TOK_COMMENT
Definition: xmltok.h:42
#define XML_TOK_CLOSE_BRACKET
Definition: xmltok.h:57
#define XML_TOK_NONE
Definition: xmltok.h:17

References attlist0, common(), doctype5, element0, entity0, KW_ATTLIST, KW_ELEMENT, KW_ENTITY, KW_NOTATION, MIN_BYTES_PER_CHAR, notation0, XML_ROLE_ATTLIST_NONE, XML_ROLE_COMMENT, XML_ROLE_DOCTYPE_NONE, XML_ROLE_ELEMENT_NONE, XML_ROLE_ENTITY_NONE, XML_ROLE_NONE, XML_ROLE_NOTATION_NONE, XML_ROLE_PARAM_ENTITY_REF, XML_ROLE_PI, XML_TOK_CLOSE_BRACKET, XML_TOK_COMMENT, XML_TOK_DECL_OPEN, XML_TOK_NONE, XML_TOK_PARAM_ENTITY_REF, XML_TOK_PI, XML_TOK_PROLOG_S, and XmlNameMatchesAscii.

◆ notation0()

static int PTRCALL notation0 ( PROLOG_STATE state,
int  tok,
const char *  ptr,
const char *  end,
const ENCODING enc 
)
static

Definition at line 661 of file xmlrole.cc.

666{
667 switch (tok) {
668 case XML_TOK_PROLOG_S:
670 case XML_TOK_NAME:
671 state->handler = notation1;
673 }
674 return common(state, tok);
675}
static PROLOG_HANDLER notation1
Definition: xmlrole.cc:117
@ XML_ROLE_NOTATION_NAME
Definition: xmlrole.h:40

References common(), notation1, XML_ROLE_NOTATION_NAME, XML_ROLE_NOTATION_NONE, XML_TOK_NAME, and XML_TOK_PROLOG_S.

◆ notation1()

static int PTRCALL notation1 ( PROLOG_STATE state,
int  tok,
const char *  ptr,
const char *  end,
const ENCODING enc 
)
static

Definition at line 678 of file xmlrole.cc.

683{
684 switch (tok) {
685 case XML_TOK_PROLOG_S:
687 case XML_TOK_NAME:
688 if (XmlNameMatchesAscii(enc, ptr, end, KW_SYSTEM)) {
689 state->handler = notation3;
691 }
692 if (XmlNameMatchesAscii(enc, ptr, end, KW_PUBLIC)) {
693 state->handler = notation2;
695 }
696 break;
697 }
698 return common(state, tok);
699}
static PROLOG_HANDLER notation2
Definition: xmlrole.cc:117
static PROLOG_HANDLER notation3
Definition: xmlrole.cc:117

References common(), KW_PUBLIC, KW_SYSTEM, notation2, notation3, XML_ROLE_NOTATION_NONE, XML_TOK_NAME, XML_TOK_PROLOG_S, and XmlNameMatchesAscii.

◆ notation2()

static int PTRCALL notation2 ( PROLOG_STATE state,
int  tok,
const char *  ptr,
const char *  end,
const ENCODING enc 
)
static

Definition at line 702 of file xmlrole.cc.

707{
708 switch (tok) {
709 case XML_TOK_PROLOG_S:
711 case XML_TOK_LITERAL:
712 state->handler = notation4;
714 }
715 return common(state, tok);
716}
static PROLOG_HANDLER notation4
Definition: xmlrole.cc:117
@ XML_ROLE_NOTATION_PUBLIC_ID
Definition: xmlrole.h:43

References common(), notation4, XML_ROLE_NOTATION_NONE, XML_ROLE_NOTATION_PUBLIC_ID, XML_TOK_LITERAL, and XML_TOK_PROLOG_S.

◆ notation3()

static int PTRCALL notation3 ( PROLOG_STATE state,
int  tok,
const char *  ptr,
const char *  end,
const ENCODING enc 
)
static

Definition at line 719 of file xmlrole.cc.

724{
725 switch (tok) {
726 case XML_TOK_PROLOG_S:
728 case XML_TOK_LITERAL:
729 state->handler = declClose;
732 }
733 return common(state, tok);
734}
@ XML_ROLE_NOTATION_SYSTEM_ID
Definition: xmlrole.h:41

References common(), declClose, prolog_state::role_none, XML_ROLE_NOTATION_NONE, XML_ROLE_NOTATION_SYSTEM_ID, XML_TOK_LITERAL, and XML_TOK_PROLOG_S.

◆ notation4()

static int PTRCALL notation4 ( PROLOG_STATE state,
int  tok,
const char *  ptr,
const char *  end,
const ENCODING enc 
)
static

Definition at line 737 of file xmlrole.cc.

742{
743 switch (tok) {
744 case XML_TOK_PROLOG_S:
746 case XML_TOK_LITERAL:
747 state->handler = declClose;
751 setTopLevel(state);
753 }
754 return common(state, tok);
755}
@ XML_ROLE_NOTATION_NO_SYSTEM_ID
Definition: xmlrole.h:42

References common(), declClose, prolog_state::role_none, setTopLevel, XML_ROLE_NOTATION_NO_SYSTEM_ID, XML_ROLE_NOTATION_NONE, XML_ROLE_NOTATION_SYSTEM_ID, XML_TOK_DECL_CLOSE, XML_TOK_LITERAL, and XML_TOK_PROLOG_S.

◆ prolog0()

static int PTRCALL prolog0 ( PROLOG_STATE state,
int  tok,
const char *  ptr,
const char *  end,
const ENCODING enc 
)
static

Definition at line 132 of file xmlrole.cc.

137{
138 switch (tok) {
139 case XML_TOK_PROLOG_S:
140 state->handler = prolog1;
141 return XML_ROLE_NONE;
142 case XML_TOK_XML_DECL:
143 state->handler = prolog1;
144 return XML_ROLE_XML_DECL;
145 case XML_TOK_PI:
146 state->handler = prolog1;
147 return XML_ROLE_PI;
148 case XML_TOK_COMMENT:
149 state->handler = prolog1;
150 return XML_ROLE_COMMENT;
151 case XML_TOK_BOM:
152 return XML_ROLE_NONE;
154 if (!XmlNameMatchesAscii(enc,
155 ptr + 2 * MIN_BYTES_PER_CHAR(enc),
156 end,
157 KW_DOCTYPE))
158 break;
159 state->handler = doctype0;
162 state->handler = error;
164 }
165 return common(state, tok);
166}
static PROLOG_HANDLER prolog1
Definition: xmlrole.cc:112
static PROLOG_HANDLER doctype0
Definition: xmlrole.cc:113
static const char KW_DOCTYPE[]
Definition: xmlrole.cc:43
@ XML_ROLE_INSTANCE_START
Definition: xmlrole.h:24
@ XML_ROLE_XML_DECL
Definition: xmlrole.h:23
#define XML_TOK_XML_DECL
Definition: xmltok.h:41
#define XML_TOK_INSTANCE_START
Definition: xmltok.h:60
#define XML_TOK_BOM
Definition: xmltok.h:43

References common(), doctype0, error, KW_DOCTYPE, MIN_BYTES_PER_CHAR, prolog1, XML_ROLE_COMMENT, XML_ROLE_DOCTYPE_NONE, XML_ROLE_INSTANCE_START, XML_ROLE_NONE, XML_ROLE_PI, XML_ROLE_XML_DECL, XML_TOK_BOM, XML_TOK_COMMENT, XML_TOK_DECL_OPEN, XML_TOK_INSTANCE_START, XML_TOK_PI, XML_TOK_PROLOG_S, XML_TOK_XML_DECL, and XmlNameMatchesAscii.

◆ prolog1()

static int PTRCALL prolog1 ( PROLOG_STATE state,
int  tok,
const char *  ptr,
const char *  end,
const ENCODING enc 
)
static

Definition at line 169 of file xmlrole.cc.

174{
175 switch (tok) {
176 case XML_TOK_PROLOG_S:
177 return XML_ROLE_NONE;
178 case XML_TOK_PI:
179 return XML_ROLE_PI;
180 case XML_TOK_COMMENT:
181 return XML_ROLE_COMMENT;
182 case XML_TOK_BOM:
183 return XML_ROLE_NONE;
185 if (!XmlNameMatchesAscii(enc,
186 ptr + 2 * MIN_BYTES_PER_CHAR(enc),
187 end,
188 KW_DOCTYPE))
189 break;
190 state->handler = doctype0;
193 state->handler = error;
195 }
196 return common(state, tok);
197}

References common(), doctype0, error, KW_DOCTYPE, MIN_BYTES_PER_CHAR, XML_ROLE_COMMENT, XML_ROLE_DOCTYPE_NONE, XML_ROLE_INSTANCE_START, XML_ROLE_NONE, XML_ROLE_PI, XML_TOK_BOM, XML_TOK_COMMENT, XML_TOK_DECL_OPEN, XML_TOK_INSTANCE_START, XML_TOK_PI, XML_TOK_PROLOG_S, and XmlNameMatchesAscii.

◆ prolog2()

static int PTRCALL prolog2 ( PROLOG_STATE state,
int  tok,
const char *  ptr,
const char *  end,
const ENCODING enc 
)
static

Definition at line 200 of file xmlrole.cc.

205{
206 switch (tok) {
207 case XML_TOK_PROLOG_S:
208 return XML_ROLE_NONE;
209 case XML_TOK_PI:
210 return XML_ROLE_PI;
211 case XML_TOK_COMMENT:
212 return XML_ROLE_COMMENT;
214 state->handler = error;
216 }
217 return common(state, tok);
218}

References common(), error, XML_ROLE_COMMENT, XML_ROLE_INSTANCE_START, XML_ROLE_NONE, XML_ROLE_PI, XML_TOK_COMMENT, XML_TOK_INSTANCE_START, XML_TOK_PI, and XML_TOK_PROLOG_S.

◆ XmlPrologStateInit()

void XmlPrologStateInit ( PROLOG_STATE state)

Definition at line 1320 of file xmlrole.cc.

1321{
1322 state->handler = prolog0;
1323#ifdef XML_DTD
1324 state->documentEntity = 1;
1325 state->includeLevel = 0;
1326 state->inEntityValue = 0;
1327#endif /* XML_DTD */
1328}
static PROLOG_HANDLER prolog0
Definition: xmlrole.cc:112

References prolog0.

Referenced by parserInit().

Variable Documentation

◆ attlist0

PROLOG_HANDLER attlist0
static

Definition at line 118 of file xmlrole.cc.

Referenced by internalSubset().

◆ attlist1

PROLOG_HANDLER attlist1
static

Definition at line 118 of file xmlrole.cc.

Referenced by attlist0(), attlist8(), and attlist9().

◆ attlist2

PROLOG_HANDLER attlist2
static

Definition at line 118 of file xmlrole.cc.

Referenced by attlist1().

◆ attlist3

PROLOG_HANDLER attlist3
static

Definition at line 118 of file xmlrole.cc.

Referenced by attlist2(), and attlist4().

◆ attlist4

PROLOG_HANDLER attlist4
static

Definition at line 118 of file xmlrole.cc.

Referenced by attlist3().

◆ attlist5

PROLOG_HANDLER attlist5
static

Definition at line 118 of file xmlrole.cc.

Referenced by attlist2().

◆ attlist6

PROLOG_HANDLER attlist6
static

Definition at line 118 of file xmlrole.cc.

Referenced by attlist5(), and attlist7().

◆ attlist7

PROLOG_HANDLER attlist7
static

Definition at line 119 of file xmlrole.cc.

Referenced by attlist6().

◆ attlist8

PROLOG_HANDLER attlist8
static

Definition at line 119 of file xmlrole.cc.

Referenced by attlist2(), attlist4(), and attlist7().

◆ attlist9

PROLOG_HANDLER attlist9
static

Definition at line 119 of file xmlrole.cc.

Referenced by attlist8().

◆ declClose

PROLOG_HANDLER declClose
static

◆ doctype0

PROLOG_HANDLER doctype0
static

Definition at line 113 of file xmlrole.cc.

Referenced by prolog0(), and prolog1().

◆ doctype1

PROLOG_HANDLER doctype1
static

Definition at line 113 of file xmlrole.cc.

Referenced by doctype0().

◆ doctype2

PROLOG_HANDLER doctype2
static

Definition at line 113 of file xmlrole.cc.

Referenced by doctype1().

◆ doctype3

PROLOG_HANDLER doctype3
static

Definition at line 113 of file xmlrole.cc.

Referenced by doctype1(), and doctype2().

◆ doctype4

PROLOG_HANDLER doctype4
static

Definition at line 113 of file xmlrole.cc.

Referenced by doctype3().

◆ doctype5

PROLOG_HANDLER doctype5
static

Definition at line 113 of file xmlrole.cc.

Referenced by internalSubset().

◆ element0

PROLOG_HANDLER element0
static

Definition at line 120 of file xmlrole.cc.

Referenced by internalSubset().

◆ element1

PROLOG_HANDLER element1
static

Definition at line 120 of file xmlrole.cc.

Referenced by element0().

◆ element2

PROLOG_HANDLER element2
static

Definition at line 120 of file xmlrole.cc.

Referenced by element1().

◆ element3

PROLOG_HANDLER element3
static

Definition at line 120 of file xmlrole.cc.

Referenced by element2().

◆ element4

PROLOG_HANDLER element4
static

Definition at line 120 of file xmlrole.cc.

Referenced by element3(), and element5().

◆ element5

PROLOG_HANDLER element5
static

Definition at line 120 of file xmlrole.cc.

Referenced by element4().

◆ element6

PROLOG_HANDLER element6
static

Definition at line 120 of file xmlrole.cc.

Referenced by element2(), and element7().

◆ element7

PROLOG_HANDLER element7
static

Definition at line 121 of file xmlrole.cc.

Referenced by element2(), and element6().

◆ entity0

PROLOG_HANDLER entity0
static

Definition at line 115 of file xmlrole.cc.

Referenced by internalSubset().

◆ entity1

PROLOG_HANDLER entity1
static

Definition at line 115 of file xmlrole.cc.

Referenced by entity0().

◆ entity10

PROLOG_HANDLER entity10
static

Definition at line 116 of file xmlrole.cc.

Referenced by entity9().

◆ entity2

PROLOG_HANDLER entity2
static

Definition at line 115 of file xmlrole.cc.

Referenced by entity0().

◆ entity3

PROLOG_HANDLER entity3
static

Definition at line 115 of file xmlrole.cc.

Referenced by entity2().

◆ entity4

PROLOG_HANDLER entity4
static

Definition at line 115 of file xmlrole.cc.

Referenced by entity2(), and entity3().

◆ entity5

PROLOG_HANDLER entity5
static

Definition at line 115 of file xmlrole.cc.

Referenced by entity4().

◆ entity6

PROLOG_HANDLER entity6
static

Definition at line 115 of file xmlrole.cc.

Referenced by entity5().

◆ entity7

PROLOG_HANDLER entity7
static

Definition at line 116 of file xmlrole.cc.

Referenced by entity1().

◆ entity8

PROLOG_HANDLER entity8
static

Definition at line 116 of file xmlrole.cc.

Referenced by entity7().

◆ entity9

PROLOG_HANDLER entity9
static

Definition at line 116 of file xmlrole.cc.

Referenced by entity7(), and entity8().

◆ error

PROLOG_HANDLER error
static

◆ internalSubset

PROLOG_HANDLER internalSubset
static

Definition at line 114 of file xmlrole.cc.

Referenced by doctype1(), and doctype4().

◆ KW_ANY

const char KW_ANY[]
static
Initial value:
= {
#define ASCII_N
Definition: ascii.h:18
#define ASCII_A
Definition: ascii.h:5
#define ASCII_Y
Definition: ascii.h:29

Definition at line 37 of file xmlrole.cc.

Referenced by element1().

◆ KW_ATTLIST

const char KW_ATTLIST[]
static
Initial value:
= {
#define ASCII_I
Definition: ascii.h:13
#define ASCII_L
Definition: ascii.h:16
#define ASCII_S
Definition: ascii.h:23
#define ASCII_T
Definition: ascii.h:24

Definition at line 39 of file xmlrole.cc.

Referenced by internalSubset().

◆ KW_CDATA

const char KW_CDATA[]
static
Initial value:
= {
#define ASCII_C
Definition: ascii.h:7
#define ASCII_D
Definition: ascii.h:8

Definition at line 41 of file xmlrole.cc.

Referenced by attlist2().

◆ KW_DOCTYPE

const char KW_DOCTYPE[]
static
Initial value:
= {
#define ASCII_E
Definition: ascii.h:9
#define ASCII_O
Definition: ascii.h:19
#define ASCII_P
Definition: ascii.h:20

Definition at line 43 of file xmlrole.cc.

Referenced by prolog0(), and prolog1().

◆ KW_ELEMENT

const char KW_ELEMENT[]
static
Initial value:
= {
#define ASCII_M
Definition: ascii.h:17

Definition at line 45 of file xmlrole.cc.

Referenced by internalSubset().

◆ KW_EMPTY

const char KW_EMPTY[]
static
Initial value:

Definition at line 47 of file xmlrole.cc.

Referenced by element1().

◆ KW_ENTITIES

const char KW_ENTITIES[]
static
Initial value:

Definition at line 49 of file xmlrole.cc.

Referenced by attlist2().

◆ KW_ENTITY

const char KW_ENTITY[]
static
Initial value:

Definition at line 52 of file xmlrole.cc.

Referenced by attlist2(), and internalSubset().

◆ KW_FIXED

const char KW_FIXED[]
static
Initial value:
= {
#define ASCII_X
Definition: ascii.h:28
#define ASCII_F
Definition: ascii.h:10

Definition at line 54 of file xmlrole.cc.

Referenced by attlist8().

◆ KW_ID

const char KW_ID[]
static
Initial value:
= {
ASCII_I, ASCII_D, '\0' }

Definition at line 56 of file xmlrole.cc.

Referenced by attlist2().

◆ KW_IDREF

const char KW_IDREF[]
static
Initial value:
= {
#define ASCII_R
Definition: ascii.h:22

Definition at line 58 of file xmlrole.cc.

Referenced by attlist2().

◆ KW_IDREFS

const char KW_IDREFS[]
static
Initial value:

Definition at line 60 of file xmlrole.cc.

Referenced by attlist2().

◆ KW_IMPLIED

const char KW_IMPLIED[]
static
Initial value:

Definition at line 66 of file xmlrole.cc.

Referenced by attlist8().

◆ KW_NDATA

const char KW_NDATA[]
static
Initial value:

Definition at line 72 of file xmlrole.cc.

Referenced by entity5().

◆ KW_NMTOKEN

const char KW_NMTOKEN[]
static
Initial value:
= {
#define ASCII_K
Definition: ascii.h:15

Definition at line 74 of file xmlrole.cc.

Referenced by attlist2().

◆ KW_NMTOKENS

const char KW_NMTOKENS[]
static
Initial value:

Definition at line 76 of file xmlrole.cc.

Referenced by attlist2().

◆ KW_NOTATION

const char KW_NOTATION[]
static
Initial value:

Definition at line 79 of file xmlrole.cc.

Referenced by attlist2(), and internalSubset().

◆ KW_PCDATA

const char KW_PCDATA[]
static
Initial value:

Definition at line 82 of file xmlrole.cc.

Referenced by element2().

◆ KW_PUBLIC

const char KW_PUBLIC[]
static
Initial value:
= {
#define ASCII_U
Definition: ascii.h:25
#define ASCII_B
Definition: ascii.h:6

Definition at line 84 of file xmlrole.cc.

Referenced by doctype1(), entity2(), entity7(), and notation1().

◆ KW_REQUIRED

const char KW_REQUIRED[]
static
Initial value:
= {
'\0' }
#define ASCII_Q
Definition: ascii.h:21

Definition at line 86 of file xmlrole.cc.

Referenced by attlist8().

◆ KW_SYSTEM

const char KW_SYSTEM[]
static
Initial value:

Definition at line 89 of file xmlrole.cc.

Referenced by doctype1(), entity2(), entity7(), and notation1().

◆ notation0

PROLOG_HANDLER notation0
static

Definition at line 117 of file xmlrole.cc.

Referenced by internalSubset().

◆ notation1

PROLOG_HANDLER notation1
static

Definition at line 117 of file xmlrole.cc.

Referenced by notation0().

◆ notation2

PROLOG_HANDLER notation2
static

Definition at line 117 of file xmlrole.cc.

Referenced by notation1().

◆ notation3

PROLOG_HANDLER notation3
static

Definition at line 117 of file xmlrole.cc.

Referenced by notation1().

◆ notation4

PROLOG_HANDLER notation4
static

Definition at line 117 of file xmlrole.cc.

Referenced by notation2().

◆ prolog0

PROLOG_HANDLER prolog0
static

Definition at line 112 of file xmlrole.cc.

Referenced by XmlPrologStateInit().

◆ prolog1

PROLOG_HANDLER prolog1
static

Definition at line 112 of file xmlrole.cc.

Referenced by prolog0().

◆ prolog2

PROLOG_HANDLER prolog2
static

Definition at line 112 of file xmlrole.cc.

Referenced by doctype1(), doctype4(), and doctype5().