Lines Matching refs:c

290 	    sal_uInt16 c = pStr[i];  in convertToXML()  local
291 if (IsInvalidChar(c)) in convertToXML()
293 else if( (c >= 0x0001) && (c <= 0x007F) ) in convertToXML()
297 switch( c ) in convertToXML()
406 pTarget[rPos] = (sal_Int8)c; in convertToXML()
414 pTarget[rPos] = (sal_Int8)c; in convertToXML()
415 if ((sal_Int8)c == LINEFEED) in convertToXML()
420 else if( c >= 0xd800 && c < 0xdc00 ) in convertToXML()
424 nSurrogate = ( ( c & 0x03ff ) + 0x0040 ); in convertToXML()
426 else if( c >= 0xdc00 && c < 0xe000 ) in convertToXML()
431 nSurrogate = ( nSurrogate << 10 ) | ( c & 0x03ff ); in convertToXML()
461 else if( c > 0x07FF ) in convertToXML()
463 sal_Int8 aBytes[] = { sal_Int8(0xE0 | ((c >> 12) & 0x0F)), in convertToXML()
464 sal_Int8(0x80 | ((c >> 6) & 0x3F)), in convertToXML()
465 sal_Int8(0x80 | ((c >> 0) & 0x3F)) }; in convertToXML()
480 sal_Int8 aBytes[] = { sal_Int8(0xC0 | ((c >> 6) & 0x1F)), in convertToXML()
481 sal_Int8(0x80 | ((c >> 0) & 0x3F)) }; in convertToXML()
497 if( ( nSurrogate != 0 ) && !( c >= 0xd800 && c < 0xdc00 ) ) in convertToXML()
813 sal_uInt16 c = pStr[i]; in calcXMLByteLength() local
814 if( !IsInvalidChar(c) && (c >= 0x0001) && (c <= 0x007F) ) in calcXMLByteLength()
818 switch( c ) in calcXMLByteLength()
853 else if( c >= 0xd800 && c < 0xdc00 ) in calcXMLByteLength()
856 nSurrogate = ( ( c & 0x03ff ) + 0x0040 ); in calcXMLByteLength()
858 else if( c >= 0xdc00 && c < 0xe000 ) in calcXMLByteLength()
861 nSurrogate = ( nSurrogate << 10 ) | ( c & 0x03ff ); in calcXMLByteLength()
866 else if( c > 0x07FF ) in calcXMLByteLength()
876 if( ( nSurrogate != 0 ) && !( c >= 0xd800 && c < 0xdc00 ) ) in calcXMLByteLength()