• Home
  • Raw
  • Download

Lines Matching refs:cnv

391 ucnv_MBCSOpen(UConverter *cnv,
400 ucnv_MBCSGetStarters(const UConverter* cnv,
406 ucnv_MBCSGetName(const UConverter *cnv);
424 ucnv_MBCSGetUnicodeSet(const UConverter *cnv,
1075 ucnv_MBCSGetUnicodeSet(const UConverter *cnv, in ucnv_MBCSGetUnicodeSet() argument
1079 if(cnv->options&_MBCS_OPTION_GB18030) { in ucnv_MBCSGetUnicodeSet()
1083 ucnv_MBCSGetUnicodeSetForUnicode(cnv->sharedData, sa, which, pErrorCode); in ucnv_MBCSGetUnicodeSet()
1105 _extFromU(UConverter *cnv, const UConverterSharedData *sharedData, in _extFromU() argument
1114 cnv->useSubChar1=FALSE; in _extFromU()
1118 cnv, cx, in _extFromU()
1129 if((cnv->options&_MBCS_OPTION_GB18030)!=0) { in _extFromU()
1153 ucnv_fromUWriteBytes(cnv, in _extFromU()
1172 _extToU(UConverter *cnv, const UConverterSharedData *sharedData, in _extToU() argument
1183 cnv, cx, in _extToU()
1194 if(length==4 && (cnv->options&_MBCS_OPTION_GB18030)!=0) { in _extToU()
1199 linear=LINEAR_18030(cnv->toUBytes[0], cnv->toUBytes[1], cnv->toUBytes[2], cnv->toUBytes[3]); in _extToU()
1210 … ucnv_toUWriteCodePoint(cnv, linear, target, targetLimit, offsets, sourceIndex, pErrorCode); in _extToU()
1898 ucnv_MBCSOpen(UConverter *cnv, in ucnv_MBCSOpen() argument
1910 mbcsTable=&cnv->sharedData->mbcs; in ucnv_MBCSOpen()
1915 cnv->options=pArgs->options&=~UCNV_OPTION_SWAP_LFNL; in ucnv_MBCSOpen()
1927 if(!_EBCDICSwapLFNL(cnv->sharedData, pErrorCode)) { in ucnv_MBCSOpen()
1933 cnv->options=pArgs->options&=~UCNV_OPTION_SWAP_LFNL; in ucnv_MBCSOpen()
1941 cnv->options|=_MBCS_OPTION_GB18030; in ucnv_MBCSOpen()
1945 cnv->options|=_MBCS_OPTION_KEIS; in ucnv_MBCSOpen()
1948 cnv->options|=_MBCS_OPTION_JEF; in ucnv_MBCSOpen()
1951 cnv->options|=_MBCS_OPTION_JIPS; in ucnv_MBCSOpen()
1956 cnv->maxBytesPerUChar=3; /* SO+DBCS */ in ucnv_MBCSOpen()
1966 if(maxBytesPerUChar>cnv->maxBytesPerUChar) { in ucnv_MBCSOpen()
1967 cnv->maxBytesPerUChar=maxBytesPerUChar; in ucnv_MBCSOpen()
1978 cnv->toUnicodeStatus=0; /* offset */ in ucnv_MBCSOpen()
1979 cnv->mode=0; /* state */ in ucnv_MBCSOpen()
1980 cnv->toULength=0; /* byteIndex */ in ucnv_MBCSOpen()
1983 cnv->fromUChar32=0; in ucnv_MBCSOpen()
1984 cnv->fromUnicodeStatus=1; /* prevLength */ in ucnv_MBCSOpen()
1991 ucnv_MBCSGetName(const UConverter *cnv) { in ucnv_MBCSGetName() argument
1992 if((cnv->options&UCNV_OPTION_SWAP_LFNL)!=0 && cnv->sharedData->mbcs.swapLFNLName!=NULL) { in ucnv_MBCSGetName()
1993 return cnv->sharedData->mbcs.swapLFNLName; in ucnv_MBCSGetName()
1995 return cnv->sharedData->staticData->name; in ucnv_MBCSGetName()
2035 UConverter *cnv; in ucnv_MBCSSingleToUnicodeWithOffsets() local
2050 cnv=pArgs->converter; in ucnv_MBCSSingleToUnicodeWithOffsets()
2057 if((cnv->options&UCNV_OPTION_SWAP_LFNL)!=0) { in ucnv_MBCSSingleToUnicodeWithOffsets()
2058 stateTable=(const int32_t (*)[256])cnv->sharedData->mbcs.swapLFNLStateTable; in ucnv_MBCSSingleToUnicodeWithOffsets()
2060 stateTable=cnv->sharedData->mbcs.stateTable; in ucnv_MBCSSingleToUnicodeWithOffsets()
2104 (action==MBCS_STATE_FALLBACK_DIRECT_20 && UCNV_TO_U_USE_FALLBACK(cnv)) in ucnv_MBCSSingleToUnicodeWithOffsets()
2120 cnv->UCharErrorBuffer[0]=c; in ucnv_MBCSSingleToUnicodeWithOffsets()
2121 cnv->UCharErrorBufferLength=1; in ucnv_MBCSSingleToUnicodeWithOffsets()
2129 if(UCNV_TO_U_USE_FALLBACK(cnv)) { in ucnv_MBCSSingleToUnicodeWithOffsets()
2156 cnv->toUBytes[0]=*(source-1); in ucnv_MBCSSingleToUnicodeWithOffsets()
2157 cnv->toULength=_extToU(cnv, cnv->sharedData, in ucnv_MBCSSingleToUnicodeWithOffsets()
2187 UConverter *cnv; in ucnv_MBCSSingleToBMPWithOffsets() local
2201 cnv=pArgs->converter; in ucnv_MBCSSingleToBMPWithOffsets()
2208 if((cnv->options&UCNV_OPTION_SWAP_LFNL)!=0) { in ucnv_MBCSSingleToBMPWithOffsets()
2209 stateTable=(const int32_t (*)[256])cnv->sharedData->mbcs.swapLFNLStateTable; in ucnv_MBCSSingleToBMPWithOffsets()
2211 stateTable=cnv->sharedData->mbcs.stateTable; in ucnv_MBCSSingleToBMPWithOffsets()
2324 if(UCNV_TO_U_USE_FALLBACK(cnv)) { in ucnv_MBCSSingleToBMPWithOffsets()
2357 cnv->toUBytes[0]=*(source-1); in ucnv_MBCSSingleToBMPWithOffsets()
2358 cnv->toULength=_extToU(cnv, cnv->sharedData, in ucnv_MBCSSingleToBMPWithOffsets()
2467 UConverter *cnv; in ucnv_MBCSToUnicodeWithOffsets() local
2488 cnv=pArgs->converter; in ucnv_MBCSToUnicodeWithOffsets()
2490 if(cnv->preToULength>0) { in ucnv_MBCSToUnicodeWithOffsets()
2495 ucnv_extContinueMatchToU(cnv, pArgs, -1, pErrorCode); in ucnv_MBCSToUnicodeWithOffsets()
2497 if(U_FAILURE(*pErrorCode) || cnv->preToULength<0) { in ucnv_MBCSToUnicodeWithOffsets()
2502 if(cnv->sharedData->mbcs.countStates==1) { in ucnv_MBCSToUnicodeWithOffsets()
2503 if(!(cnv->sharedData->mbcs.unicodeMask&UCNV_HAS_SUPPLEMENTARY)) { in ucnv_MBCSToUnicodeWithOffsets()
2518 if((cnv->options&UCNV_OPTION_SWAP_LFNL)!=0) { in ucnv_MBCSToUnicodeWithOffsets()
2519 stateTable=(const int32_t (*)[256])cnv->sharedData->mbcs.swapLFNLStateTable; in ucnv_MBCSToUnicodeWithOffsets()
2521 stateTable=cnv->sharedData->mbcs.stateTable; in ucnv_MBCSToUnicodeWithOffsets()
2523 unicodeCodeUnits=cnv->sharedData->mbcs.unicodeCodeUnits; in ucnv_MBCSToUnicodeWithOffsets()
2526 offset=cnv->toUnicodeStatus; in ucnv_MBCSToUnicodeWithOffsets()
2527 byteIndex=cnv->toULength; in ucnv_MBCSToUnicodeWithOffsets()
2528 bytes=cnv->toUBytes; in ucnv_MBCSToUnicodeWithOffsets()
2535 if((state=(uint8_t)(cnv->mode))==0) { in ucnv_MBCSToUnicodeWithOffsets()
2536 state=cnv->sharedData->mbcs.dbcsOnlyState; in ucnv_MBCSToUnicodeWithOffsets()
2669 cnv->mode=state; in ucnv_MBCSToUnicodeWithOffsets()
2690 …if(UCNV_TO_U_USE_FALLBACK(cnv) && (entry=(int32_t)ucnv_MBCSGetFallback(&cnv->sharedData->mbcs, off… in ucnv_MBCSToUnicodeWithOffsets()
2719 } else if(UCNV_TO_U_USE_FALLBACK(cnv) ? c<=0xdfff : c<=0xdbff) { in ucnv_MBCSToUnicodeWithOffsets()
2733 cnv->UCharErrorBuffer[0]=unicodeCodeUnits[offset]; in ucnv_MBCSToUnicodeWithOffsets()
2734 cnv->UCharErrorBufferLength=1; in ucnv_MBCSToUnicodeWithOffsets()
2740 } else if(UCNV_TO_U_USE_FALLBACK(cnv) ? (c&0xfffe)==0xe000 : c==0xe000) { in ucnv_MBCSToUnicodeWithOffsets()
2752 (action==MBCS_STATE_FALLBACK_DIRECT_20 && UCNV_TO_U_USE_FALLBACK(cnv)) in ucnv_MBCSToUnicodeWithOffsets()
2769 cnv->UCharErrorBuffer[0]=c; in ucnv_MBCSToUnicodeWithOffsets()
2770 cnv->UCharErrorBufferLength=1; in ucnv_MBCSToUnicodeWithOffsets()
2784 if(cnv->sharedData->mbcs.dbcsOnlyState==0) { in ucnv_MBCSToUnicodeWithOffsets()
2788 state=(uint8_t)(cnv->mode); /* restore the previous state */ in ucnv_MBCSToUnicodeWithOffsets()
2794 if(UCNV_TO_U_USE_FALLBACK(cnv)) { in ucnv_MBCSToUnicodeWithOffsets()
2826 UBool isDBCSOnly=(UBool)(cnv->sharedData->mbcs.dbcsOnlyState!=0); in ucnv_MBCSToUnicodeWithOffsets()
2840 cnv->preToULength=(int8_t)(bytesFromThisBuffer-backOutDistance); in ucnv_MBCSToUnicodeWithOffsets()
2842 uprv_memcpy(cnv->preToU, bytes+i, -cnv->preToULength); in ucnv_MBCSToUnicodeWithOffsets()
2851 byteIndex=_extToU(cnv, cnv->sharedData, in ucnv_MBCSToUnicodeWithOffsets()
2867 cnv->toUnicodeStatus=offset; in ucnv_MBCSToUnicodeWithOffsets()
2868 cnv->mode=state; in ucnv_MBCSToUnicodeWithOffsets()
2869 cnv->toULength=byteIndex; in ucnv_MBCSToUnicodeWithOffsets()
2884 UConverter *cnv; in ucnv_MBCSSingleGetNextUChar() local
2892 cnv=pArgs->converter; in ucnv_MBCSSingleGetNextUChar()
2895 if((cnv->options&UCNV_OPTION_SWAP_LFNL)!=0) { in ucnv_MBCSSingleGetNextUChar()
2896 stateTable=(const int32_t (*)[256])cnv->sharedData->mbcs.swapLFNLStateTable; in ucnv_MBCSSingleGetNextUChar()
2898 stateTable=cnv->sharedData->mbcs.stateTable; in ucnv_MBCSSingleGetNextUChar()
2920 (action==MBCS_STATE_FALLBACK_DIRECT_20 && UCNV_TO_U_USE_FALLBACK(cnv)) in ucnv_MBCSSingleGetNextUChar()
2925 if(UCNV_TO_U_USE_FALLBACK(cnv)) { in ucnv_MBCSSingleGetNextUChar()
2969 UConverter *cnv; in ucnv_MBCSGetNextUChar() local
2983 cnv=pArgs->converter; in ucnv_MBCSGetNextUChar()
2985 if(cnv->preToULength>0) { in ucnv_MBCSGetNextUChar()
2990 if(cnv->sharedData->mbcs.unicodeMask&UCNV_HAS_SURROGATES) { in ucnv_MBCSGetNextUChar()
2997 } else if(cnv->sharedData->mbcs.countStates==1) { in ucnv_MBCSGetNextUChar()
3005 if((cnv->options&UCNV_OPTION_SWAP_LFNL)!=0) { in ucnv_MBCSGetNextUChar()
3006 stateTable=(const int32_t (*)[256])cnv->sharedData->mbcs.swapLFNLStateTable; in ucnv_MBCSGetNextUChar()
3008 stateTable=cnv->sharedData->mbcs.stateTable; in ucnv_MBCSGetNextUChar()
3010 unicodeCodeUnits=cnv->sharedData->mbcs.unicodeCodeUnits; in ucnv_MBCSGetNextUChar()
3013 offset=cnv->toUnicodeStatus; in ucnv_MBCSGetNextUChar()
3020 if((state=(uint8_t)(cnv->mode))==0) { in ucnv_MBCSGetNextUChar()
3021 state=cnv->sharedData->mbcs.dbcsOnlyState; in ucnv_MBCSGetNextUChar()
3045 cnv->mode=state; in ucnv_MBCSGetNextUChar()
3066 …if(UCNV_TO_U_USE_FALLBACK(cnv) && (c=ucnv_MBCSGetFallback(&cnv->sharedData->mbcs, offset))!=0xfffe… in ucnv_MBCSGetNextUChar()
3079 } else if(UCNV_TO_U_USE_FALLBACK(cnv) ? c<=0xdfff : c<=0xdbff) { in ucnv_MBCSGetNextUChar()
3083 } else if(UCNV_TO_U_USE_FALLBACK(cnv) ? (c&0xfffe)==0xe000 : c==0xe000) { in ucnv_MBCSGetNextUChar()
3092 (action==MBCS_STATE_FALLBACK_DIRECT_20 && UCNV_TO_U_USE_FALLBACK(cnv)) in ucnv_MBCSGetNextUChar()
3105 if(cnv->sharedData->mbcs.dbcsOnlyState!=0) { in ucnv_MBCSGetNextUChar()
3107 state=(uint8_t)(cnv->mode); /* restore the previous state */ in ucnv_MBCSGetNextUChar()
3113 if(UCNV_TO_U_USE_FALLBACK(cnv)) { in ucnv_MBCSGetNextUChar()
3138 cnv->toUnicodeStatus=0; in ucnv_MBCSGetNextUChar()
3139 cnv->mode=state; in ucnv_MBCSGetNextUChar()
3149 uint8_t *bytes=cnv->toUBytes; in ucnv_MBCSGetNextUChar()
3150 cnv->toULength=(int8_t)(source-lastSource); in ucnv_MBCSGetNextUChar()
3163 UBool isDBCSOnly=(UBool)(cnv->sharedData->mbcs.dbcsOnlyState!=0); in ucnv_MBCSGetNextUChar()
3164 uint8_t *bytes=cnv->toUBytes; in ucnv_MBCSGetNextUChar()
3167 cnv->toULength=1; in ucnv_MBCSGetNextUChar()
3176 cnv->toULength=i; in ucnv_MBCSGetNextUChar()
3187 cnv->toUnicodeStatus=0; in ucnv_MBCSGetNextUChar()
3188 cnv->mode=state; in ucnv_MBCSGetNextUChar()
3327 } else if(UCNV_TO_U_USE_FALLBACK(cnv)) { in ucnv_MBCSSimpleGetNextUChar()
3341 } else if(UCNV_TO_U_USE_FALLBACK(cnv) ? c<=0xdfff : c<=0xdbff) { in ucnv_MBCSSimpleGetNextUChar()
3344 } else if(UCNV_TO_U_USE_FALLBACK(cnv) ? (c&0xfffe)==0xe000 : c==0xe000) { in ucnv_MBCSSimpleGetNextUChar()
3408 UConverter *cnv; in ucnv_MBCSDoubleFromUnicodeWithOffsets() local
3428 cnv=pArgs->converter; in ucnv_MBCSDoubleFromUnicodeWithOffsets()
3429 unicodeMask=cnv->sharedData->mbcs.unicodeMask; in ucnv_MBCSDoubleFromUnicodeWithOffsets()
3438 table=cnv->sharedData->mbcs.fromUnicodeTable; in ucnv_MBCSDoubleFromUnicodeWithOffsets()
3439 mbcsIndex=cnv->sharedData->mbcs.mbcsIndex; in ucnv_MBCSDoubleFromUnicodeWithOffsets()
3440 if((cnv->options&UCNV_OPTION_SWAP_LFNL)!=0) { in ucnv_MBCSDoubleFromUnicodeWithOffsets()
3441 bytes=cnv->sharedData->mbcs.swapLFNLFromUnicodeBytes; in ucnv_MBCSDoubleFromUnicodeWithOffsets()
3443 bytes=cnv->sharedData->mbcs.fromUnicodeBytes; in ucnv_MBCSDoubleFromUnicodeWithOffsets()
3445 asciiRoundtrips=cnv->sharedData->mbcs.asciiRoundtrips; in ucnv_MBCSDoubleFromUnicodeWithOffsets()
3448 c=cnv->fromUChar32; in ucnv_MBCSDoubleFromUnicodeWithOffsets()
3548 (UCNV_FROM_U_USE_FALLBACK(cnv, c) && value!=0)) in ucnv_MBCSDoubleFromUnicodeWithOffsets()
3559 c=_extFromU(cnv, cnv->sharedData, in ucnv_MBCSDoubleFromUnicodeWithOffsets()
3605 cnv->charErrorBuffer[0]=(char)value; in ucnv_MBCSDoubleFromUnicodeWithOffsets()
3606 cnv->charErrorBufferLength=1; in ucnv_MBCSDoubleFromUnicodeWithOffsets()
3628 cnv->fromUChar32=c; in ucnv_MBCSDoubleFromUnicodeWithOffsets()
3640 UConverter *cnv; in ucnv_MBCSSingleFromUnicodeWithOffsets() local
3657 cnv=pArgs->converter; in ucnv_MBCSSingleFromUnicodeWithOffsets()
3664 table=cnv->sharedData->mbcs.fromUnicodeTable; in ucnv_MBCSSingleFromUnicodeWithOffsets()
3665 if((cnv->options&UCNV_OPTION_SWAP_LFNL)!=0) { in ucnv_MBCSSingleFromUnicodeWithOffsets()
3666 results=(uint16_t *)cnv->sharedData->mbcs.swapLFNLFromUnicodeBytes; in ucnv_MBCSSingleFromUnicodeWithOffsets()
3668 results=(uint16_t *)cnv->sharedData->mbcs.fromUnicodeBytes; in ucnv_MBCSSingleFromUnicodeWithOffsets()
3671 if(cnv->useFallback) { in ucnv_MBCSSingleFromUnicodeWithOffsets()
3678 hasSupplementary=(UBool)(cnv->sharedData->mbcs.unicodeMask&UCNV_HAS_SUPPLEMENTARY); in ucnv_MBCSSingleFromUnicodeWithOffsets()
3681 c=cnv->fromUChar32; in ucnv_MBCSSingleFromUnicodeWithOffsets()
3765 c=_extFromU(cnv, cnv->sharedData, in ucnv_MBCSSingleFromUnicodeWithOffsets()
3794 cnv->fromUChar32=c; in ucnv_MBCSSingleFromUnicodeWithOffsets()
3816 UConverter *cnv; in ucnv_MBCSSingleFromBMPWithOffsets() local
3833 cnv=pArgs->converter; in ucnv_MBCSSingleFromBMPWithOffsets()
3840 table=cnv->sharedData->mbcs.fromUnicodeTable; in ucnv_MBCSSingleFromBMPWithOffsets()
3841 if((cnv->options&UCNV_OPTION_SWAP_LFNL)!=0) { in ucnv_MBCSSingleFromBMPWithOffsets()
3842 results=(uint16_t *)cnv->sharedData->mbcs.swapLFNLFromUnicodeBytes; in ucnv_MBCSSingleFromBMPWithOffsets()
3844 results=(uint16_t *)cnv->sharedData->mbcs.fromUnicodeBytes; in ucnv_MBCSSingleFromBMPWithOffsets()
3846 asciiRoundtrips=cnv->sharedData->mbcs.asciiRoundtrips; in ucnv_MBCSSingleFromBMPWithOffsets()
3848 if(cnv->useFallback) { in ucnv_MBCSSingleFromBMPWithOffsets()
3857 c=cnv->fromUChar32; in ucnv_MBCSSingleFromBMPWithOffsets()
4010 c=_extFromU(cnv, cnv->sharedData, in ucnv_MBCSSingleFromBMPWithOffsets()
4062 cnv->fromUChar32=c; in ucnv_MBCSSingleFromBMPWithOffsets()
4073 UConverter *cnv; in ucnv_MBCSFromUnicodeWithOffsets() local
4098 cnv=pArgs->converter; in ucnv_MBCSFromUnicodeWithOffsets()
4100 if(cnv->preFromUFirstCP>=0) { in ucnv_MBCSFromUnicodeWithOffsets()
4105 ucnv_extContinueMatchFromU(cnv, pArgs, -1, pErrorCode); in ucnv_MBCSFromUnicodeWithOffsets()
4107 if(U_FAILURE(*pErrorCode) || cnv->preFromULength<0) { in ucnv_MBCSFromUnicodeWithOffsets()
4113 outputType=cnv->sharedData->mbcs.outputType; in ucnv_MBCSFromUnicodeWithOffsets()
4114 unicodeMask=cnv->sharedData->mbcs.unicodeMask; in ucnv_MBCSFromUnicodeWithOffsets()
4122 } else if(outputType==MBCS_OUTPUT_2 && cnv->sharedData->mbcs.utf8Friendly) { in ucnv_MBCSFromUnicodeWithOffsets()
4134 table=cnv->sharedData->mbcs.fromUnicodeTable; in ucnv_MBCSFromUnicodeWithOffsets()
4135 if(cnv->sharedData->mbcs.utf8Friendly) { in ucnv_MBCSFromUnicodeWithOffsets()
4136 mbcsIndex=cnv->sharedData->mbcs.mbcsIndex; in ucnv_MBCSFromUnicodeWithOffsets()
4140 if((cnv->options&UCNV_OPTION_SWAP_LFNL)!=0) { in ucnv_MBCSFromUnicodeWithOffsets()
4141 bytes=cnv->sharedData->mbcs.swapLFNLFromUnicodeBytes; in ucnv_MBCSFromUnicodeWithOffsets()
4143 bytes=cnv->sharedData->mbcs.fromUnicodeBytes; in ucnv_MBCSFromUnicodeWithOffsets()
4145 asciiRoundtrips=cnv->sharedData->mbcs.asciiRoundtrips; in ucnv_MBCSFromUnicodeWithOffsets()
4148 c=cnv->fromUChar32; in ucnv_MBCSFromUnicodeWithOffsets()
4151 prevLength=cnv->fromUnicodeStatus; in ucnv_MBCSFromUnicodeWithOffsets()
4167 siLength = static_cast<uint8_t>(getSISOBytes(SI, cnv->options, siBytes)); in ucnv_MBCSFromUnicodeWithOffsets()
4168 soLength = static_cast<uint8_t>(getSISOBytes(SO, cnv->options, soBytes)); in ucnv_MBCSFromUnicodeWithOffsets()
4250 cnv->fromUnicodeStatus=prevLength; /* save the old state */ in ucnv_MBCSFromUnicodeWithOffsets()
4400 cnv->fromUnicodeStatus=prevLength; /* save the old state */ in ucnv_MBCSFromUnicodeWithOffsets()
4481 cnv->fromUnicodeStatus=prevLength; /* save the old state */ in ucnv_MBCSFromUnicodeWithOffsets()
4601 (UCNV_FROM_U_USE_FALLBACK(cnv, c) && value!=0)) in ucnv_MBCSFromUnicodeWithOffsets()
4612 c=_extFromU(cnv, cnv->sharedData, in ucnv_MBCSFromUnicodeWithOffsets()
4619 prevLength=cnv->fromUnicodeStatus; /* restore SISO state */ in ucnv_MBCSFromUnicodeWithOffsets()
4698 charErrorBuffer=(uint8_t *)cnv->charErrorBuffer; in ucnv_MBCSFromUnicodeWithOffsets()
4714 cnv->charErrorBufferLength=(int8_t)length; in ucnv_MBCSFromUnicodeWithOffsets()
4783 cnv->charErrorBuffer[0]=(uint8_t)siBytes[1]; in ucnv_MBCSFromUnicodeWithOffsets()
4784 cnv->charErrorBufferLength=1; in ucnv_MBCSFromUnicodeWithOffsets()
4796 cnv->charErrorBuffer[0]=(uint8_t)siBytes[0]; in ucnv_MBCSFromUnicodeWithOffsets()
4798 cnv->charErrorBuffer[1]=(uint8_t)siBytes[1]; in ucnv_MBCSFromUnicodeWithOffsets()
4800 cnv->charErrorBufferLength=siLength; in ucnv_MBCSFromUnicodeWithOffsets()
4807 cnv->fromUChar32=c; in ucnv_MBCSFromUnicodeWithOffsets()
4808 cnv->fromUnicodeStatus=prevLength; in ucnv_MBCSFromUnicodeWithOffsets()
5023 UConverter *utf8, *cnv; in ucnv_SBCSFromUTF8() local
5042 cnv=pFromUArgs->converter; in ucnv_SBCSFromUTF8()
5048 table=cnv->sharedData->mbcs.fromUnicodeTable; in ucnv_SBCSFromUTF8()
5049 sbcsIndex=cnv->sharedData->mbcs.sbcsIndex; in ucnv_SBCSFromUTF8()
5050 if((cnv->options&UCNV_OPTION_SWAP_LFNL)!=0) { in ucnv_SBCSFromUTF8()
5051 results=(uint16_t *)cnv->sharedData->mbcs.swapLFNLFromUnicodeBytes; in ucnv_SBCSFromUTF8()
5053 results=(uint16_t *)cnv->sharedData->mbcs.fromUnicodeBytes; in ucnv_SBCSFromUTF8()
5055 asciiRoundtrips=cnv->sharedData->mbcs.asciiRoundtrips; in ucnv_SBCSFromUTF8()
5057 if(cnv->useFallback) { in ucnv_SBCSFromUTF8()
5064 hasSupplementary=(UBool)(cnv->sharedData->mbcs.unicodeMask&UCNV_HAS_SUPPLEMENTARY); in ucnv_SBCSFromUTF8()
5262 c=_extFromU(cnv, cnv->sharedData, in ucnv_SBCSFromUTF8()
5271 cnv->fromUChar32=c; in ucnv_SBCSFromUTF8()
5273 } else if(cnv->preFromUFirstCP>=0) { in ucnv_SBCSFromUTF8()
5302 cnv->preFromUFirstCP<0 && in ucnv_SBCSFromUTF8()
5325 UConverter *utf8, *cnv; in ucnv_DBCSFromUTF8() local
5345 cnv=pFromUArgs->converter; in ucnv_DBCSFromUTF8()
5351 table=cnv->sharedData->mbcs.fromUnicodeTable; in ucnv_DBCSFromUTF8()
5352 mbcsIndex=cnv->sharedData->mbcs.mbcsIndex; in ucnv_DBCSFromUTF8()
5353 if((cnv->options&UCNV_OPTION_SWAP_LFNL)!=0) { in ucnv_DBCSFromUTF8()
5354 results=(uint16_t *)cnv->sharedData->mbcs.swapLFNLFromUnicodeBytes; in ucnv_DBCSFromUTF8()
5356 results=(uint16_t *)cnv->sharedData->mbcs.fromUnicodeBytes; in ucnv_DBCSFromUTF8()
5358 asciiRoundtrips=cnv->sharedData->mbcs.asciiRoundtrips; in ucnv_DBCSFromUTF8()
5360 hasSupplementary=(UBool)(cnv->sharedData->mbcs.unicodeMask&UCNV_HAS_SUPPLEMENTARY); in ucnv_DBCSFromUTF8()
5526 (UCNV_FROM_U_USE_FALLBACK(cnv, c) && value!=0)) in ucnv_DBCSFromUTF8()
5545 cnv->charErrorBuffer[0]=(char)value; in ucnv_DBCSFromUTF8()
5546 cnv->charErrorBufferLength=1; in ucnv_DBCSFromUTF8()
5565 c=_extFromU(cnv, cnv->sharedData, in ucnv_DBCSFromUTF8()
5574 cnv->fromUChar32=c; in ucnv_DBCSFromUTF8()
5576 } else if(cnv->preFromUFirstCP>=0) { in ucnv_DBCSFromUTF8()
5606 cnv->preFromUFirstCP<0 && in ucnv_DBCSFromUTF8()
5628 ucnv_MBCSGetStarters(const UConverter* cnv, in ucnv_MBCSGetStarters() argument
5634 state0=cnv->sharedData->mbcs.stateTable[cnv->sharedData->mbcs.dbcsOnlyState]; in ucnv_MBCSGetStarters()
5654 UConverter *cnv=pArgs->converter; in ucnv_MBCSWriteSub() local
5660 if( cnv->subChar1!=0 && in ucnv_MBCSWriteSub()
5661 (cnv->sharedData->mbcs.extIndexes!=NULL ? in ucnv_MBCSWriteSub()
5662 cnv->useSubChar1 : in ucnv_MBCSWriteSub()
5663 (cnv->invalidUCharBuffer[0]<=0xff)) in ucnv_MBCSWriteSub()
5666 subchar=(char *)&cnv->subChar1; in ucnv_MBCSWriteSub()
5670 subchar=(char *)cnv->subChars; in ucnv_MBCSWriteSub()
5671 length=cnv->subCharLen; in ucnv_MBCSWriteSub()
5675 cnv->useSubChar1=FALSE; in ucnv_MBCSWriteSub()
5677 if (cnv->sharedData->mbcs.outputType == MBCS_OUTPUT_2_SISO) { in ucnv_MBCSWriteSub()
5683 if(cnv->fromUnicodeStatus==2) { in ucnv_MBCSWriteSub()
5685 cnv->fromUnicodeStatus=1; in ucnv_MBCSWriteSub()
5691 if(cnv->fromUnicodeStatus<=1) { in ucnv_MBCSWriteSub()
5693 cnv->fromUnicodeStatus=2; in ucnv_MBCSWriteSub()