Home
last modified time | relevance | path

Searched refs:bytesToWrite (Results 1 – 2 of 2) sorted by relevance

/freebsd-12.1/contrib/llvm/lib/Support/
H A DConvertUTF.cpp256 unsigned short bytesToWrite = 0; in ConvertUTF16toUTF8() local
290 if (ch < (UTF32)0x80) { bytesToWrite = 1; in ConvertUTF16toUTF8()
291 } else if (ch < (UTF32)0x800) { bytesToWrite = 2; in ConvertUTF16toUTF8()
292 } else if (ch < (UTF32)0x10000) { bytesToWrite = 3; in ConvertUTF16toUTF8()
293 } else if (ch < (UTF32)0x110000) { bytesToWrite = 4; in ConvertUTF16toUTF8()
298 target += bytesToWrite; in ConvertUTF16toUTF8()
309 target += bytesToWrite; in ConvertUTF16toUTF8()
326 unsigned short bytesToWrite = 0; in ConvertUTF32toUTF8() local
342 if (ch < (UTF32)0x80) { bytesToWrite = 1; in ConvertUTF32toUTF8()
351 target += bytesToWrite; in ConvertUTF32toUTF8()
[all …]
/freebsd-12.1/contrib/llvm/tools/clang/lib/Lex/
H A DLiteralSupport.cpp438 unsigned short bytesToWrite = 0; in EncodeUCNEscape() local
440 bytesToWrite = 1; in EncodeUCNEscape()
442 bytesToWrite = 2; in EncodeUCNEscape()
444 bytesToWrite = 3; in EncodeUCNEscape()
446 bytesToWrite = 4; in EncodeUCNEscape()
457 ResultBuf += bytesToWrite; in EncodeUCNEscape()
458 switch (bytesToWrite) { // note: everything falls through. in EncodeUCNEscape()
469 *--ResultBuf = (UTF8) (UcnVal | firstByteMark[bytesToWrite]); in EncodeUCNEscape()
472 ResultBuf += bytesToWrite; in EncodeUCNEscape()