Searched refs:bytesToWrite (Results 1 – 2 of 2) sorted by relevance
271 unsigned short bytesToWrite = 0; in ConvertUTF16toUTF8() local305 if (ch < (UTF32)0x80) { bytesToWrite = 1; in ConvertUTF16toUTF8()306 } else if (ch < (UTF32)0x800) { bytesToWrite = 2; in ConvertUTF16toUTF8()307 } else if (ch < (UTF32)0x10000) { bytesToWrite = 3; in ConvertUTF16toUTF8()308 } else if (ch < (UTF32)0x110000) { bytesToWrite = 4; in ConvertUTF16toUTF8()309 } else { bytesToWrite = 3; in ConvertUTF16toUTF8()313 target += bytesToWrite; in ConvertUTF16toUTF8()316 target -= bytesToWrite; result = targetExhausted; break; in ConvertUTF16toUTF8()318 switch (bytesToWrite) { /* note: everything falls through. */ in ConvertUTF16toUTF8()322 case 1: *--target = (UTF8)(ch | firstByteMark[bytesToWrite]); in ConvertUTF16toUTF8()[all …]
814 unsigned short bytesToWrite = 0; in EncodeUCNEscape() 816 bytesToWrite = 1; in EncodeUCNEscape() 818 bytesToWrite = 2; in EncodeUCNEscape() 820 bytesToWrite = 3; in EncodeUCNEscape() 822 bytesToWrite = 4; in EncodeUCNEscape() 833 ResultBuf += bytesToWrite; in EncodeUCNEscape() 834 switch (bytesToWrite) { // note: everything falls through. in EncodeUCNEscape() 845 *--ResultBuf = (UTF8) (UcnVal | firstByteMark[bytesToWrite]); in EncodeUCNEscape() 848 ResultBuf += bytesToWrite;812 unsigned short bytesToWrite = 0; EncodeUCNEscape() local