Lines Matching refs:cnv
156 _SCSUReset(UConverter *cnv, UConverterResetChoice choice) { in _SCSUReset() argument
157 SCSUData *scsu=(SCSUData *)cnv->extraInfo; in _SCSUReset()
168 cnv->toULength=0; in _SCSUReset()
187 cnv->fromUChar32=0; in _SCSUReset()
192 _SCSUOpen(UConverter *cnv, in _SCSUOpen() argument
199 cnv->extraInfo=uprv_malloc(sizeof(SCSUData)); in _SCSUOpen()
200 if(cnv->extraInfo!=NULL) { in _SCSUOpen()
202 ((SCSUData *)cnv->extraInfo)->locale=l_ja; in _SCSUOpen()
204 ((SCSUData *)cnv->extraInfo)->locale=lGeneric; in _SCSUOpen()
206 _SCSUReset(cnv, UCNV_RESET_BOTH); in _SCSUOpen()
212 cnv->subUChars[0]=0xfffd; in _SCSUOpen()
213 cnv->subCharLen=-1; in _SCSUOpen()
217 _SCSUClose(UConverter *cnv) { in _SCSUClose() argument
218 if(cnv->extraInfo!=NULL) { in _SCSUClose()
219 if(!cnv->isExtraLocal) { in _SCSUClose()
220 uprv_free(cnv->extraInfo); in _SCSUClose()
222 cnv->extraInfo=NULL; in _SCSUClose()
231 UConverter *cnv; in _SCSUToUnicodeWithOffsets() local
246 cnv=pArgs->converter; in _SCSUToUnicodeWithOffsets()
247 scsu=(SCSUData *)cnv->extraInfo; in _SCSUToUnicodeWithOffsets()
320 cnv->UCharErrorBuffer[0]=(UChar)(0xdc00|(c&0x3ff)); in _SCSUToUnicodeWithOffsets()
321 cnv->UCharErrorBufferLength=1; in _SCSUToUnicodeWithOffsets()
376 cnv->toUBytes[0]=b; in _SCSUToUnicodeWithOffsets()
377 cnv->toULength=1; in _SCSUToUnicodeWithOffsets()
382 cnv->toUBytes[0]=b; in _SCSUToUnicodeWithOffsets()
383 cnv->toULength=1; in _SCSUToUnicodeWithOffsets()
387 cnv->toUBytes[1]=b; in _SCSUToUnicodeWithOffsets()
388 cnv->toULength=2; in _SCSUToUnicodeWithOffsets()
428 cnv->UCharErrorBuffer[0]=(UChar)(0xdc00|(c&0x3ff)); in _SCSUToUnicodeWithOffsets()
429 cnv->UCharErrorBufferLength=1; in _SCSUToUnicodeWithOffsets()
441 cnv->toUBytes[1]=b; in _SCSUToUnicodeWithOffsets()
442 cnv->toULength=2; in _SCSUToUnicodeWithOffsets()
453 cnv->toUBytes[1]=b; in _SCSUToUnicodeWithOffsets()
454 cnv->toULength=2; in _SCSUToUnicodeWithOffsets()
464 cnv->toUBytes[1]=b; in _SCSUToUnicodeWithOffsets()
465 cnv->toULength=2; in _SCSUToUnicodeWithOffsets()
502 cnv->toUBytes[0]=b; in _SCSUToUnicodeWithOffsets()
503 cnv->toULength=1; in _SCSUToUnicodeWithOffsets()
513 cnv->toUBytes[0]=b; in _SCSUToUnicodeWithOffsets()
514 cnv->toULength=1; in _SCSUToUnicodeWithOffsets()
519 cnv->toUBytes[0]=b; in _SCSUToUnicodeWithOffsets()
520 cnv->toULength=1; in _SCSUToUnicodeWithOffsets()
524 cnv->toUBytes[0]=b; in _SCSUToUnicodeWithOffsets()
525 cnv->toULength=1; in _SCSUToUnicodeWithOffsets()
530 cnv->toUBytes[0]=b; in _SCSUToUnicodeWithOffsets()
531 cnv->toULength=1; in _SCSUToUnicodeWithOffsets()
537 cnv->toUBytes[1]=b; in _SCSUToUnicodeWithOffsets()
538 cnv->toULength=2; in _SCSUToUnicodeWithOffsets()
560 cnv->toULength=0; in _SCSUToUnicodeWithOffsets()
585 UConverter *cnv; in _SCSUToUnicode() local
597 cnv=pArgs->converter; in _SCSUToUnicode()
598 scsu=(SCSUData *)cnv->extraInfo; in _SCSUToUnicode()
652 cnv->UCharErrorBuffer[0]=(UChar)(0xdc00|(c&0x3ff)); in _SCSUToUnicode()
653 cnv->UCharErrorBufferLength=1; in _SCSUToUnicode()
700 cnv->toUBytes[0]=b; in _SCSUToUnicode()
701 cnv->toULength=1; in _SCSUToUnicode()
706 cnv->toUBytes[0]=b; in _SCSUToUnicode()
707 cnv->toULength=1; in _SCSUToUnicode()
711 cnv->toUBytes[1]=b; in _SCSUToUnicode()
712 cnv->toULength=2; in _SCSUToUnicode()
735 cnv->UCharErrorBuffer[0]=(UChar)(0xdc00|(c&0x3ff)); in _SCSUToUnicode()
736 cnv->UCharErrorBufferLength=1; in _SCSUToUnicode()
747 cnv->toUBytes[1]=b; in _SCSUToUnicode()
748 cnv->toULength=2; in _SCSUToUnicode()
758 cnv->toUBytes[1]=b; in _SCSUToUnicode()
759 cnv->toULength=2; in _SCSUToUnicode()
769 cnv->toUBytes[1]=b; in _SCSUToUnicode()
770 cnv->toULength=2; in _SCSUToUnicode()
800 cnv->toUBytes[0]=b; in _SCSUToUnicode()
801 cnv->toULength=1; in _SCSUToUnicode()
810 cnv->toUBytes[0]=b; in _SCSUToUnicode()
811 cnv->toULength=1; in _SCSUToUnicode()
816 cnv->toUBytes[0]=b; in _SCSUToUnicode()
817 cnv->toULength=1; in _SCSUToUnicode()
821 cnv->toUBytes[0]=b; in _SCSUToUnicode()
822 cnv->toULength=1; in _SCSUToUnicode()
827 cnv->toUBytes[0]=b; in _SCSUToUnicode()
828 cnv->toULength=1; in _SCSUToUnicode()
834 cnv->toUBytes[1]=b; in _SCSUToUnicode()
835 cnv->toULength=2; in _SCSUToUnicode()
853 cnv->toULength=0; in _SCSUToUnicode()
1010 UConverter *cnv; in _SCSUFromUnicodeWithOffsets() local
1034 cnv=pArgs->converter; in _SCSUFromUnicodeWithOffsets()
1035 scsu=(SCSUData *)cnv->extraInfo; in _SCSUFromUnicodeWithOffsets()
1049 c=cnv->fromUChar32; in _SCSUFromUnicodeWithOffsets()
1380 cnv->fromUChar32=c; in _SCSUFromUnicodeWithOffsets()
1445 p=(uint8_t *)cnv->charErrorBuffer; in _SCSUFromUnicodeWithOffsets()
1460 cnv->charErrorBufferLength=(int8_t)length; in _SCSUFromUnicodeWithOffsets()
1503 UConverter *cnv; in _SCSUFromUnicode() local
1524 cnv=pArgs->converter; in _SCSUFromUnicode()
1525 scsu=(SCSUData *)cnv->extraInfo; in _SCSUFromUnicode()
1538 c=cnv->fromUChar32; in _SCSUFromUnicode()
1840 cnv->fromUChar32=c; in _SCSUFromUnicode()
1882 p=(uint8_t *)cnv->charErrorBuffer; in _SCSUFromUnicode()
1897 cnv->charErrorBufferLength=(int8_t)length; in _SCSUFromUnicode()
1924 _SCSUGetName(const UConverter *cnv) { in _SCSUGetName() argument
1925 SCSUData *scsu=(SCSUData *)cnv->extraInfo; in _SCSUGetName()
1938 UConverter cnv; member
1943 _SCSUSafeClone(const UConverter *cnv, in _SCSUSafeClone() argument
1963 uprv_memcpy(&localClone->mydata, cnv->extraInfo, sizeof(SCSUData)); in _SCSUSafeClone()
1964 localClone->cnv.extraInfo = &localClone->mydata; in _SCSUSafeClone()
1965 localClone->cnv.isExtraLocal = TRUE; in _SCSUSafeClone()
1967 return &localClone->cnv; in _SCSUSafeClone()