xerces: fixed compilation
This commit is contained in:
@@ -178,7 +178,7 @@ XMLUTF8Transcoder::transcodeFrom(const XMLByte* const srcData
|
||||
if((gUTFByteIndicatorTest[trailingBytes] & *srcPtr) != gUTFByteIndicator[trailingBytes]) {
|
||||
char pos[2] = {(char)0x31, 0};
|
||||
char len[2] = {(char)(trailingBytes+0x31), 0};
|
||||
char byte[2] = {*srcPtr,0};
|
||||
char byte[2] = {(char)*srcPtr,0};
|
||||
ThrowXMLwithMemMgr3(UTFDataFormatException, XMLExcepts::UTF8_FormatError, pos, byte, len, getMemoryManager());
|
||||
}
|
||||
|
||||
@@ -246,8 +246,8 @@ XMLUTF8Transcoder::transcodeFrom(const XMLByte* const srcData
|
||||
//
|
||||
if (( *srcPtr == 0xE0) && ( *(srcPtr+1) < 0xA0))
|
||||
{
|
||||
char byte0[2] = {*srcPtr ,0};
|
||||
char byte1[2] = {*(srcPtr+1),0};
|
||||
char byte0[2] = {(char)*srcPtr ,0};
|
||||
char byte1[2] = {(char)*(srcPtr+1),0};
|
||||
|
||||
ThrowXMLwithMemMgr2(UTFDataFormatException
|
||||
, XMLExcepts::UTF8_Invalid_3BytesSeq
|
||||
@@ -284,8 +284,8 @@ XMLUTF8Transcoder::transcodeFrom(const XMLByte* const srcData
|
||||
|
||||
if ((*srcPtr == 0xED) && (*(srcPtr+1) >= 0xA0))
|
||||
{
|
||||
char byte0[2] = {*srcPtr, 0};
|
||||
char byte1[2] = {*(srcPtr+1),0};
|
||||
char byte0[2] = {(char)*srcPtr, 0};
|
||||
char byte1[2] = {(char)*(srcPtr+1),0};
|
||||
|
||||
ThrowXMLwithMemMgr2(UTFDataFormatException
|
||||
, XMLExcepts::UTF8_Irregular_3BytesSeq
|
||||
@@ -310,8 +310,8 @@ XMLUTF8Transcoder::transcodeFrom(const XMLByte* const srcData
|
||||
if (((*srcPtr == 0xF0) && (*(srcPtr+1) < 0x90)) ||
|
||||
((*srcPtr == 0xF4) && (*(srcPtr+1) > 0x8F)) )
|
||||
{
|
||||
char byte0[2] = {*srcPtr ,0};
|
||||
char byte1[2] = {*(srcPtr+1),0};
|
||||
char byte0[2] = {(char)*srcPtr ,0};
|
||||
char byte1[2] = {(char)*(srcPtr+1),0};
|
||||
|
||||
ThrowXMLwithMemMgr2(UTFDataFormatException
|
||||
, XMLExcepts::UTF8_Invalid_4BytesSeq
|
||||
@@ -344,7 +344,7 @@ XMLUTF8Transcoder::transcodeFrom(const XMLByte* const srcData
|
||||
* surrogates, nor U+FFFE and U+FFFF (but it does allow other noncharacters).
|
||||
***/
|
||||
char len[2] = {(char)(trailingBytes+0x31), 0};
|
||||
char byte[2] = {*srcPtr,0};
|
||||
char byte[2] = {(char)*srcPtr,0};
|
||||
|
||||
ThrowXMLwithMemMgr2(UTFDataFormatException
|
||||
, XMLExcepts::UTF8_Exceeds_BytesLimit
|
||||
|
||||
@@ -156,7 +156,7 @@ XMLInt32 ParserForXMLSchema::decodeEscaped() {
|
||||
break;
|
||||
default:
|
||||
{
|
||||
XMLCh chString[] = {chBackSlash, ch, chNull};
|
||||
XMLCh chString[] = {chBackSlash, (XMLCh)ch, chNull};
|
||||
ThrowXMLwithMemMgr1(ParseException,XMLExcepts::Parser_Process2, chString, getMemoryManager());
|
||||
}
|
||||
}
|
||||
|
||||
@@ -691,11 +691,11 @@ RangeToken* RegxParser::parseCharacterClass(const bool useNRange) {
|
||||
|| (ch == chDash && getCharData() == chCloseSquare && firstLoop))) {
|
||||
// if regex = [-] then invalid...
|
||||
// '[', ']', '-' not allowed and should be escaped
|
||||
XMLCh chStr[] = { ch, chNull };
|
||||
XMLCh chStr[] = { (XMLCh)ch, chNull };
|
||||
ThrowXMLwithMemMgr2(ParseException,XMLExcepts::Parser_CC6, chStr, chStr, getMemoryManager());
|
||||
}
|
||||
if (ch == chDash && getCharData() == chDash && getState() != REGX_T_BACKSOLIDUS && !wasDecoded) {
|
||||
XMLCh chStr[] = { ch, chNull };
|
||||
XMLCh chStr[] = { (XMLCh)ch, chNull };
|
||||
ThrowXMLwithMemMgr2(ParseException,XMLExcepts::Parser_CC6, chStr, chStr, getMemoryManager());
|
||||
}
|
||||
|
||||
@@ -720,7 +720,7 @@ RangeToken* RegxParser::parseCharacterClass(const bool useNRange) {
|
||||
else {
|
||||
|
||||
XMLInt32 rangeEnd = getCharData();
|
||||
XMLCh rangeEndStr[] = { rangeEnd, chNull };
|
||||
XMLCh rangeEndStr[] = { (XMLCh)rangeEnd, chNull };
|
||||
|
||||
if (type == REGX_T_CHAR) {
|
||||
|
||||
@@ -737,7 +737,7 @@ RangeToken* RegxParser::parseCharacterClass(const bool useNRange) {
|
||||
processNext();
|
||||
|
||||
if (ch > rangeEnd) {
|
||||
XMLCh chStr[] = { ch, chNull };
|
||||
XMLCh chStr[] = { (XMLCh)ch, chNull };
|
||||
ThrowXMLwithMemMgr2(ParseException,XMLExcepts::Parser_Ope3, rangeEndStr, chStr, getMemoryManager());
|
||||
}
|
||||
|
||||
@@ -845,7 +845,7 @@ XMLInt32 RegxParser::decodeEscaped() {
|
||||
break;
|
||||
default:
|
||||
{
|
||||
XMLCh chString[] = {chBackSlash, ch, chNull};
|
||||
XMLCh chString[] = {chBackSlash, (XMLCh)ch, chNull};
|
||||
ThrowXMLwithMemMgr1(ParseException,XMLExcepts::Parser_Process2, chString, getMemoryManager());
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user