Lines Matching refs:bytesToWrite
229 unsigned short bytesToWrite = 0;
263 if (ch < (UTF32)0x80) { bytesToWrite = 1;
264 } else if (ch < (UTF32)0x800) { bytesToWrite = 2;
265 } else if (ch < (UTF32)0x10000) { bytesToWrite = 3;
266 } else if (ch < (UTF32)0x110000) { bytesToWrite = 4;
267 } else { bytesToWrite = 3;
271 target += bytesToWrite;
274 target -= bytesToWrite; result = targetExhausted; break;
276 switch (bytesToWrite) { /* note: everything falls through. */
280 case 1: *--target = (UTF8)(ch | firstByteMark[bytesToWrite]);
282 target += bytesToWrite;
299 unsigned short bytesToWrite = 0;
315 if (ch < (UTF32)0x80) { bytesToWrite = 1;
316 } else if (ch < (UTF32)0x800) { bytesToWrite = 2;
317 } else if (ch < (UTF32)0x10000) { bytesToWrite = 3;
318 } else if (ch <= UNI_MAX_LEGAL_UTF32) { bytesToWrite = 4;
319 } else { bytesToWrite = 3;
324 target += bytesToWrite;
327 target -= bytesToWrite; result = targetExhausted; break;
329 switch (bytesToWrite) { /* note: everything falls through. */
333 case 1: *--target = (UTF8) (ch | firstByteMark[bytesToWrite]);
335 target += bytesToWrite;
705 In UTF-8 writing code, the switches on "bytesToWrite" are