Home | History | Annotate | Download | only in common

Lines Matching defs:bytesToWrite

240     unsigned short bytesToWrite = 0;
274 if (ch < (UTF32)0x80) { bytesToWrite = 1;
275 } else if (ch < (UTF32)0x800) { bytesToWrite = 2;
276 } else if (ch < (UTF32)0x10000) { bytesToWrite = 3;
277 } else if (ch < (UTF32)0x110000) { bytesToWrite = 4;
278 } else { bytesToWrite = 3;
282 target += bytesToWrite;
285 target -= bytesToWrite; result = targetExhausted; break;
287 switch (bytesToWrite) { /* note: everything falls through. */
291 case 1: *--target = (UTF8)(ch | firstByteMark[bytesToWrite]);
293 target += bytesToWrite;
433 unsigned short bytesToWrite = 0;
449 if (ch < (UTF32)0x80) { bytesToWrite = 1;
450 } else if (ch < (UTF32)0x800) { bytesToWrite = 2;
451 } else if (ch < (UTF32)0x10000) { bytesToWrite = 3;
452 } else if (ch <= UNI_MAX_LEGAL_UTF32) { bytesToWrite = 4;
453 } else { bytesToWrite = 3;
458 target += bytesToWrite;
461 target -= bytesToWrite; result = targetExhausted; break;
463 switch (bytesToWrite) { /* note: everything falls through. */
467 case 1: *--target = (UTF8) (ch | firstByteMark[bytesToWrite]);
469 target += bytesToWrite;
551 In UTF-8 writing code, the switches on "bytesToWrite" are