Lines Matching refs:target
57 UTF16* target = *targetStart; in ConvertUTF32toUTF16() local
60 if (target >= targetEnd) { in ConvertUTF32toUTF16()
72 *target++ = UNI_REPLACEMENT_CHAR; in ConvertUTF32toUTF16()
75 *target++ = (UTF16)ch; /* normal case */ in ConvertUTF32toUTF16()
81 *target++ = UNI_REPLACEMENT_CHAR; in ConvertUTF32toUTF16()
85 if (target + 1 >= targetEnd) { in ConvertUTF32toUTF16()
90 *target++ = (UTF16)((ch >> halfShift) + UNI_SUR_HIGH_START); in ConvertUTF32toUTF16()
91 *target++ = (UTF16)((ch & halfMask) + UNI_SUR_LOW_START); in ConvertUTF32toUTF16()
95 *targetStart = target; in ConvertUTF32toUTF16()
106 UTF32* target = *targetStart; in ConvertUTF16toUTF32() local
139 if (target >= targetEnd) { in ConvertUTF16toUTF32()
143 *target++ = ch; in ConvertUTF16toUTF32()
146 *targetStart = target; in ConvertUTF16toUTF32()
210 UTF8* target = *targetStart; in ConvertUTF16toUTF8() local
255 target += bytesToWrite; in ConvertUTF16toUTF8()
256 if (target > targetEnd) { in ConvertUTF16toUTF8()
258 target -= bytesToWrite; result = targetExhausted; break; in ConvertUTF16toUTF8()
261 case 4: *--target = (UTF8)((ch | byteMark) & byteMask); ch >>= 6; in ConvertUTF16toUTF8()
262 case 3: *--target = (UTF8)((ch | byteMark) & byteMask); ch >>= 6; in ConvertUTF16toUTF8()
263 case 2: *--target = (UTF8)((ch | byteMark) & byteMask); ch >>= 6; in ConvertUTF16toUTF8()
264 case 1: *--target = (UTF8)(ch | firstByteMark[bytesToWrite]); in ConvertUTF16toUTF8()
266 target += bytesToWrite; in ConvertUTF16toUTF8()
269 *targetStart = target; in ConvertUTF16toUTF8()
334 UTF16* target = *targetStart; in ConvertUTF8toUTF16() local
359 if (target >= targetEnd) { in ConvertUTF8toUTF16()
371 *target++ = UNI_REPLACEMENT_CHAR; in ConvertUTF8toUTF16()
374 *target++ = (UTF16)ch; /* normal case */ in ConvertUTF8toUTF16()
382 *target++ = UNI_REPLACEMENT_CHAR; in ConvertUTF8toUTF16()
386 if (target + 1 >= targetEnd) { in ConvertUTF8toUTF16()
391 *target++ = (UTF16)((ch >> halfShift) + UNI_SUR_HIGH_START); in ConvertUTF8toUTF16()
392 *target++ = (UTF16)((ch & halfMask) + UNI_SUR_LOW_START); in ConvertUTF8toUTF16()
396 *targetStart = target; in ConvertUTF8toUTF16()
407 UTF8* target = *targetStart; in ConvertUTF32toUTF8() local
435 target += bytesToWrite; in ConvertUTF32toUTF8()
436 if (target > targetEnd) { in ConvertUTF32toUTF8()
438 target -= bytesToWrite; result = targetExhausted; break; in ConvertUTF32toUTF8()
441 case 4: *--target = (UTF8)((ch | byteMark) & byteMask); ch >>= 6; in ConvertUTF32toUTF8()
442 case 3: *--target = (UTF8)((ch | byteMark) & byteMask); ch >>= 6; in ConvertUTF32toUTF8()
443 case 2: *--target = (UTF8)((ch | byteMark) & byteMask); ch >>= 6; in ConvertUTF32toUTF8()
444 case 1: *--target = (UTF8) (ch | firstByteMark[bytesToWrite]); in ConvertUTF32toUTF8()
446 target += bytesToWrite; in ConvertUTF32toUTF8()
449 *targetStart = target; in ConvertUTF32toUTF8()
460 UTF32* target = *targetStart; in ConvertUTF8toUTF32() local
485 if (target >= targetEnd) { in ConvertUTF8toUTF32()
500 *target++ = UNI_REPLACEMENT_CHAR; in ConvertUTF8toUTF32()
503 *target++ = ch; in ConvertUTF8toUTF32()
507 *target++ = UNI_REPLACEMENT_CHAR; in ConvertUTF8toUTF32()
511 *targetStart = target; in ConvertUTF8toUTF32()