Home
last modified time | relevance | path

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

/minix/external/bsd/llvm/dist/llvm/lib/Support/
H A DConvertUTF.c229 unsigned short bytesToWrite = 0; in ConvertUTF16toUTF8() local
263 if (ch < (UTF32)0x80) { bytesToWrite = 1; in ConvertUTF16toUTF8()
264 } else if (ch < (UTF32)0x800) { bytesToWrite = 2; in ConvertUTF16toUTF8()
265 } else if (ch < (UTF32)0x10000) { bytesToWrite = 3; in ConvertUTF16toUTF8()
266 } else if (ch < (UTF32)0x110000) { bytesToWrite = 4; in ConvertUTF16toUTF8()
271 target += bytesToWrite; in ConvertUTF16toUTF8()
282 target += bytesToWrite; in ConvertUTF16toUTF8()
299 unsigned short bytesToWrite = 0; in ConvertUTF32toUTF8() local
315 if (ch < (UTF32)0x80) { bytesToWrite = 1; in ConvertUTF32toUTF8()
324 target += bytesToWrite; in ConvertUTF32toUTF8()
[all …]
/minix/external/bsd/llvm/dist/clang/lib/Lex/
H A DLiteralSupport.cpp424 unsigned short bytesToWrite = 0; in EncodeUCNEscape() local
426 bytesToWrite = 1; in EncodeUCNEscape()
428 bytesToWrite = 2; in EncodeUCNEscape()
430 bytesToWrite = 3; in EncodeUCNEscape()
432 bytesToWrite = 4; in EncodeUCNEscape()
443 ResultBuf += bytesToWrite; in EncodeUCNEscape()
444 switch (bytesToWrite) { // note: everything falls through. in EncodeUCNEscape()
448 case 1: *--ResultBuf = (UTF8) (UcnVal | firstByteMark[bytesToWrite]); in EncodeUCNEscape()
451 ResultBuf += bytesToWrite; in EncodeUCNEscape()