CDTDModel.cpp File Reference
const TInt KValidCharMatchStartStingLength
|
const
TInt
|
KValidCharMatchStartStingLength
|
_LIT(KMatch0Plus, "Match0Plus")
|
_LIT
|
(
|
KMatch0Plus
|
,
|
|
|
"Match0Plus"
|
|
|
|
)
|
|
_LIT(KRules, "Rules")
|
_LIT
|
(
|
KRules
|
,
|
|
|
"Rules"
|
|
|
|
)
|
|
_LIT(KComment, "Comment")
|
_LIT
|
(
|
KComment
|
,
|
|
|
"Comment"
|
|
|
|
)
|
|
_LIT(KSpace, "Space")
|
_LIT
|
(
|
KSpace
|
,
|
|
|
"Space"
|
|
|
|
)
|
|
_LIT(KOptional, "Optional")
|
_LIT
|
(
|
KOptional
|
,
|
|
|
"Optional"
|
|
|
|
)
|
|
_LIT(KMatch1Plus, "Match1Plus")
|
_LIT
|
(
|
KMatch1Plus
|
,
|
|
|
"Match1Plus"
|
|
|
|
)
|
|
_LIT(KGroupStart, "GroupStart")
|
_LIT
|
(
|
KGroupStart
|
,
|
|
|
"GroupStart"
|
|
|
|
)
|
|
_LIT(KGroupEnd, "GroupEnd")
|
_LIT
|
(
|
KGroupEnd
|
,
|
|
|
"GroupEnd"
|
|
|
|
)
|
|
_LIT(KSStringStart, "SStringStart")
|
_LIT
|
(
|
KSStringStart
|
,
|
|
|
"SStringStart"
|
|
|
|
)
|
|
Parameters
|
KSStringStart
|
|
|
"SStringStart"
|
|
_LIT(KSStringEnd, "SStringEnd")
|
_LIT
|
(
|
KSStringEnd
|
,
|
|
|
"SStringEnd"
|
|
|
|
)
|
|
_LIT(KDStringStart, "DStringStart")
|
_LIT
|
(
|
KDStringStart
|
,
|
|
|
"DStringStart"
|
|
|
|
)
|
|
Parameters
|
KDStringStart
|
|
|
"DStringStart"
|
|
_LIT(KDStringEnd, "DStringEnd")
|
_LIT
|
(
|
KDStringEnd
|
,
|
|
|
"DStringEnd"
|
|
|
|
)
|
|
_LIT(KLetter, "Letter")
|
_LIT
|
(
|
KLetter
|
,
|
|
|
"Letter"
|
|
|
|
)
|
|
_LIT(KDigit, "Digit")
|
_LIT
|
(
|
KDigit
|
,
|
|
|
"Digit"
|
|
|
|
)
|
|
_LIT(KHexNumber, "HexNumber")
|
_LIT
|
(
|
KHexNumber
|
,
|
|
|
"HexNumber"
|
|
|
|
)
|
|
_LIT(KDecNumber, "DecNumber")
|
_LIT
|
(
|
KDecNumber
|
,
|
|
|
"DecNumber"
|
|
|
|
)
|
|
_LIT(KHexChar, "HexChar")
|
_LIT
|
(
|
KHexChar
|
,
|
|
|
"HexChar"
|
|
|
|
)
|
|
_LIT(KDecChar, "DecChar")
|
_LIT
|
(
|
KDecChar
|
,
|
|
|
"DecChar"
|
|
|
|
)
|
|
_LIT(KValidHexChar, "ValidHexChar")
|
_LIT
|
(
|
KValidHexChar
|
,
|
|
|
"ValidHexChar"
|
|
|
|
)
|
|
Parameters
|
KValidHexChar
|
|
|
"ValidHexChar"
|
|
_LIT(KBaseChar, "BaseChar")
|
_LIT
|
(
|
KBaseChar
|
,
|
|
|
"BaseChar"
|
|
|
|
)
|
|
_LIT(KValidChar, "ValidChar")
|
_LIT
|
(
|
KValidChar
|
,
|
|
|
"ValidChar"
|
|
|
|
)
|
|
_LIT(KSStringChar, "SStringChar")
|
_LIT
|
(
|
KSStringChar
|
,
|
|
|
"SStringChar"
|
|
|
|
)
|
|
Parameters
|
KSStringChar
|
|
|
"SStringChar"
|
|
_LIT(KDStringChar, "DStringChar")
|
_LIT
|
(
|
KDStringChar
|
,
|
|
|
"DStringChar"
|
|
|
|
)
|
|
Parameters
|
KDStringChar
|
|
|
"DStringChar"
|
|
_LIT(KIdentifier, "Identifier")
|
_LIT
|
(
|
KIdentifier
|
,
|
|
|
"Identifier"
|
|
|
|
)
|
|
_LIT(KSString, "SString")
|
_LIT
|
(
|
KSString
|
,
|
|
|
"SString"
|
|
|
|
)
|
|
_LIT(KDString, "DString")
|
_LIT
|
(
|
KDString
|
,
|
|
|
"DString"
|
|
|
|
)
|
|
_LIT(KString, "String")
|
_LIT
|
(
|
KString
|
,
|
|
|
"String"
|
|
|
|
)
|
|
_LIT(KPrimary, "Primary")
|
_LIT
|
(
|
KPrimary
|
,
|
|
|
"Primary"
|
|
|
|
)
|
|
_LIT(KFactor, "Factor")
|
_LIT
|
(
|
KFactor
|
,
|
|
|
"Factor"
|
|
|
|
)
|
|
_LIT(KDefinition, "Definition")
|
_LIT
|
(
|
KDefinition
|
,
|
|
|
"Definition"
|
|
|
|
)
|
|
_LIT(KDefinitions, "Definitions")
|
_LIT
|
(
|
KDefinitions
|
,
|
|
|
"Definitions"
|
|
|
|
)
|
|
Parameters
|
KDefinitions
|
|
|
"Definitions"
|
|
_LIT(KDataReference, "DataReference")
|
_LIT
|
(
|
KDataReference
|
,
|
|
|
"DataReference"
|
|
|
|
)
|
|
Parameters
|
KDataReference
|
|
|
"DataReference"
|
|
_LIT(KAttlistLine, "AttlistLine")
|
_LIT
|
(
|
KAttlistLine
|
,
|
|
|
"AttlistLine"
|
|
|
|
)
|
|
Parameters
|
KAttlistLine
|
|
|
"AttlistLine"
|
|
_LIT(KEntityDefinition, "EntityDefinition")
|
_LIT
|
(
|
KEntityDefinition
|
,
|
|
|
"EntityDefinition"
|
|
|
|
)
|
|
Parameters
|
KEntityDefinition
|
|
|
"EntityDefinition"
|
|
_LIT(KCharRefStream, "CharRefStream")
|
_LIT
|
(
|
KCharRefStream
|
,
|
|
|
"CharRefStream"
|
|
|
|
)
|
|
Parameters
|
KCharRefStream
|
|
|
"CharRefStream"
|
|
_LIT(KEntityDef, "EntityDef")
|
_LIT
|
(
|
KEntityDef
|
,
|
|
|
"EntityDef"
|
|
|
|
)
|
|
_LIT(KReferenceName, "ReferenceName")
|
_LIT
|
(
|
KReferenceName
|
,
|
|
|
"ReferenceName"
|
|
|
|
)
|
|
Parameters
|
KReferenceName
|
|
|
"ReferenceName"
|
|
_LIT(KEntityDeclName, "EntityDeclName")
|
_LIT
|
(
|
KEntityDeclName
|
,
|
|
|
"EntityDeclName"
|
|
|
|
)
|
|
Parameters
|
KEntityDeclName
|
|
|
"EntityDeclName"
|
|
_LIT(KElementDeclName, "ElementDeclName")
|
_LIT
|
(
|
KElementDeclName
|
,
|
|
|
"ElementDeclName"
|
|
|
|
)
|
|
Parameters
|
KElementDeclName
|
|
|
"ElementDeclName"
|
|
_LIT(KNameChar, "NameChar")
|
_LIT
|
(
|
KNameChar
|
,
|
|
|
"NameChar"
|
|
|
|
)
|
|
_LIT(KAttlistDeclName, "AttlistDeclName")
|
_LIT
|
(
|
KAttlistDeclName
|
,
|
|
|
"AttlistDeclName"
|
|
|
|
)
|
|
Parameters
|
KAttlistDeclName
|
|
|
"AttlistDeclName"
|
|
_LIT(KEntityDecl, "EntityDecl")
|
_LIT
|
(
|
KEntityDecl
|
,
|
|
|
"EntityDecl"
|
|
|
|
)
|
|
_LIT(KElementDecl, "ElementDecl")
|
_LIT
|
(
|
KElementDecl
|
,
|
|
|
"ElementDecl"
|
|
|
|
)
|
|
Parameters
|
KElementDecl
|
|
|
"ElementDecl"
|
|
_LIT(KAttDefRequired, "AttDefRequired")
|
_LIT
|
(
|
KAttDefRequired
|
,
|
|
|
"AttDefRequired"
|
|
|
|
)
|
|
Parameters
|
KAttDefRequired
|
|
|
"AttDefRequired"
|
|
_LIT(KAttDefImplied, "AttDefImplied")
|
_LIT
|
(
|
KAttDefImplied
|
,
|
|
|
"AttDefImplied"
|
|
|
|
)
|
|
Parameters
|
KAttDefImplied
|
|
|
"AttDefImplied"
|
|
_LIT(KAttDefFixed, "AttDefFixed")
|
_LIT
|
(
|
KAttDefFixed
|
,
|
|
|
"AttDefFixed"
|
|
|
|
)
|
|
Parameters
|
KAttDefFixed
|
|
|
"AttDefFixed"
|
|
_LIT(KAttDefault, "AttDefault")
|
_LIT
|
(
|
KAttDefault
|
,
|
|
|
"AttDefault"
|
|
|
|
)
|
|
_LIT(KReference, "Reference")
|
_LIT
|
(
|
KReference
|
,
|
|
|
"Reference"
|
|
|
|
)
|
|
_LIT(KAttlistReference, "AttlistReference")
|
_LIT
|
(
|
KAttlistReference
|
,
|
|
|
"AttlistReference"
|
|
|
|
)
|
|
Parameters
|
KAttlistReference
|
|
|
"AttlistReference"
|
|
_LIT(KAttlistDef, "AttlistDef")
|
_LIT
|
(
|
KAttlistDef
|
,
|
|
|
"AttlistDef"
|
|
|
|
)
|
|
_LIT(KAttlistDecl, "AttlistDecl")
|
_LIT
|
(
|
KAttlistDecl
|
,
|
|
|
"AttlistDecl"
|
|
|
|
)
|
|
Parameters
|
KAttlistDecl
|
|
|
"AttlistDecl"
|
|
_LIT(KCommentChar, "CommentChar")
|
_LIT
|
(
|
KCommentChar
|
,
|
|
|
"CommentChar"
|
|
|
|
)
|
|
Parameters
|
KCommentChar
|
|
|
"CommentChar"
|
|
_LIT(KAttfieldName, "AttfieldName")
|
_LIT
|
(
|
KAttfieldName
|
,
|
|
|
"AttfieldName"
|
|
|
|
)
|
|
Parameters
|
KAttfieldName
|
|
|
"AttfieldName"
|
|
_LIT(KAttfieldTypeName, "AttfieldTypeName")
|
_LIT
|
(
|
KAttfieldTypeName
|
,
|
|
|
"AttfieldTypeName"
|
|
|
|
)
|
|
Parameters
|
KAttfieldTypeName
|
|
|
"AttfieldTypeName"
|
|
_LIT(KAttValue, "AttValue")
|
_LIT
|
(
|
KAttValue
|
,
|
|
|
"AttValue"
|
|
|
|
)
|
|
_LIT(KGEContentS, "GEContentS")
|
_LIT
|
(
|
KGEContentS
|
,
|
|
|
"GEContentS"
|
|
|
|
)
|
|
_LIT(KGEContentD, "GEContentD")
|
_LIT
|
(
|
KGEContentD
|
,
|
|
|
"GEContentD"
|
|
|
|
)
|
|
_LIT(KGEDecl, "GEDecl")
|
_LIT
|
(
|
KGEDecl
|
,
|
|
|
"GEDecl"
|
|
|
|
)
|
|
_LIT(KPEDecl, "PEDecl")
|
_LIT
|
(
|
KPEDecl
|
,
|
|
|
"PEDecl"
|
|
|
|
)
|
|
_LIT(KRefNameInitialChar, "%")
|
_LIT
|
(
|
KRefNameInitialChar
|
,
|
|
|
"%"
|
|
|
|
)
|
|
_LIT(KRefNameEndChar, ";")
|
_LIT
|
(
|
KRefNameEndChar
|
,
|
|
|
";"
|
|
|
|
)
|
|
_LIT(KEntityInitialChar, "%")
|
_LIT
|
(
|
KEntityInitialChar
|
,
|
|
|
"%"
|
|
|
|
)
|
|
_LIT(KWhiteSpaceString, " \n\r\t")
|
_LIT
|
(
|
KWhiteSpaceString
|
,
|
|
|
" \n\r\t"
|
|
|
|
)
|
|
Parameters
|
KWhiteSpaceString
|
|
|
" \n\r\t"
|
|
_LIT(KSpaceChar, " ")
|
_LIT
|
(
|
KSpaceChar
|
,
|
|
|
" "
|
|
|
|
)
|
|
_LIT(KOrCharacter, "|")
|
_LIT
|
(
|
KOrCharacter
|
,
|
|
|
"|"
|
|
|
|
)
|
|
_LIT(KAndCharacter, ", ")
|
_LIT
|
(
|
KAndCharacter
|
,
|
|
|
"
|
,
|
|
|
"
|
|
|
|
)
|
|
_LIT(KGroupEndChar, ")
|
_LIT
|
(
|
KGroupEndChar
|
,
|
|
|
"
|
|
|
|
)
|
|
_LIT(KStringStartCharacter, "'")
|
_LIT
|
(
|
KStringStartCharacter
|
,
|
|
|
"'"
|
|
|
|
)
|
|
Parameters
|
KStringStartCharacter
|
|
|
"'"
|
|
_LIT(KStringEndCharacter, "'")
|
_LIT
|
(
|
KStringEndCharacter
|
,
|
|
|
"'"
|
|
|
|
)
|
|
_LIT(KStringStartCharacter2, "\"")
|
_LIT
|
(
|
KStringStartCharacter2
|
,
|
|
|
"\""
|
|
|
|
)
|
|
Parameters
|
KStringStartCharacter2
|
|
|
"\""
|
|
_LIT(KStringEndCharacter2, "\"")
|
_LIT
|
(
|
KStringEndCharacter2
|
,
|
|
|
"\""
|
|
|
|
)
|
|
Parameters
|
KStringEndCharacter2
|
|
|
"\""
|
|
_LIT(KHexCharacterStart, "&#")
|
_LIT
|
(
|
KHexCharacterStart
|
,
|
|
|
"&#"
|
|
|
|
)
|
|
_LIT(KHexCharacterEnd, ";")
|
_LIT
|
(
|
KHexCharacterEnd
|
,
|
|
|
";"
|
|
|
|
)
|
|
_LIT(KDecCharacterStart, "#")
|
_LIT
|
(
|
KDecCharacterStart
|
,
|
|
|
"#"
|
|
|
|
)
|
|
_LIT(KBaseCharacters, "-()+)
|
_LIT
|
(
|
KBaseCharacters
|
,
|
|
|
"-()+
|
|
|
|
)
|
|
_LIT(KOtherValidCharacters, "'\"")
|
_LIT
|
(
|
KOtherValidCharacters
|
,
|
|
|
"'\""
|
|
|
|
)
|
|
Parameters
|
KOtherValidCharacters
|
|
|
"'\""
|
|
_LIT(KStringCharacters, "\"")
|
_LIT
|
(
|
KStringCharacters
|
,
|
|
|
"\""
|
|
|
|
)
|
|
_LIT(KStringCharacters2, "'")
|
_LIT
|
(
|
KStringCharacters2
|
,
|
|
|
"'"
|
|
|
|
)
|
|
_LIT(KCharRefStreamAmpersand, "&")
|
_LIT
|
(
|
KCharRefStreamAmpersand
|
,
|
|
|
"&"
|
|
|
|
)
|
|
Parameters
|
KCharRefStreamAmpersand
|
|
|
"&"
|
|
_LIT(KNameOtherCharacters, ".-_:")
|
_LIT
|
(
|
KNameOtherCharacters
|
,
|
|
|
".-_:"
|
|
|
|
)
|
|
Parameters
|
KNameOtherCharacters
|
|
|
".-_:"
|
|
_LIT(KGEContentCharacters)
|
_LIT
|
(
|
KGEContentCharacters
|
|
)
|
|
_LIT(KGEContentDCharacters)
|
_LIT
|
(
|
KGEContentDCharacters
|
|
)
|
|
_LIT(KEntityDeclStart)
|
_LIT
|
(
|
KEntityDeclStart
|
|
)
|
|
_LIT(KEntityDeclEnd, ", ")
|
_LIT
|
(
|
KEntityDeclEnd
|
,
|
|
|
"
|
,
|
|
|
"
|
|
|
|
)
|
|
_LIT(KElementDeclStart)
|
_LIT
|
(
|
KElementDeclStart
|
|
)
|
|
_LIT(KElementDeclEnd, ", ")
|
_LIT
|
(
|
KElementDeclEnd
|
,
|
|
|
"
|
,
|
|
|
"
|
|
|
|
)
|
|
_LIT(KRequired, "#REQUIRED")
|
_LIT
|
(
|
KRequired
|
,
|
|
|
"#REQUIRED"
|
|
|
|
)
|
|
_LIT(KImplied, "#IMPLIED")
|
_LIT
|
(
|
KImplied
|
,
|
|
|
"#IMPLIED"
|
|
|
|
)
|
|
_LIT(KFixed, "#FIXED")
|
_LIT
|
(
|
KFixed
|
,
|
|
|
"#FIXED"
|
|
|
|
)
|
|
_LIT(KCData, "CDATA")
|
_LIT
|
(
|
KCData
|
,
|
|
|
"CDATA"
|
|
|
|
)
|
|
_LIT(KPCData, "#PCDATA")
|
_LIT
|
(
|
KPCData
|
,
|
|
|
"#PCDATA"
|
|
|
|
)
|
|
_LIT(KNMToken, "NMTOKEN")
|
_LIT
|
(
|
KNMToken
|
,
|
|
|
"NMTOKEN"
|
|
|
|
)
|
|
_LIT(KAttributeListStart)
|
_LIT
|
(
|
KAttributeListStart
|
|
)
|
|
_LIT(KAttlistDeclNameCharacters, "AttlistDeclName")
|
_LIT
|
(
|
KAttlistDeclNameCharacters
|
,
|
|
|
"AttlistDeclName"
|
|
|
|
)
|
|
Parameters
|
KAttlistDeclNameCharacters
|
|
|
"AttlistDeclName"
|
|
_LIT(KAttributeListEnd, ", ")
|
_LIT
|
(
|
KAttributeListEnd
|
,
|
|
|
"
|
,
|
|
|
"
|
|
|
|
)
|
|
_LIT(KCommentCharacter, "-")
|
_LIT
|
(
|
KCommentCharacter
|
,
|
|
|
"-"
|
|
|
|
)
|
|
_LIT(KCommentEnd, "-->")
|
_LIT
|
(
|
KCommentEnd
|
,
|
|
|
"-->"
|
|
|
|
)
|
|
_LIT(KCharRefMatchingPattern, "*&#*;*")
|
_LIT
|
(
|
KCharRefMatchingPattern
|
,
|
|
|
"*&#*;*"
|
|
|
|
)
|
|
Parameters
|
KCharRefMatchingPattern
|
|
|
"*&#*;*"
|
|
Copyright ©2010 Nokia Corporation and/or its subsidiary(-ies).
All rights
reserved. Unless otherwise stated, these materials are provided under the terms of the Eclipse Public License
v1.0.