Lines Matching defs:target
57 UTF16* target = *targetStart;
60 if (target >= targetEnd) {
64 if (ch <= UNI_MAX_BMP) { /* Target is a character <= 0xFFFF */
72 *target++ = UNI_REPLACEMENT_CHAR;
75 *target++ = (UTF16)ch; /* normal case */
81 *target++ = UNI_REPLACEMENT_CHAR;
84 /* target is a character in range 0xFFFF - 0x10FFFF. */
85 if (target + 1 >= targetEnd) {
90 *target++ = (UTF16)((ch >> halfShift) + UNI_SUR_HIGH_START);
91 *target++ = (UTF16)((ch & halfMask) + UNI_SUR_LOW_START);
95 *targetStart = target;
106 UTF32* target = *targetStart;
109 const UTF16* oldSource = source; /* In case we have to back up because of target overflow. */
139 if (target >= targetEnd) {
143 *target++ = ch;
146 *targetStart = target;
210 UTF8* target = *targetStart;
216 const UTF16* oldSource = source; /* In case we have to back up because of target overflow. */
255 target += bytesToWrite;
256 if (target > targetEnd) {
258 target -= bytesToWrite; result = targetExhausted; break;
261 case 4: *--target = (UTF8)((ch | byteMark) & byteMask); ch >>= 6;
262 case 3: *--target = (UTF8)((ch | byteMark) & byteMask); ch >>= 6;
263 case 2: *--target = (UTF8)((ch | byteMark) & byteMask); ch >>= 6;
264 case 1: *--target = (UTF8)(ch | firstByteMark[bytesToWrite]);
266 target += bytesToWrite;
269 *targetStart = target;
334 UTF16* target = *targetStart;
359 if (target >= targetEnd) {
363 if (ch <= UNI_MAX_BMP) { /* Target is a character <= 0xFFFF */
371 *target++ = UNI_REPLACEMENT_CHAR;
374 *target++ = (UTF16)ch; /* normal case */
382 *target++ = UNI_REPLACEMENT_CHAR;
385 /* target is a character in range 0xFFFF - 0x10FFFF. */
386 if (target + 1 >= targetEnd) {
391 *target++ = (UTF16)((ch >> halfShift) + UNI_SUR_HIGH_START);
392 *target++ = (UTF16)((ch & halfMask) + UNI_SUR_LOW_START);
396 *targetStart = target;
407 UTF8* target = *targetStart;
435 target += bytesToWrite;
436 if (target > targetEnd) {
438 target -= bytesToWrite; result = targetExhausted; break;
441 case 4: *--target = (UTF8)((ch | byteMark) & byteMask); ch >>= 6;
442 case 3: *--target = (UTF8)((ch | byteMark) & byteMask); ch >>= 6;
443 case 2: *--target = (UTF8)((ch | byteMark) & byteMask); ch >>= 6;
444 case 1: *--target = (UTF8) (ch | firstByteMark[bytesToWrite]);
446 target += bytesToWrite;
449 *targetStart = target;
460 UTF32* target = *targetStart;
485 if (target >= targetEnd) {
500 *target++ = UNI_REPLACEMENT_CHAR;
503 *target++ = ch;
507 *target++ = UNI_REPLACEMENT_CHAR;
511 *targetStart = target;