• Home
  • Raw
  • Download

Lines Matching refs:cnv

90 static UBool hasCESU8Data(const UConverter *cnv)  in hasCESU8Data()  argument
95 return (UBool)(cnv->sharedData == &_CESU8Data); in hasCESU8Data()
102 UConverter *cnv = args->converter; in ucnv_toUnicode_UTF8() local
107 unsigned char *toUBytes = cnv->toUBytes; in ucnv_toUnicode_UTF8()
108 UBool isCESU8 = hasCESU8Data(cnv); in ucnv_toUnicode_UTF8()
113 if (cnv->toUnicodeStatus && myTarget < targetLimit) in ucnv_toUnicode_UTF8()
115 inBytes = cnv->mode; /* restore # of bytes to consume */ in ucnv_toUnicode_UTF8()
116 i = cnv->toULength; /* restore # of bytes consumed */ in ucnv_toUnicode_UTF8()
117 cnv->toULength = 0; in ucnv_toUnicode_UTF8()
119 ch = cnv->toUnicodeStatus;/*Stores the previously calculated ch from a previous call*/ in ucnv_toUnicode_UTF8()
120 cnv->toUnicodeStatus = 0; in ucnv_toUnicode_UTF8()
156 cnv->toUnicodeStatus = ch; in ucnv_toUnicode_UTF8()
157 cnv->mode = inBytes; in ucnv_toUnicode_UTF8()
158 cnv->toULength = (int8_t) i; in ucnv_toUnicode_UTF8()
200 cnv->UCharErrorBuffer[0] = (UChar) ch; in ucnv_toUnicode_UTF8()
201 cnv->UCharErrorBufferLength = 1; in ucnv_toUnicode_UTF8()
209 cnv->toULength = (int8_t)i; in ucnv_toUnicode_UTF8()
230 UConverter *cnv = args->converter; in ucnv_toUnicode_UTF8_OFFSETS_LOGIC() local
237 unsigned char *toUBytes = cnv->toUBytes; in ucnv_toUnicode_UTF8_OFFSETS_LOGIC()
238 UBool isCESU8 = hasCESU8Data(cnv); in ucnv_toUnicode_UTF8_OFFSETS_LOGIC()
243 if (cnv->toUnicodeStatus && myTarget < targetLimit) in ucnv_toUnicode_UTF8_OFFSETS_LOGIC()
245 inBytes = cnv->mode; /* restore # of bytes to consume */ in ucnv_toUnicode_UTF8_OFFSETS_LOGIC()
246 i = cnv->toULength; /* restore # of bytes consumed */ in ucnv_toUnicode_UTF8_OFFSETS_LOGIC()
247 cnv->toULength = 0; in ucnv_toUnicode_UTF8_OFFSETS_LOGIC()
249 ch = cnv->toUnicodeStatus;/*Stores the previously calculated ch from a previous call*/ in ucnv_toUnicode_UTF8_OFFSETS_LOGIC()
250 cnv->toUnicodeStatus = 0; in ucnv_toUnicode_UTF8_OFFSETS_LOGIC()
284 cnv->toUnicodeStatus = ch; in ucnv_toUnicode_UTF8_OFFSETS_LOGIC()
285 cnv->mode = inBytes; in ucnv_toUnicode_UTF8_OFFSETS_LOGIC()
286 cnv->toULength = (int8_t)i; in ucnv_toUnicode_UTF8_OFFSETS_LOGIC()
330 cnv->UCharErrorBuffer[0] = (UChar) ch; in ucnv_toUnicode_UTF8_OFFSETS_LOGIC()
331 cnv->UCharErrorBufferLength = 1; in ucnv_toUnicode_UTF8_OFFSETS_LOGIC()
339 cnv->toULength = (int8_t)i; in ucnv_toUnicode_UTF8_OFFSETS_LOGIC()
360 UConverter *cnv = args->converter; in ucnv_fromUnicode_UTF8() local
369 UBool isNotCESU8 = !hasCESU8Data(cnv); in ucnv_fromUnicode_UTF8()
371 if (cnv->fromUChar32 && myTarget < targetLimit) in ucnv_fromUnicode_UTF8()
373 ch = cnv->fromUChar32; in ucnv_fromUnicode_UTF8()
374 cnv->fromUChar32 = 0; in ucnv_fromUnicode_UTF8()
395 cnv->charErrorBuffer[0] = (uint8_t) ((ch & 0x3f) | 0x80); in ucnv_fromUnicode_UTF8()
396 cnv->charErrorBufferLength = 1; in ucnv_fromUnicode_UTF8()
415 cnv->fromUChar32 = ch; in ucnv_fromUnicode_UTF8()
422 cnv->fromUChar32 = ch; in ucnv_fromUnicode_UTF8()
454 cnv->charErrorBuffer[cnv->charErrorBufferLength++] = *tempPtr; in ucnv_fromUnicode_UTF8()
474 UConverter *cnv = args->converter; in ucnv_fromUnicode_UTF8_OFFSETS_LOGIC() local
485 UBool isNotCESU8 = !hasCESU8Data(cnv); in ucnv_fromUnicode_UTF8_OFFSETS_LOGIC()
487 if (cnv->fromUChar32 && myTarget < targetLimit) in ucnv_fromUnicode_UTF8_OFFSETS_LOGIC()
489 ch = cnv->fromUChar32; in ucnv_fromUnicode_UTF8_OFFSETS_LOGIC()
490 cnv->fromUChar32 = 0; in ucnv_fromUnicode_UTF8_OFFSETS_LOGIC()
518 cnv->charErrorBuffer[0] = (uint8_t) ((ch & 0x3f) | 0x80); in ucnv_fromUnicode_UTF8_OFFSETS_LOGIC()
519 cnv->charErrorBufferLength = 1; in ucnv_fromUnicode_UTF8_OFFSETS_LOGIC()
542 cnv->fromUChar32 = ch; in ucnv_fromUnicode_UTF8_OFFSETS_LOGIC()
549 cnv->fromUChar32 = ch; in ucnv_fromUnicode_UTF8_OFFSETS_LOGIC()
591 cnv->charErrorBuffer[cnv->charErrorBufferLength++] = *tempPtr; in ucnv_fromUnicode_UTF8_OFFSETS_LOGIC()
612 UConverter *cnv; in ucnv_getNextUChar_UTF8() local
622 cnv = args->converter; in ucnv_getNextUChar_UTF8()
640 cnv->toUBytes[0] = myByte; in ucnv_getNextUChar_UTF8()
641 cnv->toULength = 1; in ucnv_getNextUChar_UTF8()
651 cnv->toUBytes[0] = myByte; in ucnv_getNextUChar_UTF8()
656 cnv->toUBytes[i++] = myByte; in ucnv_getNextUChar_UTF8()
664 cnv->toULength = i; in ucnv_getNextUChar_UTF8()
742 cnv->toUBytes[i] = *sourceInitial++; in ucnv_getNextUChar_UTF8()
744 cnv->toULength = i; in ucnv_getNextUChar_UTF8()