Lines Matching full:bytestowrite
213 unsigned short bytesToWrite = 0;
247 if (ch < (UTF32)0x80) { bytesToWrite = 1;
248 } else if (ch < (UTF32)0x800) { bytesToWrite = 2;
249 } else if (ch < (UTF32)0x10000) { bytesToWrite = 3;
250 } else if (ch < (UTF32)0x110000) { bytesToWrite = 4;
251 } else { bytesToWrite = 3;
255 target += bytesToWrite;
258 target -= bytesToWrite; result = targetExhausted; break;
260 switch (bytesToWrite) { /* note: everything falls through. */
264 case 1: *--target = (UTF8)(ch | firstByteMark[bytesToWrite]);
266 target += bytesToWrite;
410 unsigned short bytesToWrite = 0;
426 if (ch < (UTF32)0x80) { bytesToWrite = 1;
427 } else if (ch < (UTF32)0x800) { bytesToWrite = 2;
428 } else if (ch < (UTF32)0x10000) { bytesToWrite = 3;
429 } else if (ch <= UNI_MAX_LEGAL_UTF32) { bytesToWrite = 4;
430 } else { bytesToWrite = 3;
435 target += bytesToWrite;
438 target -= bytesToWrite; result = targetExhausted; break;
440 switch (bytesToWrite) { /* note: everything falls through. */
444 case 1: *--target = (UTF8) (ch | firstByteMark[bytesToWrite]);
446 target += bytesToWrite;
529 In UTF-8 writing code, the switches on "bytesToWrite" are