Geant4 11.3.0
Toolkit for the simulation of the passage of particles through matter
|
#include <expat_config.h>
#include <stddef.h>
#include <string.h>
#include <stdbool.h>
#include "expat_external.h"
#include "internal.h"
#include "xmltok.h"
#include "nametab.h"
#include "xmltok_impl.h"
#include "ascii.h"
#include "xmltok_impl.c"
#include "asciitab.h"
#include "utf8tab.h"
#include "iasciitab.h"
#include "latin1tab.h"
#include "xmltok_ns.c"
Go to the source code of this file.
Classes | |
struct | normal_encoding |
struct | unknown_encoding |
Macros | |
#define | IGNORE_SECTION_TOK_VTABLE , PREFIX(ignoreSectionTok) |
#define | VTABLE1 |
#define | VTABLE VTABLE1, PREFIX(toUtf8), PREFIX(toUtf16) |
#define | UCS2_GET_NAMING(pages, hi, lo) |
#define | UTF8_GET_NAMING2(pages, byte) |
#define | UTF8_GET_NAMING3(pages, byte) |
#define | UTF8_INVALID2(p) |
#define | UTF8_INVALID3(p) |
#define | UTF8_INVALID4(p) |
#define | utf8_isName4 isNever |
#define | utf8_isNmstrt4 isNever |
#define | AS_NORMAL_ENCODING(enc) |
#define | STANDARD_VTABLE(E) |
#define | NORMAL_VTABLE(E) |
#define | NULL_VTABLE |
#define | MINBPC(enc) |
#define | SB_BYTE_TYPE(enc, p) |
#define | BYTE_TYPE(enc, p) |
#define | BYTE_TO_ASCII(enc, p) |
#define | IS_NAME_CHAR(enc, p, n) |
#define | IS_NMSTRT_CHAR(enc, p, n) |
#define | IS_INVALID_CHAR(enc, p, n) |
#define | IS_NAME_CHAR_MINBPC(enc, p) |
#define | IS_NMSTRT_CHAR_MINBPC(enc, p) |
#define | CHAR_MATCHES(enc, p, c) |
#define | PREFIX(ident) |
#define | XML_TOK_IMPL_C |
#define | BT_COLON BT_NMSTRT |
#define | BT_COLON BT_NMSTRT |
#define | BT_COLON BT_NMSTRT |
#define | BT_COLON BT_NMSTRT |
#define | DEFINE_UTF16_TO_UTF8(E) |
#define | DEFINE_UTF16_TO_UTF16(E) |
#define | SET2(ptr, ch) |
#define | GET_LO(ptr) |
#define | GET_HI(ptr) |
#define | SET2(ptr, ch) |
#define | GET_LO(ptr) |
#define | GET_HI(ptr) |
#define | LITTLE2_BYTE_TYPE(enc, p) |
#define | LITTLE2_BYTE_TO_ASCII(p) |
#define | LITTLE2_CHAR_MATCHES(p, c) |
#define | LITTLE2_IS_NAME_CHAR_MINBPC(p) |
#define | LITTLE2_IS_NMSTRT_CHAR_MINBPC(p) |
#define | PREFIX(ident) |
#define | MINBPC(enc) |
#define | BYTE_TYPE(enc, p) |
#define | BYTE_TO_ASCII(enc, p) |
#define | CHAR_MATCHES(enc, p, c) |
#define | IS_NAME_CHAR(enc, p, n) |
#define | IS_NAME_CHAR_MINBPC(enc, p) |
#define | IS_NMSTRT_CHAR(enc, p, n) |
#define | IS_NMSTRT_CHAR_MINBPC(enc, p) |
#define | XML_TOK_IMPL_C |
#define | BT_COLON BT_NMSTRT |
#define | BT_COLON BT_NMSTRT |
#define | BIG2_BYTE_TYPE(enc, p) |
#define | BIG2_BYTE_TO_ASCII(p) |
#define | BIG2_CHAR_MATCHES(p, c) |
#define | BIG2_IS_NAME_CHAR_MINBPC(p) |
#define | BIG2_IS_NMSTRT_CHAR_MINBPC(p) |
#define | PREFIX(ident) |
#define | MINBPC(enc) |
#define | BYTE_TYPE(enc, p) |
#define | BYTE_TO_ASCII(enc, p) |
#define | CHAR_MATCHES(enc, p, c) |
#define | IS_NAME_CHAR(enc, p, n) |
#define | IS_NAME_CHAR_MINBPC(enc, p) |
#define | IS_NMSTRT_CHAR(enc, p, n) |
#define | IS_NMSTRT_CHAR_MINBPC(enc, p) |
#define | XML_TOK_IMPL_C |
#define | BT_COLON BT_NMSTRT |
#define | AS_UNKNOWN_ENCODING(enc) |
#define | INIT_ENC_INDEX(enc) |
#define | SET_INIT_ENC_INDEX(enc, i) |
#define | NS(x) |
#define | ns(x) |
#define | XML_TOK_NS_C |
#define | NS(x) |
#define | ns(x) |
#define | XML_TOK_NS_C |
Enumerations | |
enum | { UTF8_cval1 = 0x00 , UTF8_cval2 = 0xc0 , UTF8_cval3 = 0xe0 , UTF8_cval4 = 0xf0 } |
enum | { UNKNOWN_ENC = -1 , ISO_8859_1_ENC = 0 , US_ASCII_ENC , UTF_8_ENC , UTF_16_ENC , UTF_16BE_ENC , UTF_16LE_ENC , NO_ENC } |
Functions | |
void | _INTERNAL_trim_to_complete_utf8_characters (const char *from, const char **fromLimRef) |
int FASTCALL | XmlUtf8Encode (int c, char *buf) |
int FASTCALL | XmlUtf16Encode (int charNum, unsigned short *buf) |
int | XmlSizeOfUnknownEncoding (void) |
ENCODING * | XmlInitUnknownEncoding (void *mem, int *table, CONVERTER convert, void *userData) |
ENCODING * | XmlInitUnknownEncodingNS (void *mem, int *table, CONVERTER convert, void *userData) |
#define AS_NORMAL_ENCODING | ( | enc | ) |
#define AS_UNKNOWN_ENCODING | ( | enc | ) |
#define BIG2_BYTE_TO_ASCII | ( | p | ) |
#define BIG2_BYTE_TYPE | ( | enc, | |
p ) |
#define BIG2_CHAR_MATCHES | ( | p, | |
c ) |
#define BIG2_IS_NAME_CHAR_MINBPC | ( | p | ) |
#define BIG2_IS_NMSTRT_CHAR_MINBPC | ( | p | ) |
#define BT_COLON BT_NMSTRT |
Referenced by XmlInitUnknownEncodingNS().
#define BT_COLON BT_NMSTRT |
#define BT_COLON BT_NMSTRT |
#define BT_COLON BT_NMSTRT |
#define BT_COLON BT_NMSTRT |
#define BT_COLON BT_NMSTRT |
#define BT_COLON BT_NMSTRT |
#define BYTE_TO_ASCII | ( | enc, | |
p ) |
#define BYTE_TO_ASCII | ( | enc, | |
p ) |
#define BYTE_TYPE | ( | enc, | |
p ) |
#define BYTE_TYPE | ( | enc, | |
p ) |
#define BYTE_TYPE | ( | enc, | |
p ) |
#define CHAR_MATCHES | ( | enc, | |
p, | |||
c ) |
#define CHAR_MATCHES | ( | enc, | |
p, | |||
c ) |
#define DEFINE_UTF16_TO_UTF16 | ( | E | ) |
Definition at line 697 of file xmltok.c.
#define DEFINE_UTF16_TO_UTF8 | ( | E | ) |
Definition at line 620 of file xmltok.c.
#define IGNORE_SECTION_TOK_VTABLE , PREFIX(ignoreSectionTok) |
#define INIT_ENC_INDEX | ( | enc | ) |
#define IS_INVALID_CHAR | ( | enc, | |
p, | |||
n ) |
Definition at line 276 of file xmltok.c.
#define IS_NAME_CHAR | ( | enc, | |
p, | |||
n ) |
#define IS_NAME_CHAR_MINBPC | ( | enc, | |
p ) |
#define IS_NAME_CHAR_MINBPC | ( | enc, | |
p ) |
#define IS_NMSTRT_CHAR | ( | enc, | |
p, | |||
n ) |
#define IS_NMSTRT_CHAR_MINBPC | ( | enc, | |
p ) |
#define IS_NMSTRT_CHAR_MINBPC | ( | enc, | |
p ) |
#define LITTLE2_BYTE_TO_ASCII | ( | p | ) |
#define LITTLE2_BYTE_TYPE | ( | enc, | |
p ) |
#define LITTLE2_CHAR_MATCHES | ( | p, | |
c ) |
#define LITTLE2_IS_NAME_CHAR_MINBPC | ( | p | ) |
#define LITTLE2_IS_NMSTRT_CHAR_MINBPC | ( | p | ) |
#define NORMAL_VTABLE | ( | E | ) |
Definition at line 219 of file xmltok.c.
#define NS | ( | x | ) |
#define ns | ( | x | ) |
Definition at line 1649 of file xmltok.c.
Referenced by G4VRestContinuousDiscreteProcess::AtRestGetPhysicalInteractionLength(), G4VRestContinuousProcess::AtRestGetPhysicalInteractionLength(), G4VRestDiscreteProcess::AtRestGetPhysicalInteractionLength(), G4VRestProcess::AtRestGetPhysicalInteractionLength(), G4ErrorSurfaceTrajState::BuildErrorMatrix(), G4UnitDefinition::BuildUnitsTable(), G4RadioactiveDecay::CalculateChainsFromParent(), G4FastStep::CheckIt(), G4ParticleChangeForDecay::CheckIt(), G4VParticleChange::CheckSecondary(), G4ShortLivedConstructor::ConstructMesons(), G4NeutronTrackingCut::ConstructProcess(), G4VRadioactiveDecay::DecayAnalog(), G4Decay::DecayIt(), G4UnknownDecay::DecayIt(), G4AntiBMesonZero::Definition(), G4AntiBsMesonZero::Definition(), G4AntiDMesonZero::Definition(), G4AntiDoubleHyperDoubleNeutron::Definition(), G4AntiDoubleHyperH4::Definition(), G4AntiHyperAlpha::Definition(), G4AntiHyperH4::Definition(), G4AntiHyperHe5::Definition(), G4AntiHyperTriton::Definition(), G4AntiLambda::Definition(), G4AntiLambdab::Definition(), G4AntiLambdacPlus::Definition(), G4AntiOmegabMinus::Definition(), G4AntiOmegacZero::Definition(), G4AntiOmegaMinus::Definition(), G4AntiSigmabMinus::Definition(), G4AntiSigmabPlus::Definition(), G4AntiSigmabZero::Definition(), G4AntiSigmacPlus::Definition(), G4AntiSigmacPlusPlus::Definition(), G4AntiSigmacZero::Definition(), G4AntiSigmaMinus::Definition(), G4AntiSigmaPlus::Definition(), G4AntiSigmaZero::Definition(), G4AntiXibMinus::Definition(), G4AntiXibZero::Definition(), G4AntiXicPlus::Definition(), G4AntiXicZero::Definition(), G4AntiXiMinus::Definition(), G4AntiXiZero::Definition(), G4BcMesonMinus::Definition(), G4BcMesonPlus::Definition(), G4BMesonMinus::Definition(), G4BMesonPlus::Definition(), G4BMesonZero::Definition(), G4BsMesonZero::Definition(), G4DMesonMinus::Definition(), G4DMesonPlus::Definition(), G4DMesonZero::Definition(), G4DoubleHyperDoubleNeutron::Definition(), G4DoubleHyperH4::Definition(), G4DsMesonMinus::Definition(), G4DsMesonPlus::Definition(), G4Eta::Definition(), G4Etac::Definition(), G4EtaPrime::Definition(), G4HyperAlpha::Definition(), G4HyperH4::Definition(), G4HyperHe5::Definition(), G4HyperTriton::Definition(), G4JPsi::Definition(), G4KaonMinus::Definition(), G4KaonPlus::Definition(), G4KaonZeroLong::Definition(), G4KaonZeroShort::Definition(), G4Lambda::Definition(), G4Lambdab::Definition(), G4LambdacPlus::Definition(), G4MuonMinus::Definition(), G4MuonPlus::Definition(), G4OmegabMinus::Definition(), G4OmegacZero::Definition(), G4OmegaMinus::Definition(), G4PionMinus::Definition(), G4PionPlus::Definition(), G4PionZero::Definition(), G4SigmabMinus::Definition(), G4SigmabPlus::Definition(), G4SigmabZero::Definition(), G4SigmacPlus::Definition(), G4SigmacPlusPlus::Definition(), G4SigmacZero::Definition(), G4SigmaMinus::Definition(), G4SigmaPlus::Definition(), G4SigmaZero::Definition(), G4TauMinus::Definition(), G4TauPlus::Definition(), G4Upsilon::Definition(), G4XibMinus::Definition(), G4XibZero::Definition(), G4XicPlus::Definition(), G4XicZero::Definition(), G4XiMinus::Definition(), G4XiZero::Definition(), G4GEMProbability::Dump(), G4IsotopeProperty::DumpInfo(), G4ParticleChange::DumpInfo(), G4ParticleChangeForDecay::DumpInfo(), G4ParticleDefinition::DumpTable(), G4ParticleGunMessenger::G4ParticleGunMessenger(), G4NuclideTable::GenerateNuclide(), G4Decay::GetMeanLifeTime(), G4MuonicAtomDecay::GetMeanLifeTime(), G4IRTUtils::GetRCutOff(), HepPolyhedronHype::HepPolyhedronHype(), G4ViewParameters::operator<<, G4MCTSimVertex::Print(), G4ParticlePropertyData::Print(), G4PrimaryParticle::Print(), G4PrimaryVertex::Print(), G4MCTSimParticle::PrintSingle(), G4VisCommandsViewerSet::SetNewValue(), G4NeutronKiller::SetTimeLimit(), G4ViewParameters::TimeWindowCommands(), G4ITSteppingVerbose::VerboseTrack(), and G4SteppingVerbose::VerboseTrack().
#define NULL_VTABLE |
Definition at line 223 of file xmltok.c.
#define PREFIX | ( | ident | ) |
#define SB_BYTE_TYPE | ( | enc, | |
p ) |
#define SET2 | ( | ptr, | |
ch ) |
#define SET2 | ( | ptr, | |
ch ) |
#define SET_INIT_ENC_INDEX | ( | enc, | |
i ) |
#define UCS2_GET_NAMING | ( | pages, | |
hi, | |||
lo ) |
Definition at line 78 of file xmltok.c.
Referenced by XmlInitUnknownEncoding().
#define UTF8_GET_NAMING2 | ( | pages, | |
byte ) |
Definition at line 85 of file xmltok.c.
#define UTF8_GET_NAMING3 | ( | pages, | |
byte ) |
Definition at line 95 of file xmltok.c.
#define UTF8_INVALID2 | ( | p | ) |
#define UTF8_INVALID3 | ( | p | ) |
Definition at line 115 of file xmltok.c.
#define UTF8_INVALID4 | ( | p | ) |
Definition at line 124 of file xmltok.c.
#define VTABLE1 |
Definition at line 68 of file xmltok.c.
anonymous enum |
Enumerator | |
---|---|
UTF8_cval1 | |
UTF8_cval2 | |
UTF8_cval3 | |
UTF8_cval4 |
Definition at line 318 of file xmltok.c.
anonymous enum |
Enumerator | |
---|---|
UNKNOWN_ENC | |
ISO_8859_1_ENC | |
US_ASCII_ENC | |
UTF_8_ENC | |
UTF_16_ENC | |
UTF_16BE_ENC | |
UTF_16LE_ENC | |
NO_ENC |
Definition at line 1479 of file xmltok.c.
void _INTERNAL_trim_to_complete_utf8_characters | ( | const char * | from, |
const char ** | fromLimRef ) |
Definition at line 326 of file xmltok.c.
Definition at line 1406 of file xmltok.c.
Referenced by XmlInitUnknownEncodingNS().
Definition at line 1669 of file xmltok.c.
int XmlSizeOfUnknownEncoding | ( | void | ) |
int FASTCALL XmlUtf16Encode | ( | int | charNum, |
unsigned short * | buf ) |
Definition at line 1298 of file xmltok.c.
int FASTCALL XmlUtf8Encode | ( | int | c, |
char * | buf ) |
Definition at line 1262 of file xmltok.c.
Referenced by XmlInitUnknownEncoding().