Lines Matching refs:target
165 UTF16* target = *targetStart; in ConvertUTF32toUTF16() local
168 if (target >= targetEnd) { in ConvertUTF32toUTF16()
180 *target++ = UNI_REPLACEMENT_CHAR; in ConvertUTF32toUTF16()
183 *target++ = (UTF16)ch; /* normal case */ in ConvertUTF32toUTF16()
189 *target++ = UNI_REPLACEMENT_CHAR; in ConvertUTF32toUTF16()
193 if (target + 1 >= targetEnd) { in ConvertUTF32toUTF16()
198 *target++ = (UTF16)((ch >> halfShift) + UNI_SUR_HIGH_START); in ConvertUTF32toUTF16()
199 *target++ = (UTF16)((ch & halfMask) + UNI_SUR_LOW_START); in ConvertUTF32toUTF16()
203 *targetStart = target; in ConvertUTF32toUTF16()
214 UTF32* target = *targetStart; in ConvertUTF16toUTF32() local
247 if (target >= targetEnd) { in ConvertUTF16toUTF32()
251 *target++ = ch; in ConvertUTF16toUTF32()
254 *targetStart = target; in ConvertUTF16toUTF32()
268 UTF8* target = *targetStart; in ConvertUTF16toUTF8() local
313 target += bytesToWrite; in ConvertUTF16toUTF8()
314 if (target > targetEnd) { in ConvertUTF16toUTF8()
316 target -= bytesToWrite; result = targetExhausted; break; in ConvertUTF16toUTF8()
319 case 4: *--target = (UTF8)((ch | byteMark) & byteMask); ch >>= 6; in ConvertUTF16toUTF8()
320 case 3: *--target = (UTF8)((ch | byteMark) & byteMask); ch >>= 6; in ConvertUTF16toUTF8()
321 case 2: *--target = (UTF8)((ch | byteMark) & byteMask); ch >>= 6; in ConvertUTF16toUTF8()
322 case 1: *--target = (UTF8)(ch | firstByteMark[bytesToWrite]); in ConvertUTF16toUTF8()
324 target += bytesToWrite; in ConvertUTF16toUTF8()
327 *targetStart = target; in ConvertUTF16toUTF8()
338 UTF8* target = *targetStart; in ConvertUTF32toUTF8() local
366 target += bytesToWrite; in ConvertUTF32toUTF8()
367 if (target > targetEnd) { in ConvertUTF32toUTF8()
369 target -= bytesToWrite; result = targetExhausted; break; in ConvertUTF32toUTF8()
372 case 4: *--target = (UTF8)((ch | byteMark) & byteMask); ch >>= 6; in ConvertUTF32toUTF8()
373 case 3: *--target = (UTF8)((ch | byteMark) & byteMask); ch >>= 6; in ConvertUTF32toUTF8()
374 case 2: *--target = (UTF8)((ch | byteMark) & byteMask); ch >>= 6; in ConvertUTF32toUTF8()
375 case 1: *--target = (UTF8) (ch | firstByteMark[bytesToWrite]); in ConvertUTF32toUTF8()
377 target += bytesToWrite; in ConvertUTF32toUTF8()
380 *targetStart = target; in ConvertUTF32toUTF8()
572 UTF16* target = *targetStart; in ConvertUTF8toUTF16() local
597 if (target >= targetEnd) { in ConvertUTF8toUTF16()
609 *target++ = UNI_REPLACEMENT_CHAR; in ConvertUTF8toUTF16()
612 *target++ = (UTF16)ch; /* normal case */ in ConvertUTF8toUTF16()
620 *target++ = UNI_REPLACEMENT_CHAR; in ConvertUTF8toUTF16()
624 if (target + 1 >= targetEnd) { in ConvertUTF8toUTF16()
629 *target++ = (UTF16)((ch >> halfShift) + UNI_SUR_HIGH_START); in ConvertUTF8toUTF16()
630 *target++ = (UTF16)((ch & halfMask) + UNI_SUR_LOW_START); in ConvertUTF8toUTF16()
634 *targetStart = target; in ConvertUTF8toUTF16()
646 UTF32* target = *targetStart; in ConvertUTF8toUTF32Impl() local
663 *target++ = UNI_REPLACEMENT_CHAR; in ConvertUTF8toUTF32Impl()
667 if (target >= targetEnd) { in ConvertUTF8toUTF32Impl()
684 *target++ = UNI_REPLACEMENT_CHAR; in ConvertUTF8toUTF32Impl()
712 *target++ = UNI_REPLACEMENT_CHAR; in ConvertUTF8toUTF32Impl()
715 *target++ = ch; in ConvertUTF8toUTF32Impl()
719 *target++ = UNI_REPLACEMENT_CHAR; in ConvertUTF8toUTF32Impl()
723 *targetStart = target; in ConvertUTF8toUTF32Impl()