Ejemplo n.º 1
0
void BaseEntityParser::parseCharacterReference()
{
	unsigned int uni_val = 0;

	// '&' was already read,
        //'#' is in the current position 
        consumeToken('#');
        // There MUST be something after this token
        checkForEOF();

	if (*text == 'x') {
		// hexa number
		consumeToken('x');
		uni_val = readNumber(true);
	} else {
		// commom (decimal) number
		uni_val = readNumber();
	}

        // Convert number into unicode
        handleEntityText(unichr(uni_val));
}
Ejemplo n.º 2
0
wchar_t *wcschr( const wchar_t *_wc1, wchar_t _wc2 )
{ return (wchar_t *)unichr((const unicode_t *)_wc1, (unicode_t)_wc2 ); }