Lines Matching refs:cnv
159 _SCSUReset(UConverter *cnv, UConverterResetChoice choice) { in _SCSUReset() argument
160 SCSUData *scsu=(SCSUData *)cnv->extraInfo; in _SCSUReset()
171 cnv->toULength=0; in _SCSUReset()
190 cnv->fromUChar32=0; in _SCSUReset()
195 _SCSUOpen(UConverter *cnv, in _SCSUOpen() argument
202 cnv->extraInfo=uprv_malloc(sizeof(SCSUData)); in _SCSUOpen()
203 if(cnv->extraInfo!=NULL) { in _SCSUOpen()
205 ((SCSUData *)cnv->extraInfo)->locale=l_ja; in _SCSUOpen()
207 ((SCSUData *)cnv->extraInfo)->locale=lGeneric; in _SCSUOpen()
209 _SCSUReset(cnv, UCNV_RESET_BOTH); in _SCSUOpen()
215 cnv->subUChars[0]=0xfffd; in _SCSUOpen()
216 cnv->subCharLen=-1; in _SCSUOpen()
220 _SCSUClose(UConverter *cnv) { in _SCSUClose() argument
221 if(cnv->extraInfo!=NULL) { in _SCSUClose()
222 if(!cnv->isExtraLocal) { in _SCSUClose()
223 uprv_free(cnv->extraInfo); in _SCSUClose()
225 cnv->extraInfo=NULL; in _SCSUClose()
234 UConverter *cnv; in _SCSUToUnicodeWithOffsets() local
249 cnv=pArgs->converter; in _SCSUToUnicodeWithOffsets()
250 scsu=(SCSUData *)cnv->extraInfo; in _SCSUToUnicodeWithOffsets()
323 cnv->UCharErrorBuffer[0]=(UChar)(0xdc00|(c&0x3ff)); in _SCSUToUnicodeWithOffsets()
324 cnv->UCharErrorBufferLength=1; in _SCSUToUnicodeWithOffsets()
379 cnv->toUBytes[0]=b; in _SCSUToUnicodeWithOffsets()
380 cnv->toULength=1; in _SCSUToUnicodeWithOffsets()
385 cnv->toUBytes[0]=b; in _SCSUToUnicodeWithOffsets()
386 cnv->toULength=1; in _SCSUToUnicodeWithOffsets()
390 cnv->toUBytes[1]=b; in _SCSUToUnicodeWithOffsets()
391 cnv->toULength=2; in _SCSUToUnicodeWithOffsets()
431 cnv->UCharErrorBuffer[0]=(UChar)(0xdc00|(c&0x3ff)); in _SCSUToUnicodeWithOffsets()
432 cnv->UCharErrorBufferLength=1; in _SCSUToUnicodeWithOffsets()
444 cnv->toUBytes[1]=b; in _SCSUToUnicodeWithOffsets()
445 cnv->toULength=2; in _SCSUToUnicodeWithOffsets()
456 cnv->toUBytes[1]=b; in _SCSUToUnicodeWithOffsets()
457 cnv->toULength=2; in _SCSUToUnicodeWithOffsets()
467 cnv->toUBytes[1]=b; in _SCSUToUnicodeWithOffsets()
468 cnv->toULength=2; in _SCSUToUnicodeWithOffsets()
505 cnv->toUBytes[0]=b; in _SCSUToUnicodeWithOffsets()
506 cnv->toULength=1; in _SCSUToUnicodeWithOffsets()
516 cnv->toUBytes[0]=b; in _SCSUToUnicodeWithOffsets()
517 cnv->toULength=1; in _SCSUToUnicodeWithOffsets()
522 cnv->toUBytes[0]=b; in _SCSUToUnicodeWithOffsets()
523 cnv->toULength=1; in _SCSUToUnicodeWithOffsets()
527 cnv->toUBytes[0]=b; in _SCSUToUnicodeWithOffsets()
528 cnv->toULength=1; in _SCSUToUnicodeWithOffsets()
533 cnv->toUBytes[0]=b; in _SCSUToUnicodeWithOffsets()
534 cnv->toULength=1; in _SCSUToUnicodeWithOffsets()
540 cnv->toUBytes[1]=b; in _SCSUToUnicodeWithOffsets()
541 cnv->toULength=2; in _SCSUToUnicodeWithOffsets()
563 cnv->toULength=0; in _SCSUToUnicodeWithOffsets()
588 UConverter *cnv; in _SCSUToUnicode() local
600 cnv=pArgs->converter; in _SCSUToUnicode()
601 scsu=(SCSUData *)cnv->extraInfo; in _SCSUToUnicode()
655 cnv->UCharErrorBuffer[0]=(UChar)(0xdc00|(c&0x3ff)); in _SCSUToUnicode()
656 cnv->UCharErrorBufferLength=1; in _SCSUToUnicode()
703 cnv->toUBytes[0]=b; in _SCSUToUnicode()
704 cnv->toULength=1; in _SCSUToUnicode()
709 cnv->toUBytes[0]=b; in _SCSUToUnicode()
710 cnv->toULength=1; in _SCSUToUnicode()
714 cnv->toUBytes[1]=b; in _SCSUToUnicode()
715 cnv->toULength=2; in _SCSUToUnicode()
738 cnv->UCharErrorBuffer[0]=(UChar)(0xdc00|(c&0x3ff)); in _SCSUToUnicode()
739 cnv->UCharErrorBufferLength=1; in _SCSUToUnicode()
750 cnv->toUBytes[1]=b; in _SCSUToUnicode()
751 cnv->toULength=2; in _SCSUToUnicode()
761 cnv->toUBytes[1]=b; in _SCSUToUnicode()
762 cnv->toULength=2; in _SCSUToUnicode()
772 cnv->toUBytes[1]=b; in _SCSUToUnicode()
773 cnv->toULength=2; in _SCSUToUnicode()
803 cnv->toUBytes[0]=b; in _SCSUToUnicode()
804 cnv->toULength=1; in _SCSUToUnicode()
813 cnv->toUBytes[0]=b; in _SCSUToUnicode()
814 cnv->toULength=1; in _SCSUToUnicode()
819 cnv->toUBytes[0]=b; in _SCSUToUnicode()
820 cnv->toULength=1; in _SCSUToUnicode()
824 cnv->toUBytes[0]=b; in _SCSUToUnicode()
825 cnv->toULength=1; in _SCSUToUnicode()
830 cnv->toUBytes[0]=b; in _SCSUToUnicode()
831 cnv->toULength=1; in _SCSUToUnicode()
837 cnv->toUBytes[1]=b; in _SCSUToUnicode()
838 cnv->toULength=2; in _SCSUToUnicode()
856 cnv->toULength=0; in _SCSUToUnicode()
1013 UConverter *cnv; in _SCSUFromUnicodeWithOffsets() local
1037 cnv=pArgs->converter; in _SCSUFromUnicodeWithOffsets()
1038 scsu=(SCSUData *)cnv->extraInfo; in _SCSUFromUnicodeWithOffsets()
1052 c=cnv->fromUChar32; in _SCSUFromUnicodeWithOffsets()
1383 cnv->fromUChar32=c; in _SCSUFromUnicodeWithOffsets()
1456 p=(uint8_t *)cnv->charErrorBuffer; in _SCSUFromUnicodeWithOffsets()
1475 cnv->charErrorBufferLength=(int8_t)length; in _SCSUFromUnicodeWithOffsets()
1521 UConverter *cnv; in _SCSUFromUnicode() local
1542 cnv=pArgs->converter; in _SCSUFromUnicode()
1543 scsu=(SCSUData *)cnv->extraInfo; in _SCSUFromUnicode()
1556 c=cnv->fromUChar32; in _SCSUFromUnicode()
1858 cnv->fromUChar32=c; in _SCSUFromUnicode()
1904 p=(uint8_t *)cnv->charErrorBuffer; in _SCSUFromUnicode()
1923 cnv->charErrorBufferLength=(int8_t)length; in _SCSUFromUnicode()
1953 _SCSUGetName(const UConverter *cnv) { in _SCSUGetName() argument
1954 SCSUData *scsu=(SCSUData *)cnv->extraInfo; in _SCSUGetName()
1967 UConverter cnv; member
1972 _SCSUSafeClone(const UConverter *cnv, in _SCSUSafeClone() argument
1992 uprv_memcpy(&localClone->mydata, cnv->extraInfo, sizeof(SCSUData)); in _SCSUSafeClone()
1993 localClone->cnv.extraInfo = &localClone->mydata; in _SCSUSafeClone()
1994 localClone->cnv.isExtraLocal = TRUE; in _SCSUSafeClone()
1996 return &localClone->cnv; in _SCSUSafeClone()