• Home
  • Raw
  • Download

Lines Matching refs:bytesToWrite

213 	unsigned short bytesToWrite = 0;  in ConvertUTF16toUTF8()  local
247 if (ch < (UTF32)0x80) { bytesToWrite = 1; in ConvertUTF16toUTF8()
248 } else if (ch < (UTF32)0x800) { bytesToWrite = 2; in ConvertUTF16toUTF8()
249 } else if (ch < (UTF32)0x10000) { bytesToWrite = 3; in ConvertUTF16toUTF8()
250 } else if (ch < (UTF32)0x110000) { bytesToWrite = 4; in ConvertUTF16toUTF8()
251 } else { bytesToWrite = 3; in ConvertUTF16toUTF8()
255 target += bytesToWrite; in ConvertUTF16toUTF8()
258 target -= bytesToWrite; result = targetExhausted; break; in ConvertUTF16toUTF8()
260 switch (bytesToWrite) { /* note: everything falls through. */ in ConvertUTF16toUTF8()
264 case 1: *--target = (UTF8)(ch | firstByteMark[bytesToWrite]); in ConvertUTF16toUTF8()
266 target += bytesToWrite; in ConvertUTF16toUTF8()
410 unsigned short bytesToWrite = 0; in ConvertUTF32toUTF8() local
426 if (ch < (UTF32)0x80) { bytesToWrite = 1; in ConvertUTF32toUTF8()
427 } else if (ch < (UTF32)0x800) { bytesToWrite = 2; in ConvertUTF32toUTF8()
428 } else if (ch < (UTF32)0x10000) { bytesToWrite = 3; in ConvertUTF32toUTF8()
429 } else if (ch <= UNI_MAX_LEGAL_UTF32) { bytesToWrite = 4; in ConvertUTF32toUTF8()
430 } else { bytesToWrite = 3; in ConvertUTF32toUTF8()
435 target += bytesToWrite; in ConvertUTF32toUTF8()
438 target -= bytesToWrite; result = targetExhausted; break; in ConvertUTF32toUTF8()
440 switch (bytesToWrite) { /* note: everything falls through. */ in ConvertUTF32toUTF8()
444 case 1: *--target = (UTF8) (ch | firstByteMark[bytesToWrite]); in ConvertUTF32toUTF8()
446 target += bytesToWrite; in ConvertUTF32toUTF8()