Lines Matching refs:nChar

97         sal_uInt32 nChar = *pSrcBufPtr++;  in ImplConvertUtf8ToUnicode()  local
99 if (nChar <= 0x7F) in ImplConvertUtf8ToUnicode()
101 nUtf32 = nChar; in ImplConvertUtf8ToUnicode()
104 else if (nChar <= 0xBF) in ImplConvertUtf8ToUnicode()
106 else if (nChar <= 0xDF) in ImplConvertUtf8ToUnicode()
108 nUtf32 = (nChar & 0x1F) << 6; in ImplConvertUtf8ToUnicode()
111 else if (nChar <= 0xEF) in ImplConvertUtf8ToUnicode()
113 nUtf32 = (nChar & 0x0F) << 12; in ImplConvertUtf8ToUnicode()
116 else if (nChar <= 0xF7) in ImplConvertUtf8ToUnicode()
118 nUtf32 = (nChar & 0x07) << 18; in ImplConvertUtf8ToUnicode()
121 else if (nChar <= 0xFB) in ImplConvertUtf8ToUnicode()
123 nUtf32 = (nChar & 0x03) << 24; in ImplConvertUtf8ToUnicode()
126 else if (nChar <= 0xFD) in ImplConvertUtf8ToUnicode()
128 nUtf32 = (nChar & 0x01) << 30; in ImplConvertUtf8ToUnicode()
133 else if ((nChar & 0xC0) == 0x80) in ImplConvertUtf8ToUnicode()
135 nUtf32 |= (nChar & 0x3F) << nShift; in ImplConvertUtf8ToUnicode()
149 bConsume = nChar >= 0xFE; in ImplConvertUtf8ToUnicode()
303 sal_uInt32 nChar = *pSrcBufPtr++; in ImplConvertUnicodeToUtf8() local
306 if (ImplIsHighSurrogate(nChar) && !bJavaUtf8) in ImplConvertUnicodeToUtf8()
308 nHighSurrogate = (sal_Unicode) nChar; in ImplConvertUnicodeToUtf8()
312 else if (ImplIsLowSurrogate(nChar) && !bJavaUtf8) in ImplConvertUnicodeToUtf8()
313 nChar = ImplCombineSurrogates(nHighSurrogate, nChar); in ImplConvertUnicodeToUtf8()
317 if ((ImplIsLowSurrogate(nChar) && !bJavaUtf8) in ImplConvertUnicodeToUtf8()
318 || ImplIsNoncharacter(nChar)) in ImplConvertUnicodeToUtf8()
321 if (nChar <= 0x7F && (!bJavaUtf8 || nChar != 0)) in ImplConvertUnicodeToUtf8()
323 *pDestBufPtr++ = (sal_Char) nChar; in ImplConvertUnicodeToUtf8()
326 else if (nChar <= 0x7FF) in ImplConvertUnicodeToUtf8()
329 *pDestBufPtr++ = (sal_Char) (0xC0 | (nChar >> 6)); in ImplConvertUnicodeToUtf8()
330 *pDestBufPtr++ = (sal_Char) (0x80 | (nChar & 0x3F)); in ImplConvertUnicodeToUtf8()
334 else if (nChar <= 0xFFFF) in ImplConvertUnicodeToUtf8()
337 *pDestBufPtr++ = (sal_Char) (0xE0 | (nChar >> 12)); in ImplConvertUnicodeToUtf8()
338 *pDestBufPtr++ = (sal_Char) (0x80 | ((nChar >> 6) & 0x3F)); in ImplConvertUnicodeToUtf8()
339 *pDestBufPtr++ = (sal_Char) (0x80 | (nChar & 0x3F)); in ImplConvertUnicodeToUtf8()
345 *pDestBufPtr++ = (sal_Char) (0xF0 | (nChar >> 18)); in ImplConvertUnicodeToUtf8()
346 *pDestBufPtr++ = (sal_Char) (0x80 | ((nChar >> 12) & 0x3F)); in ImplConvertUnicodeToUtf8()
347 *pDestBufPtr++ = (sal_Char) (0x80 | ((nChar >> 6) & 0x3F)); in ImplConvertUnicodeToUtf8()
348 *pDestBufPtr++ = (sal_Char) (0x80 | (nChar & 0x3F)); in ImplConvertUnicodeToUtf8()