• Home
  • Raw
  • Download

Lines Matching refs:cnv

56 static UBool hasCESU8Data(const UConverter *cnv)  in hasCESU8Data()  argument
61 return (UBool)(cnv->sharedData == &_CESU8Data); in hasCESU8Data()
68 UConverter *cnv = args->converter; in ucnv_toUnicode_UTF8() local
73 unsigned char *toUBytes = cnv->toUBytes; in ucnv_toUnicode_UTF8()
74 UBool isCESU8 = hasCESU8Data(cnv); in ucnv_toUnicode_UTF8()
79 if (cnv->toULength > 0 && myTarget < targetLimit) in ucnv_toUnicode_UTF8()
81 inBytes = cnv->mode; /* restore # of bytes to consume */ in ucnv_toUnicode_UTF8()
82 i = cnv->toULength; /* restore # of bytes consumed */ in ucnv_toUnicode_UTF8()
83 cnv->toULength = 0; in ucnv_toUnicode_UTF8()
85 ch = cnv->toUnicodeStatus;/*Stores the previously calculated ch from a previous call*/ in ucnv_toUnicode_UTF8()
86 cnv->toUnicodeStatus = 0; in ucnv_toUnicode_UTF8()
123 cnv->toUnicodeStatus = ch; in ucnv_toUnicode_UTF8()
124 cnv->mode = inBytes; in ucnv_toUnicode_UTF8()
125 cnv->toULength = (int8_t) i; in ucnv_toUnicode_UTF8()
154 cnv->UCharErrorBuffer[0] = (UChar) ch; in ucnv_toUnicode_UTF8()
155 cnv->UCharErrorBufferLength = 1; in ucnv_toUnicode_UTF8()
163 cnv->toULength = (int8_t)i; in ucnv_toUnicode_UTF8()
184 UConverter *cnv = args->converter; in ucnv_toUnicode_UTF8_OFFSETS_LOGIC() local
191 unsigned char *toUBytes = cnv->toUBytes; in ucnv_toUnicode_UTF8_OFFSETS_LOGIC()
192 UBool isCESU8 = hasCESU8Data(cnv); in ucnv_toUnicode_UTF8_OFFSETS_LOGIC()
197 if (cnv->toULength > 0 && myTarget < targetLimit) in ucnv_toUnicode_UTF8_OFFSETS_LOGIC()
199 inBytes = cnv->mode; /* restore # of bytes to consume */ in ucnv_toUnicode_UTF8_OFFSETS_LOGIC()
200 i = cnv->toULength; /* restore # of bytes consumed */ in ucnv_toUnicode_UTF8_OFFSETS_LOGIC()
201 cnv->toULength = 0; in ucnv_toUnicode_UTF8_OFFSETS_LOGIC()
203 ch = cnv->toUnicodeStatus;/*Stores the previously calculated ch from a previous call*/ in ucnv_toUnicode_UTF8_OFFSETS_LOGIC()
204 cnv->toUnicodeStatus = 0; in ucnv_toUnicode_UTF8_OFFSETS_LOGIC()
239 cnv->toUnicodeStatus = ch; in ucnv_toUnicode_UTF8_OFFSETS_LOGIC()
240 cnv->mode = inBytes; in ucnv_toUnicode_UTF8_OFFSETS_LOGIC()
241 cnv->toULength = (int8_t)i; in ucnv_toUnicode_UTF8_OFFSETS_LOGIC()
272 cnv->UCharErrorBuffer[0] = (UChar) ch; in ucnv_toUnicode_UTF8_OFFSETS_LOGIC()
273 cnv->UCharErrorBufferLength = 1; in ucnv_toUnicode_UTF8_OFFSETS_LOGIC()
281 cnv->toULength = (int8_t)i; in ucnv_toUnicode_UTF8_OFFSETS_LOGIC()
303 UConverter *cnv = args->converter; in ucnv_fromUnicode_UTF8() local
312 UBool isNotCESU8 = !hasCESU8Data(cnv); in ucnv_fromUnicode_UTF8()
314 if (cnv->fromUChar32 && myTarget < targetLimit) in ucnv_fromUnicode_UTF8()
316 ch = cnv->fromUChar32; in ucnv_fromUnicode_UTF8()
317 cnv->fromUChar32 = 0; in ucnv_fromUnicode_UTF8()
338 cnv->charErrorBuffer[0] = (uint8_t) ((ch & 0x3f) | 0x80); in ucnv_fromUnicode_UTF8()
339 cnv->charErrorBufferLength = 1; in ucnv_fromUnicode_UTF8()
358 cnv->fromUChar32 = ch; in ucnv_fromUnicode_UTF8()
365 cnv->fromUChar32 = ch; in ucnv_fromUnicode_UTF8()
397 cnv->charErrorBuffer[cnv->charErrorBufferLength++] = *tempPtr; in ucnv_fromUnicode_UTF8()
417 UConverter *cnv = args->converter; in ucnv_fromUnicode_UTF8_OFFSETS_LOGIC() local
428 UBool isNotCESU8 = !hasCESU8Data(cnv); in ucnv_fromUnicode_UTF8_OFFSETS_LOGIC()
430 if (cnv->fromUChar32 && myTarget < targetLimit) in ucnv_fromUnicode_UTF8_OFFSETS_LOGIC()
432 ch = cnv->fromUChar32; in ucnv_fromUnicode_UTF8_OFFSETS_LOGIC()
433 cnv->fromUChar32 = 0; in ucnv_fromUnicode_UTF8_OFFSETS_LOGIC()
461 cnv->charErrorBuffer[0] = (uint8_t) ((ch & 0x3f) | 0x80); in ucnv_fromUnicode_UTF8_OFFSETS_LOGIC()
462 cnv->charErrorBufferLength = 1; in ucnv_fromUnicode_UTF8_OFFSETS_LOGIC()
485 cnv->fromUChar32 = ch; in ucnv_fromUnicode_UTF8_OFFSETS_LOGIC()
492 cnv->fromUChar32 = ch; in ucnv_fromUnicode_UTF8_OFFSETS_LOGIC()
534 cnv->charErrorBuffer[cnv->charErrorBufferLength++] = *tempPtr; in ucnv_fromUnicode_UTF8_OFFSETS_LOGIC()
556 UConverter *cnv; in ucnv_getNextUChar_UTF8() local
565 cnv = args->converter; in ucnv_getNextUChar_UTF8()
583 cnv->toUBytes[0] = myByte; in ucnv_getNextUChar_UTF8()
584 cnv->toULength = 1; in ucnv_getNextUChar_UTF8()
595 cnv->toUBytes[0] = myByte; in ucnv_getNextUChar_UTF8()
601 cnv->toUBytes[i++] = b; in ucnv_getNextUChar_UTF8()
609 cnv->toULength = i; in ucnv_getNextUChar_UTF8()
638 cnv->toUBytes[i] = *sourceInitial++; in ucnv_getNextUChar_UTF8()
640 cnv->toULength = i; in ucnv_getNextUChar_UTF8()