• Home
  • Raw
  • Download

Lines Matching refs:cnv

931 ucnv_MBCSGetUnicodeSet(const UConverter *cnv,  in ucnv_MBCSGetUnicodeSet()  argument
935 if(cnv->options&_MBCS_OPTION_GB18030) { in ucnv_MBCSGetUnicodeSet()
939 ucnv_MBCSGetUnicodeSetForUnicode(cnv->sharedData, sa, which, pErrorCode); in ucnv_MBCSGetUnicodeSet()
961 _extFromU(UConverter *cnv, const UConverterSharedData *sharedData, in _extFromU() argument
970 cnv->useSubChar1=FALSE; in _extFromU()
974 cnv, cx, in _extFromU()
985 if((cnv->options&_MBCS_OPTION_GB18030)!=0) { in _extFromU()
1009 ucnv_fromUWriteBytes(cnv, in _extFromU()
1028 _extToU(UConverter *cnv, const UConverterSharedData *sharedData, in _extToU() argument
1039 cnv, cx, in _extToU()
1050 if(length==4 && (cnv->options&_MBCS_OPTION_GB18030)!=0) { in _extToU()
1055 linear=LINEAR_18030(cnv->toUBytes[0], cnv->toUBytes[1], cnv->toUBytes[2], cnv->toUBytes[3]); in _extToU()
1066 … ucnv_toUWriteCodePoint(cnv, linear, target, targetLimit, offsets, sourceIndex, pErrorCode); in _extToU()
1754 ucnv_MBCSOpen(UConverter *cnv, in ucnv_MBCSOpen() argument
1766 mbcsTable=&cnv->sharedData->mbcs; in ucnv_MBCSOpen()
1771 cnv->options=pArgs->options&=~UCNV_OPTION_SWAP_LFNL; in ucnv_MBCSOpen()
1783 if(!_EBCDICSwapLFNL(cnv->sharedData, pErrorCode)) { in ucnv_MBCSOpen()
1789 cnv->options=pArgs->options&=~UCNV_OPTION_SWAP_LFNL; in ucnv_MBCSOpen()
1797 cnv->options|=_MBCS_OPTION_GB18030; in ucnv_MBCSOpen()
1801 cnv->options|=_MBCS_OPTION_KEIS; in ucnv_MBCSOpen()
1804 cnv->options|=_MBCS_OPTION_JEF; in ucnv_MBCSOpen()
1807 cnv->options|=_MBCS_OPTION_JIPS; in ucnv_MBCSOpen()
1812 cnv->maxBytesPerUChar=3; /* SO+DBCS */ in ucnv_MBCSOpen()
1822 if(maxBytesPerUChar>cnv->maxBytesPerUChar) { in ucnv_MBCSOpen()
1823 cnv->maxBytesPerUChar=maxBytesPerUChar; in ucnv_MBCSOpen()
1834 cnv->toUnicodeStatus=0; /* offset */ in ucnv_MBCSOpen()
1835 cnv->mode=0; /* state */ in ucnv_MBCSOpen()
1836 cnv->toULength=0; /* byteIndex */ in ucnv_MBCSOpen()
1839 cnv->fromUChar32=0; in ucnv_MBCSOpen()
1840 cnv->fromUnicodeStatus=1; /* prevLength */ in ucnv_MBCSOpen()
1845 ucnv_MBCSGetName(const UConverter *cnv) { in ucnv_MBCSGetName() argument
1846 if((cnv->options&UCNV_OPTION_SWAP_LFNL)!=0 && cnv->sharedData->mbcs.swapLFNLName!=NULL) { in ucnv_MBCSGetName()
1847 return cnv->sharedData->mbcs.swapLFNLName; in ucnv_MBCSGetName()
1849 return cnv->sharedData->staticData->name; in ucnv_MBCSGetName()
1887 UConverter *cnv; in ucnv_MBCSSingleToUnicodeWithOffsets() local
1902 cnv=pArgs->converter; in ucnv_MBCSSingleToUnicodeWithOffsets()
1909 if((cnv->options&UCNV_OPTION_SWAP_LFNL)!=0) { in ucnv_MBCSSingleToUnicodeWithOffsets()
1910 stateTable=(const int32_t (*)[256])cnv->sharedData->mbcs.swapLFNLStateTable; in ucnv_MBCSSingleToUnicodeWithOffsets()
1912 stateTable=cnv->sharedData->mbcs.stateTable; in ucnv_MBCSSingleToUnicodeWithOffsets()
1956 (action==MBCS_STATE_FALLBACK_DIRECT_20 && UCNV_TO_U_USE_FALLBACK(cnv)) in ucnv_MBCSSingleToUnicodeWithOffsets()
1972 cnv->UCharErrorBuffer[0]=c; in ucnv_MBCSSingleToUnicodeWithOffsets()
1973 cnv->UCharErrorBufferLength=1; in ucnv_MBCSSingleToUnicodeWithOffsets()
1981 if(UCNV_TO_U_USE_FALLBACK(cnv)) { in ucnv_MBCSSingleToUnicodeWithOffsets()
2008 cnv->toUBytes[0]=*(source-1); in ucnv_MBCSSingleToUnicodeWithOffsets()
2009 cnv->toULength=_extToU(cnv, cnv->sharedData, in ucnv_MBCSSingleToUnicodeWithOffsets()
2039 UConverter *cnv; in ucnv_MBCSSingleToBMPWithOffsets() local
2053 cnv=pArgs->converter; in ucnv_MBCSSingleToBMPWithOffsets()
2060 if((cnv->options&UCNV_OPTION_SWAP_LFNL)!=0) { in ucnv_MBCSSingleToBMPWithOffsets()
2061 stateTable=(const int32_t (*)[256])cnv->sharedData->mbcs.swapLFNLStateTable; in ucnv_MBCSSingleToBMPWithOffsets()
2063 stateTable=cnv->sharedData->mbcs.stateTable; in ucnv_MBCSSingleToBMPWithOffsets()
2176 if(UCNV_TO_U_USE_FALLBACK(cnv)) { in ucnv_MBCSSingleToBMPWithOffsets()
2209 cnv->toUBytes[0]=*(source-1); in ucnv_MBCSSingleToBMPWithOffsets()
2210 cnv->toULength=_extToU(cnv, cnv->sharedData, in ucnv_MBCSSingleToBMPWithOffsets()
2319 UConverter *cnv; in ucnv_MBCSToUnicodeWithOffsets() local
2340 cnv=pArgs->converter; in ucnv_MBCSToUnicodeWithOffsets()
2342 if(cnv->preToULength>0) { in ucnv_MBCSToUnicodeWithOffsets()
2347 ucnv_extContinueMatchToU(cnv, pArgs, -1, pErrorCode); in ucnv_MBCSToUnicodeWithOffsets()
2349 if(U_FAILURE(*pErrorCode) || cnv->preToULength<0) { in ucnv_MBCSToUnicodeWithOffsets()
2354 if(cnv->sharedData->mbcs.countStates==1) { in ucnv_MBCSToUnicodeWithOffsets()
2355 if(!(cnv->sharedData->mbcs.unicodeMask&UCNV_HAS_SUPPLEMENTARY)) { in ucnv_MBCSToUnicodeWithOffsets()
2370 if((cnv->options&UCNV_OPTION_SWAP_LFNL)!=0) { in ucnv_MBCSToUnicodeWithOffsets()
2371 stateTable=(const int32_t (*)[256])cnv->sharedData->mbcs.swapLFNLStateTable; in ucnv_MBCSToUnicodeWithOffsets()
2373 stateTable=cnv->sharedData->mbcs.stateTable; in ucnv_MBCSToUnicodeWithOffsets()
2375 unicodeCodeUnits=cnv->sharedData->mbcs.unicodeCodeUnits; in ucnv_MBCSToUnicodeWithOffsets()
2378 offset=cnv->toUnicodeStatus; in ucnv_MBCSToUnicodeWithOffsets()
2379 byteIndex=cnv->toULength; in ucnv_MBCSToUnicodeWithOffsets()
2380 bytes=cnv->toUBytes; in ucnv_MBCSToUnicodeWithOffsets()
2387 if((state=(uint8_t)(cnv->mode))==0) { in ucnv_MBCSToUnicodeWithOffsets()
2388 state=cnv->sharedData->mbcs.dbcsOnlyState; in ucnv_MBCSToUnicodeWithOffsets()
2521 cnv->mode=state; in ucnv_MBCSToUnicodeWithOffsets()
2542 …if(UCNV_TO_U_USE_FALLBACK(cnv) && (entry=(int32_t)ucnv_MBCSGetFallback(&cnv->sharedData->mbcs, off… in ucnv_MBCSToUnicodeWithOffsets()
2571 } else if(UCNV_TO_U_USE_FALLBACK(cnv) ? c<=0xdfff : c<=0xdbff) { in ucnv_MBCSToUnicodeWithOffsets()
2585 cnv->UCharErrorBuffer[0]=unicodeCodeUnits[offset]; in ucnv_MBCSToUnicodeWithOffsets()
2586 cnv->UCharErrorBufferLength=1; in ucnv_MBCSToUnicodeWithOffsets()
2592 } else if(UCNV_TO_U_USE_FALLBACK(cnv) ? (c&0xfffe)==0xe000 : c==0xe000) { in ucnv_MBCSToUnicodeWithOffsets()
2604 (action==MBCS_STATE_FALLBACK_DIRECT_20 && UCNV_TO_U_USE_FALLBACK(cnv)) in ucnv_MBCSToUnicodeWithOffsets()
2621 cnv->UCharErrorBuffer[0]=c; in ucnv_MBCSToUnicodeWithOffsets()
2622 cnv->UCharErrorBufferLength=1; in ucnv_MBCSToUnicodeWithOffsets()
2636 if(cnv->sharedData->mbcs.dbcsOnlyState==0) { in ucnv_MBCSToUnicodeWithOffsets()
2640 state=(uint8_t)(cnv->mode); /* restore the previous state */ in ucnv_MBCSToUnicodeWithOffsets()
2646 if(UCNV_TO_U_USE_FALLBACK(cnv)) { in ucnv_MBCSToUnicodeWithOffsets()
2678 UBool isDBCSOnly=(UBool)(cnv->sharedData->mbcs.dbcsOnlyState!=0); in ucnv_MBCSToUnicodeWithOffsets()
2692 cnv->preToULength=(int8_t)(bytesFromThisBuffer-backOutDistance); in ucnv_MBCSToUnicodeWithOffsets()
2694 uprv_memcpy(cnv->preToU, bytes+i, -cnv->preToULength); in ucnv_MBCSToUnicodeWithOffsets()
2703 byteIndex=_extToU(cnv, cnv->sharedData, in ucnv_MBCSToUnicodeWithOffsets()
2719 cnv->toUnicodeStatus=offset; in ucnv_MBCSToUnicodeWithOffsets()
2720 cnv->mode=state; in ucnv_MBCSToUnicodeWithOffsets()
2721 cnv->toULength=byteIndex; in ucnv_MBCSToUnicodeWithOffsets()
2736 UConverter *cnv; in ucnv_MBCSSingleGetNextUChar() local
2744 cnv=pArgs->converter; in ucnv_MBCSSingleGetNextUChar()
2747 if((cnv->options&UCNV_OPTION_SWAP_LFNL)!=0) { in ucnv_MBCSSingleGetNextUChar()
2748 stateTable=(const int32_t (*)[256])cnv->sharedData->mbcs.swapLFNLStateTable; in ucnv_MBCSSingleGetNextUChar()
2750 stateTable=cnv->sharedData->mbcs.stateTable; in ucnv_MBCSSingleGetNextUChar()
2772 (action==MBCS_STATE_FALLBACK_DIRECT_20 && UCNV_TO_U_USE_FALLBACK(cnv)) in ucnv_MBCSSingleGetNextUChar()
2777 if(UCNV_TO_U_USE_FALLBACK(cnv)) { in ucnv_MBCSSingleGetNextUChar()
2821 UConverter *cnv; in ucnv_MBCSGetNextUChar() local
2835 cnv=pArgs->converter; in ucnv_MBCSGetNextUChar()
2837 if(cnv->preToULength>0) { in ucnv_MBCSGetNextUChar()
2842 if(cnv->sharedData->mbcs.unicodeMask&UCNV_HAS_SURROGATES) { in ucnv_MBCSGetNextUChar()
2849 } else if(cnv->sharedData->mbcs.countStates==1) { in ucnv_MBCSGetNextUChar()
2857 if((cnv->options&UCNV_OPTION_SWAP_LFNL)!=0) { in ucnv_MBCSGetNextUChar()
2858 stateTable=(const int32_t (*)[256])cnv->sharedData->mbcs.swapLFNLStateTable; in ucnv_MBCSGetNextUChar()
2860 stateTable=cnv->sharedData->mbcs.stateTable; in ucnv_MBCSGetNextUChar()
2862 unicodeCodeUnits=cnv->sharedData->mbcs.unicodeCodeUnits; in ucnv_MBCSGetNextUChar()
2865 offset=cnv->toUnicodeStatus; in ucnv_MBCSGetNextUChar()
2872 if((state=(uint8_t)(cnv->mode))==0) { in ucnv_MBCSGetNextUChar()
2873 state=cnv->sharedData->mbcs.dbcsOnlyState; in ucnv_MBCSGetNextUChar()
2897 cnv->mode=state; in ucnv_MBCSGetNextUChar()
2918 …if(UCNV_TO_U_USE_FALLBACK(cnv) && (c=ucnv_MBCSGetFallback(&cnv->sharedData->mbcs, offset))!=0xfffe… in ucnv_MBCSGetNextUChar()
2931 } else if(UCNV_TO_U_USE_FALLBACK(cnv) ? c<=0xdfff : c<=0xdbff) { in ucnv_MBCSGetNextUChar()
2935 } else if(UCNV_TO_U_USE_FALLBACK(cnv) ? (c&0xfffe)==0xe000 : c==0xe000) { in ucnv_MBCSGetNextUChar()
2944 (action==MBCS_STATE_FALLBACK_DIRECT_20 && UCNV_TO_U_USE_FALLBACK(cnv)) in ucnv_MBCSGetNextUChar()
2957 if(cnv->sharedData->mbcs.dbcsOnlyState!=0) { in ucnv_MBCSGetNextUChar()
2959 state=(uint8_t)(cnv->mode); /* restore the previous state */ in ucnv_MBCSGetNextUChar()
2965 if(UCNV_TO_U_USE_FALLBACK(cnv)) { in ucnv_MBCSGetNextUChar()
2990 cnv->toUnicodeStatus=0; in ucnv_MBCSGetNextUChar()
2991 cnv->mode=state; in ucnv_MBCSGetNextUChar()
3001 uint8_t *bytes=cnv->toUBytes; in ucnv_MBCSGetNextUChar()
3002 cnv->toULength=(int8_t)(source-lastSource); in ucnv_MBCSGetNextUChar()
3015 UBool isDBCSOnly=(UBool)(cnv->sharedData->mbcs.dbcsOnlyState!=0); in ucnv_MBCSGetNextUChar()
3016 uint8_t *bytes=cnv->toUBytes; in ucnv_MBCSGetNextUChar()
3019 cnv->toULength=1; in ucnv_MBCSGetNextUChar()
3028 cnv->toULength=i; in ucnv_MBCSGetNextUChar()
3039 cnv->toUnicodeStatus=0; in ucnv_MBCSGetNextUChar()
3040 cnv->mode=state; in ucnv_MBCSGetNextUChar()
3179 } else if(UCNV_TO_U_USE_FALLBACK(cnv)) { in ucnv_MBCSSimpleGetNextUChar()
3193 } else if(UCNV_TO_U_USE_FALLBACK(cnv) ? c<=0xdfff : c<=0xdbff) { in ucnv_MBCSSimpleGetNextUChar()
3196 } else if(UCNV_TO_U_USE_FALLBACK(cnv) ? (c&0xfffe)==0xe000 : c==0xe000) { in ucnv_MBCSSimpleGetNextUChar()
3260 UConverter *cnv; in ucnv_MBCSDoubleFromUnicodeWithOffsets() local
3280 cnv=pArgs->converter; in ucnv_MBCSDoubleFromUnicodeWithOffsets()
3281 unicodeMask=cnv->sharedData->mbcs.unicodeMask; in ucnv_MBCSDoubleFromUnicodeWithOffsets()
3290 table=cnv->sharedData->mbcs.fromUnicodeTable; in ucnv_MBCSDoubleFromUnicodeWithOffsets()
3291 mbcsIndex=cnv->sharedData->mbcs.mbcsIndex; in ucnv_MBCSDoubleFromUnicodeWithOffsets()
3292 if((cnv->options&UCNV_OPTION_SWAP_LFNL)!=0) { in ucnv_MBCSDoubleFromUnicodeWithOffsets()
3293 bytes=cnv->sharedData->mbcs.swapLFNLFromUnicodeBytes; in ucnv_MBCSDoubleFromUnicodeWithOffsets()
3295 bytes=cnv->sharedData->mbcs.fromUnicodeBytes; in ucnv_MBCSDoubleFromUnicodeWithOffsets()
3297 asciiRoundtrips=cnv->sharedData->mbcs.asciiRoundtrips; in ucnv_MBCSDoubleFromUnicodeWithOffsets()
3300 c=cnv->fromUChar32; in ucnv_MBCSDoubleFromUnicodeWithOffsets()
3400 (UCNV_FROM_U_USE_FALLBACK(cnv, c) && value!=0)) in ucnv_MBCSDoubleFromUnicodeWithOffsets()
3411 c=_extFromU(cnv, cnv->sharedData, in ucnv_MBCSDoubleFromUnicodeWithOffsets()
3457 cnv->charErrorBuffer[0]=(char)value; in ucnv_MBCSDoubleFromUnicodeWithOffsets()
3458 cnv->charErrorBufferLength=1; in ucnv_MBCSDoubleFromUnicodeWithOffsets()
3480 cnv->fromUChar32=c; in ucnv_MBCSDoubleFromUnicodeWithOffsets()
3492 UConverter *cnv; in ucnv_MBCSSingleFromUnicodeWithOffsets() local
3509 cnv=pArgs->converter; in ucnv_MBCSSingleFromUnicodeWithOffsets()
3516 table=cnv->sharedData->mbcs.fromUnicodeTable; in ucnv_MBCSSingleFromUnicodeWithOffsets()
3517 if((cnv->options&UCNV_OPTION_SWAP_LFNL)!=0) { in ucnv_MBCSSingleFromUnicodeWithOffsets()
3518 results=(uint16_t *)cnv->sharedData->mbcs.swapLFNLFromUnicodeBytes; in ucnv_MBCSSingleFromUnicodeWithOffsets()
3520 results=(uint16_t *)cnv->sharedData->mbcs.fromUnicodeBytes; in ucnv_MBCSSingleFromUnicodeWithOffsets()
3523 if(cnv->useFallback) { in ucnv_MBCSSingleFromUnicodeWithOffsets()
3530 hasSupplementary=(UBool)(cnv->sharedData->mbcs.unicodeMask&UCNV_HAS_SUPPLEMENTARY); in ucnv_MBCSSingleFromUnicodeWithOffsets()
3533 c=cnv->fromUChar32; in ucnv_MBCSSingleFromUnicodeWithOffsets()
3617 c=_extFromU(cnv, cnv->sharedData, in ucnv_MBCSSingleFromUnicodeWithOffsets()
3646 cnv->fromUChar32=c; in ucnv_MBCSSingleFromUnicodeWithOffsets()
3668 UConverter *cnv; in ucnv_MBCSSingleFromBMPWithOffsets() local
3685 cnv=pArgs->converter; in ucnv_MBCSSingleFromBMPWithOffsets()
3692 table=cnv->sharedData->mbcs.fromUnicodeTable; in ucnv_MBCSSingleFromBMPWithOffsets()
3693 if((cnv->options&UCNV_OPTION_SWAP_LFNL)!=0) { in ucnv_MBCSSingleFromBMPWithOffsets()
3694 results=(uint16_t *)cnv->sharedData->mbcs.swapLFNLFromUnicodeBytes; in ucnv_MBCSSingleFromBMPWithOffsets()
3696 results=(uint16_t *)cnv->sharedData->mbcs.fromUnicodeBytes; in ucnv_MBCSSingleFromBMPWithOffsets()
3698 asciiRoundtrips=cnv->sharedData->mbcs.asciiRoundtrips; in ucnv_MBCSSingleFromBMPWithOffsets()
3700 if(cnv->useFallback) { in ucnv_MBCSSingleFromBMPWithOffsets()
3709 c=cnv->fromUChar32; in ucnv_MBCSSingleFromBMPWithOffsets()
3862 c=_extFromU(cnv, cnv->sharedData, in ucnv_MBCSSingleFromBMPWithOffsets()
3914 cnv->fromUChar32=c; in ucnv_MBCSSingleFromBMPWithOffsets()
3925 UConverter *cnv; in ucnv_MBCSFromUnicodeWithOffsets() local
3950 cnv=pArgs->converter; in ucnv_MBCSFromUnicodeWithOffsets()
3952 if(cnv->preFromUFirstCP>=0) { in ucnv_MBCSFromUnicodeWithOffsets()
3957 ucnv_extContinueMatchFromU(cnv, pArgs, -1, pErrorCode); in ucnv_MBCSFromUnicodeWithOffsets()
3959 if(U_FAILURE(*pErrorCode) || cnv->preFromULength<0) { in ucnv_MBCSFromUnicodeWithOffsets()
3965 outputType=cnv->sharedData->mbcs.outputType; in ucnv_MBCSFromUnicodeWithOffsets()
3966 unicodeMask=cnv->sharedData->mbcs.unicodeMask; in ucnv_MBCSFromUnicodeWithOffsets()
3974 } else if(outputType==MBCS_OUTPUT_2 && cnv->sharedData->mbcs.utf8Friendly) { in ucnv_MBCSFromUnicodeWithOffsets()
3986 table=cnv->sharedData->mbcs.fromUnicodeTable; in ucnv_MBCSFromUnicodeWithOffsets()
3987 if(cnv->sharedData->mbcs.utf8Friendly) { in ucnv_MBCSFromUnicodeWithOffsets()
3988 mbcsIndex=cnv->sharedData->mbcs.mbcsIndex; in ucnv_MBCSFromUnicodeWithOffsets()
3992 if((cnv->options&UCNV_OPTION_SWAP_LFNL)!=0) { in ucnv_MBCSFromUnicodeWithOffsets()
3993 bytes=cnv->sharedData->mbcs.swapLFNLFromUnicodeBytes; in ucnv_MBCSFromUnicodeWithOffsets()
3995 bytes=cnv->sharedData->mbcs.fromUnicodeBytes; in ucnv_MBCSFromUnicodeWithOffsets()
3997 asciiRoundtrips=cnv->sharedData->mbcs.asciiRoundtrips; in ucnv_MBCSFromUnicodeWithOffsets()
4000 c=cnv->fromUChar32; in ucnv_MBCSFromUnicodeWithOffsets()
4003 prevLength=cnv->fromUnicodeStatus; in ucnv_MBCSFromUnicodeWithOffsets()
4019 siLength = getSISOBytes(SI, cnv->options, siBytes); in ucnv_MBCSFromUnicodeWithOffsets()
4020 soLength = getSISOBytes(SO, cnv->options, soBytes); in ucnv_MBCSFromUnicodeWithOffsets()
4102 cnv->fromUnicodeStatus=prevLength; /* save the old state */ in ucnv_MBCSFromUnicodeWithOffsets()
4252 cnv->fromUnicodeStatus=prevLength; /* save the old state */ in ucnv_MBCSFromUnicodeWithOffsets()
4333 cnv->fromUnicodeStatus=prevLength; /* save the old state */ in ucnv_MBCSFromUnicodeWithOffsets()
4453 (UCNV_FROM_U_USE_FALLBACK(cnv, c) && value!=0)) in ucnv_MBCSFromUnicodeWithOffsets()
4464 c=_extFromU(cnv, cnv->sharedData, in ucnv_MBCSFromUnicodeWithOffsets()
4471 prevLength=cnv->fromUnicodeStatus; /* restore SISO state */ in ucnv_MBCSFromUnicodeWithOffsets()
4542 charErrorBuffer=(uint8_t *)cnv->charErrorBuffer; in ucnv_MBCSFromUnicodeWithOffsets()
4555 cnv->charErrorBufferLength=(int8_t)length; in ucnv_MBCSFromUnicodeWithOffsets()
4621 cnv->charErrorBuffer[0]=(uint8_t)siBytes[1]; in ucnv_MBCSFromUnicodeWithOffsets()
4622 cnv->charErrorBufferLength=1; in ucnv_MBCSFromUnicodeWithOffsets()
4634 cnv->charErrorBuffer[0]=(uint8_t)siBytes[0]; in ucnv_MBCSFromUnicodeWithOffsets()
4636 cnv->charErrorBuffer[1]=(uint8_t)siBytes[1]; in ucnv_MBCSFromUnicodeWithOffsets()
4638 cnv->charErrorBufferLength=siLength; in ucnv_MBCSFromUnicodeWithOffsets()
4645 cnv->fromUChar32=c; in ucnv_MBCSFromUnicodeWithOffsets()
4646 cnv->fromUnicodeStatus=prevLength; in ucnv_MBCSFromUnicodeWithOffsets()
4865 UConverter *utf8, *cnv; in ucnv_SBCSFromUTF8() local
4884 cnv=pFromUArgs->converter; in ucnv_SBCSFromUTF8()
4890 table=cnv->sharedData->mbcs.fromUnicodeTable; in ucnv_SBCSFromUTF8()
4891 sbcsIndex=cnv->sharedData->mbcs.sbcsIndex; in ucnv_SBCSFromUTF8()
4892 if((cnv->options&UCNV_OPTION_SWAP_LFNL)!=0) { in ucnv_SBCSFromUTF8()
4893 results=(uint16_t *)cnv->sharedData->mbcs.swapLFNLFromUnicodeBytes; in ucnv_SBCSFromUTF8()
4895 results=(uint16_t *)cnv->sharedData->mbcs.fromUnicodeBytes; in ucnv_SBCSFromUTF8()
4897 asciiRoundtrips=cnv->sharedData->mbcs.asciiRoundtrips; in ucnv_SBCSFromUTF8()
4899 if(cnv->useFallback) { in ucnv_SBCSFromUTF8()
4906 hasSupplementary=(UBool)(cnv->sharedData->mbcs.unicodeMask&UCNV_HAS_SUPPLEMENTARY); in ucnv_SBCSFromUTF8()
5108 c=_extFromU(cnv, cnv->sharedData, in ucnv_SBCSFromUTF8()
5117 cnv->fromUChar32=c; in ucnv_SBCSFromUTF8()
5119 } else if(cnv->preFromUFirstCP>=0) { in ucnv_SBCSFromUTF8()
5148 cnv->preFromUFirstCP<0 && in ucnv_SBCSFromUTF8()
5171 UConverter *utf8, *cnv; in ucnv_DBCSFromUTF8() local
5191 cnv=pFromUArgs->converter; in ucnv_DBCSFromUTF8()
5197 table=cnv->sharedData->mbcs.fromUnicodeTable; in ucnv_DBCSFromUTF8()
5198 mbcsIndex=cnv->sharedData->mbcs.mbcsIndex; in ucnv_DBCSFromUTF8()
5199 if((cnv->options&UCNV_OPTION_SWAP_LFNL)!=0) { in ucnv_DBCSFromUTF8()
5200 results=(uint16_t *)cnv->sharedData->mbcs.swapLFNLFromUnicodeBytes; in ucnv_DBCSFromUTF8()
5202 results=(uint16_t *)cnv->sharedData->mbcs.fromUnicodeBytes; in ucnv_DBCSFromUTF8()
5204 asciiRoundtrips=cnv->sharedData->mbcs.asciiRoundtrips; in ucnv_DBCSFromUTF8()
5206 hasSupplementary=(UBool)(cnv->sharedData->mbcs.unicodeMask&UCNV_HAS_SUPPLEMENTARY); in ucnv_DBCSFromUTF8()
5378 (UCNV_FROM_U_USE_FALLBACK(cnv, c) && value!=0)) in ucnv_DBCSFromUTF8()
5397 cnv->charErrorBuffer[0]=(char)value; in ucnv_DBCSFromUTF8()
5398 cnv->charErrorBufferLength=1; in ucnv_DBCSFromUTF8()
5417 c=_extFromU(cnv, cnv->sharedData, in ucnv_DBCSFromUTF8()
5426 cnv->fromUChar32=c; in ucnv_DBCSFromUTF8()
5428 } else if(cnv->preFromUFirstCP>=0) { in ucnv_DBCSFromUTF8()
5458 cnv->preFromUFirstCP<0 && in ucnv_DBCSFromUTF8()
5480 ucnv_MBCSGetStarters(const UConverter* cnv, in ucnv_MBCSGetStarters() argument
5486 state0=cnv->sharedData->mbcs.stateTable[cnv->sharedData->mbcs.dbcsOnlyState]; in ucnv_MBCSGetStarters()
5506 UConverter *cnv=pArgs->converter; in ucnv_MBCSWriteSub() local
5512 if( cnv->subChar1!=0 && in ucnv_MBCSWriteSub()
5513 (cnv->sharedData->mbcs.extIndexes!=NULL ? in ucnv_MBCSWriteSub()
5514 cnv->useSubChar1 : in ucnv_MBCSWriteSub()
5515 (cnv->invalidUCharBuffer[0]<=0xff)) in ucnv_MBCSWriteSub()
5518 subchar=(char *)&cnv->subChar1; in ucnv_MBCSWriteSub()
5522 subchar=(char *)cnv->subChars; in ucnv_MBCSWriteSub()
5523 length=cnv->subCharLen; in ucnv_MBCSWriteSub()
5527 cnv->useSubChar1=FALSE; in ucnv_MBCSWriteSub()
5529 if (cnv->sharedData->mbcs.outputType == MBCS_OUTPUT_2_SISO) { in ucnv_MBCSWriteSub()
5535 if(cnv->fromUnicodeStatus==2) { in ucnv_MBCSWriteSub()
5537 cnv->fromUnicodeStatus=1; in ucnv_MBCSWriteSub()
5543 if(cnv->fromUnicodeStatus<=1) { in ucnv_MBCSWriteSub()
5545 cnv->fromUnicodeStatus=2; in ucnv_MBCSWriteSub()