Home | History | Annotate | Download | only in Support

Lines Matching full:bytestowrite

228         unsigned short bytesToWrite = 0;
262 if (ch < (UTF32)0x80) { bytesToWrite = 1;
263 } else if (ch < (UTF32)0x800) { bytesToWrite = 2;
264 } else if (ch < (UTF32)0x10000) { bytesToWrite = 3;
265 } else if (ch < (UTF32)0x110000) { bytesToWrite = 4;
266 } else { bytesToWrite = 3;
270 target += bytesToWrite;
273 target -= bytesToWrite; result = targetExhausted; break;
275 switch (bytesToWrite) { /* note: everything falls through. */
279 case 1: *--target = (UTF8)(ch | firstByteMark[bytesToWrite]);
281 target += bytesToWrite;
298 unsigned short bytesToWrite = 0;
314 if (ch < (UTF32)0x80) { bytesToWrite = 1;
315 } else if (ch < (UTF32)0x800) { bytesToWrite = 2;
316 } else if (ch < (UTF32)0x10000) { bytesToWrite = 3;
317 } else if (ch <= UNI_MAX_LEGAL_UTF32) { bytesToWrite = 4;
318 } else { bytesToWrite = 3;
323 target += bytesToWrite;
326 target -= bytesToWrite; result = targetExhausted; break;
328 switch (bytesToWrite) { /* note: everything falls through. */
332 case 1: *--target = (UTF8) (ch | firstByteMark[bytesToWrite]);
334 target += bytesToWrite;
568 In UTF-8 writing code, the switches on "bytesToWrite" are