Lines Matching refs:cnv
93 UConverter *cnv = args->converter; in ucnv_toUnicode_UTF8() local
98 unsigned char *toUBytes = cnv->toUBytes; in ucnv_toUnicode_UTF8()
99 UBool isCESU8 = (UBool)(cnv->sharedData == &_CESU8Data); in ucnv_toUnicode_UTF8()
104 if (cnv->toUnicodeStatus && myTarget < targetLimit) in ucnv_toUnicode_UTF8()
106 inBytes = cnv->mode; /* restore # of bytes to consume */ in ucnv_toUnicode_UTF8()
107 i = cnv->toULength; /* restore # of bytes consumed */ in ucnv_toUnicode_UTF8()
108 cnv->toULength = 0; in ucnv_toUnicode_UTF8()
110 ch = cnv->toUnicodeStatus;/*Stores the previously calculated ch from a previous call*/ in ucnv_toUnicode_UTF8()
111 cnv->toUnicodeStatus = 0; in ucnv_toUnicode_UTF8()
147 cnv->toUnicodeStatus = ch; in ucnv_toUnicode_UTF8()
148 cnv->mode = inBytes; in ucnv_toUnicode_UTF8()
149 cnv->toULength = (int8_t) i; in ucnv_toUnicode_UTF8()
191 cnv->UCharErrorBuffer[0] = (UChar) ch; in ucnv_toUnicode_UTF8()
192 cnv->UCharErrorBufferLength = 1; in ucnv_toUnicode_UTF8()
200 cnv->toULength = (int8_t)i; in ucnv_toUnicode_UTF8()
221 UConverter *cnv = args->converter; in ucnv_toUnicode_UTF8_OFFSETS_LOGIC() local
228 unsigned char *toUBytes = cnv->toUBytes; in ucnv_toUnicode_UTF8_OFFSETS_LOGIC()
229 UBool isCESU8 = (UBool)(cnv->sharedData == &_CESU8Data); in ucnv_toUnicode_UTF8_OFFSETS_LOGIC()
234 if (cnv->toUnicodeStatus && myTarget < targetLimit) in ucnv_toUnicode_UTF8_OFFSETS_LOGIC()
236 inBytes = cnv->mode; /* restore # of bytes to consume */ in ucnv_toUnicode_UTF8_OFFSETS_LOGIC()
237 i = cnv->toULength; /* restore # of bytes consumed */ in ucnv_toUnicode_UTF8_OFFSETS_LOGIC()
238 cnv->toULength = 0; in ucnv_toUnicode_UTF8_OFFSETS_LOGIC()
240 ch = cnv->toUnicodeStatus;/*Stores the previously calculated ch from a previous call*/ in ucnv_toUnicode_UTF8_OFFSETS_LOGIC()
241 cnv->toUnicodeStatus = 0; in ucnv_toUnicode_UTF8_OFFSETS_LOGIC()
275 cnv->toUnicodeStatus = ch; in ucnv_toUnicode_UTF8_OFFSETS_LOGIC()
276 cnv->mode = inBytes; in ucnv_toUnicode_UTF8_OFFSETS_LOGIC()
277 cnv->toULength = (int8_t)i; in ucnv_toUnicode_UTF8_OFFSETS_LOGIC()
321 cnv->UCharErrorBuffer[0] = (UChar) ch; in ucnv_toUnicode_UTF8_OFFSETS_LOGIC()
322 cnv->UCharErrorBufferLength = 1; in ucnv_toUnicode_UTF8_OFFSETS_LOGIC()
330 cnv->toULength = (int8_t)i; in ucnv_toUnicode_UTF8_OFFSETS_LOGIC()
351 UConverter *cnv = args->converter; in ucnv_fromUnicode_UTF8() local
360 UBool isNotCESU8 = (UBool)(cnv->sharedData != &_CESU8Data); in ucnv_fromUnicode_UTF8()
362 if (cnv->fromUChar32 && myTarget < targetLimit) in ucnv_fromUnicode_UTF8()
364 ch = cnv->fromUChar32; in ucnv_fromUnicode_UTF8()
365 cnv->fromUChar32 = 0; in ucnv_fromUnicode_UTF8()
386 cnv->charErrorBuffer[0] = (uint8_t) ((ch & 0x3f) | 0x80); in ucnv_fromUnicode_UTF8()
387 cnv->charErrorBufferLength = 1; in ucnv_fromUnicode_UTF8()
406 cnv->fromUChar32 = ch; in ucnv_fromUnicode_UTF8()
413 cnv->fromUChar32 = ch; in ucnv_fromUnicode_UTF8()
445 cnv->charErrorBuffer[cnv->charErrorBufferLength++] = *tempPtr; in ucnv_fromUnicode_UTF8()
465 UConverter *cnv = args->converter; in ucnv_fromUnicode_UTF8_OFFSETS_LOGIC() local
476 UBool isNotCESU8 = (UBool)(cnv->sharedData != &_CESU8Data); in ucnv_fromUnicode_UTF8_OFFSETS_LOGIC()
478 if (cnv->fromUChar32 && myTarget < targetLimit) in ucnv_fromUnicode_UTF8_OFFSETS_LOGIC()
480 ch = cnv->fromUChar32; in ucnv_fromUnicode_UTF8_OFFSETS_LOGIC()
481 cnv->fromUChar32 = 0; in ucnv_fromUnicode_UTF8_OFFSETS_LOGIC()
509 cnv->charErrorBuffer[0] = (uint8_t) ((ch & 0x3f) | 0x80); in ucnv_fromUnicode_UTF8_OFFSETS_LOGIC()
510 cnv->charErrorBufferLength = 1; in ucnv_fromUnicode_UTF8_OFFSETS_LOGIC()
533 cnv->fromUChar32 = ch; in ucnv_fromUnicode_UTF8_OFFSETS_LOGIC()
540 cnv->fromUChar32 = ch; in ucnv_fromUnicode_UTF8_OFFSETS_LOGIC()
582 cnv->charErrorBuffer[cnv->charErrorBufferLength++] = *tempPtr; in ucnv_fromUnicode_UTF8_OFFSETS_LOGIC()
603 UConverter *cnv; in ucnv_getNextUChar_UTF8() local
613 cnv = args->converter; in ucnv_getNextUChar_UTF8()
631 cnv->toUBytes[0] = myByte; in ucnv_getNextUChar_UTF8()
632 cnv->toULength = 1; in ucnv_getNextUChar_UTF8()
642 cnv->toUBytes[0] = myByte; in ucnv_getNextUChar_UTF8()
647 cnv->toUBytes[i++] = myByte; in ucnv_getNextUChar_UTF8()
655 cnv->toULength = i; in ucnv_getNextUChar_UTF8()
733 cnv->toUBytes[i] = *sourceInitial++; in ucnv_getNextUChar_UTF8()
735 cnv->toULength = i; in ucnv_getNextUChar_UTF8()