Lines Matching refs:nSurrogate
286 sal_uInt32 nSurrogate = 0; in convertToXML() local
423 OSL_ENSURE( nSurrogate == 0, "left-over Unicode surrogate" ); in convertToXML()
424 nSurrogate = ( ( c & 0x03ff ) + 0x0040 ); in convertToXML()
429 OSL_ENSURE( nSurrogate != 0, "lone 2nd Unicode surrogate" ); in convertToXML()
431 nSurrogate = ( nSurrogate << 10 ) | ( c & 0x03ff ); in convertToXML()
432 if( nSurrogate >= 0x00010000 && nSurrogate <= 0x0010FFFF ) in convertToXML()
434 sal_Int8 aBytes[] = { sal_Int8(0xF0 | ((nSurrogate >> 18) & 0x0F)), in convertToXML()
435 sal_Int8(0x80 | ((nSurrogate >> 12) & 0x3F)), in convertToXML()
436 sal_Int8(0x80 | ((nSurrogate >> 6) & 0x3F)), in convertToXML()
437 sal_Int8(0x80 | ((nSurrogate >> 0) & 0x3F)) }; in convertToXML()
459 nSurrogate = 0; in convertToXML()
497 if( ( nSurrogate != 0 ) && !( c >= 0xd800 && c < 0xdc00 ) ) in convertToXML()
499 OSL_ENSURE( nSurrogate != 0, "left-over Unicode surrogate" ); in convertToXML()
500 nSurrogate = 0; in convertToXML()
809 sal_uInt32 nSurrogate = 0; in calcXMLByteLength() local
856 nSurrogate = ( ( c & 0x03ff ) + 0x0040 ); in calcXMLByteLength()
861 nSurrogate = ( nSurrogate << 10 ) | ( c & 0x03ff ); in calcXMLByteLength()
862 if( nSurrogate >= 0x00010000 && nSurrogate <= 0x0010FFFF ) in calcXMLByteLength()
864 nSurrogate = 0; in calcXMLByteLength()
876 if( ( nSurrogate != 0 ) && !( c >= 0xd800 && c < 0xdc00 ) ) in calcXMLByteLength()
877 nSurrogate = 0; in calcXMLByteLength()