Home
last modified time | relevance | path

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

/freebsd/contrib/llvm-project/llvm/lib/Support/
H A DConvertUTF.cpp271 unsigned short bytesToWrite = 0; in ConvertUTF16toUTF8() local
305 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 …]
/freebsd/contrib/llvm-project/clang/lib/Lex/
H A DLiteralSupport.cpp812 unsigned short bytesToWrite = 0; in EncodeUCNEscape() local
814 bytesToWrite = 1; in EncodeUCNEscape()
816 bytesToWrite = 2; in EncodeUCNEscape()
818 bytesToWrite = 3; in EncodeUCNEscape()
820 bytesToWrite = 4; in EncodeUCNEscape()
831 ResultBuf += bytesToWrite; in EncodeUCNEscape()
832 switch (bytesToWrite) { // note: everything falls through. in EncodeUCNEscape()
843 *--ResultBuf = (UTF8) (UcnVal | firstByteMark[bytesToWrite]); in EncodeUCNEscape()
846 ResultBuf += bytesToWrite; in EncodeUCNEscape()
/freebsd/contrib/expat/lib/
H A Dxmlparse.c801 const size_t bytesToWrite = count - bytesWrittenTotal; in writeRandomBytes_getrandom_nonblock() local
805 getrandom(currentTarget, bytesToWrite, getrandomFlags); in writeRandomBytes_getrandom_nonblock()
807 syscall(SYS_getrandom, currentTarget, bytesToWrite, getrandomFlags); in writeRandomBytes_getrandom_nonblock()
837 const size_t bytesToWrite = count - bytesWrittenTotal; in writeRandomBytes_dev_urandom() local
839 const ssize_t bytesWrittenMore = read(fd, currentTarget, bytesToWrite); in writeRandomBytes_dev_urandom()