Skip to content
Snippets Groups Projects
Commit 80e40866 authored by Rahul Jain's avatar Rahul Jain
Browse files

XMLFormatter now escapes characters, as reqd., occuring

midway in strings. Reported by Hugo
Duncan <hugo.duncan@alcan.com>. Fix submitted by
Dean Roddey <droddey@charmedquark.com>.


git-svn-id: https://svn.apache.org/repos/asf/xerces/c/trunk@172123 13f79535-47bb-0310-9956-ffa450edef68
parent 9d56537f
No related branches found
No related tags found
No related merge requests found
......@@ -284,15 +284,13 @@ XMLUTF8Transcoder::transcodeTo( const XMLCh* const srcData
XMLByte* outPtr = toFill;
XMLByte* outEnd = toFill + maxBytes;
while (true)
while (srcPtr < srcEnd)
{
//
// Tentatively get the next char out. We have to get it into a
// 32 bit value, because it could be a surrogate pair.
//
XMLUInt32 curVal = *srcPtr;
if (!curVal)
break;
//
// If its a leading surrogate, then lets see if we have the trailing
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment