version 1.55, 2009/11/30 16:49:46
|
version 1.56, 2012/07/26 11:14:54
|
|
|
char replacement; | char replacement; |
}; | }; |
| |
// ATTN: Add support for more entity references |
|
static EntityReference _references[] = |
|
{ |
|
{ "&", 5, '&' }, |
|
{ "<", 4, '<' }, |
|
{ ">", 4, '>' }, |
|
{ """, 6, '"' }, |
|
{ "'", 6, '\'' } |
|
}; |
|
|
|
|
|
// Implements a check for a whitespace character, without calling | // Implements a check for a whitespace character, without calling |
// isspace( ). The isspace( ) function is locale-sensitive, | // isspace( ). The isspace( ) function is locale-sensitive, |
// and incorrectly flags some chars above 0x7f as whitespace. This | // and incorrectly flags some chars above 0x7f as whitespace. This |
|
|
return CharSet::isXmlWhiteSpace((Uint8)c); | return CharSet::isXmlWhiteSpace((Uint8)c); |
} | } |
| |
static Uint32 _REFERENCES_SIZE = (sizeof(_references) / sizeof(_references[0])); |
|
| |
//////////////////////////////////////////////////////////////////////////////// | //////////////////////////////////////////////////////////////////////////////// |
// | // |