#include <cXml.h>
◆ E_TYPE
predefined XML entities.
| Enumerator |
|---|
| E_AMP | '&' = "&"
|
| E_LT | '<' = "<"
|
| E_GT | '>'
|
| E_QUOT | '"'
|
| E_APOS | '\''
|
| E_QTY | |
◆ DecodeEntity()
If an entity has been found, transform it into a character. Presume an entity, and pull it out. Opposite of cXml::EncodeString ASSUME pszOutputValue can hold the UTF8 char output.
- Returns
- next pszInputData after parse. nullptr = its not an encoded char i recognize.
◆ EncodeString()
Encode XML string. Expands entities in a string. Note this should not contain the tag's '<', '>', etc, or they will be transformed into entities! Opposite of cXmlEntity::DecodeEntity
- Todo:
- Allow "&#nnnn;" decimal format encode ?
◆ FindEntityChar()
| const cXmlEntity * GrayLib::cXmlEntity::FindEntityChar |
( |
wchar_t |
ch | ) |
|
|
static |
◆ FindEntityName()
| const cXmlEntity * GrayLib::cXmlEntity::FindEntityName |
( |
const char * |
pszName | ) |
|
|
static |
◆ k_Entity
Initial value:=
{
{ "&", 5, '&' },
{ "<", 4, '<' },
{ ">", 4, '>' },
{ """, 6, '\"' },
{ "'", 6, '\'' }
}
The predefined XML entities.
◆ m_chValue
| wchar_t GrayLib::cXmlEntity::m_chValue |
The result UNICODE char this entity will produce.
◆ m_nLenName
| StrLen_t GrayLib::cXmlEntity::m_nLenName |
length of m_pszName including ;
◆ m_pszName
| const char* GrayLib::cXmlEntity::m_pszName |
raw string for the entity. e.g. "&"
The documentation for this struct was generated from the following files:
- c:/Dennis/Source/Gray/GrayLib/include/Xml/cXml.h
- c:/Dennis/Source/Gray/GrayLib/src/Xml/cXml.cpp