Home
last modified time | relevance | path

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

/NextBSD/contrib/llvm/lib/Support/
HDConvertUTF.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()
267 } else { bytesToWrite = 3; in ConvertUTF16toUTF8()
271 target += bytesToWrite; in ConvertUTF16toUTF8()
274 target -= bytesToWrite; result = targetExhausted; break; in ConvertUTF16toUTF8()
276 switch (bytesToWrite) { /* note: everything falls through. */ in ConvertUTF16toUTF8()
280 case 1: *--target = (UTF8)(ch | firstByteMark[bytesToWrite]); in ConvertUTF16toUTF8()
[all …]
/NextBSD/contrib/llvm/tools/clang/lib/Lex/
HDLiteralSupport.cpp425 unsigned short bytesToWrite = 0; in EncodeUCNEscape() local
427 bytesToWrite = 1; in EncodeUCNEscape()
429 bytesToWrite = 2; in EncodeUCNEscape()
431 bytesToWrite = 3; in EncodeUCNEscape()
433 bytesToWrite = 4; in EncodeUCNEscape()
444 ResultBuf += bytesToWrite; in EncodeUCNEscape()
445 switch (bytesToWrite) { // note: everything falls through. in EncodeUCNEscape()
449 case 1: *--ResultBuf = (UTF8) (UcnVal | firstByteMark[bytesToWrite]); in EncodeUCNEscape()
452 ResultBuf += bytesToWrite; in EncodeUCNEscape()