Lines Matching refs:sharedData
379 ucnv_MBCSLoad(UConverterSharedData *sharedData,
385 ucnv_MBCSUnload(UConverterSharedData *sharedData);
849 ucnv_MBCSGetFilteredUnicodeSetForUnicode(const UConverterSharedData *sharedData, in ucnv_MBCSGetFilteredUnicodeSetForUnicode() argument
863 mbcsTable=&sharedData->mbcs; in ucnv_MBCSGetFilteredUnicodeSetForUnicode()
1051 ucnv_extGetUnicodeSet(sharedData, sa, which, filter, pErrorCode); in ucnv_MBCSGetFilteredUnicodeSetForUnicode()
1055 ucnv_MBCSGetUnicodeSetForUnicode(const UConverterSharedData *sharedData, in ucnv_MBCSGetUnicodeSetForUnicode() argument
1060 sharedData, sa, which, in ucnv_MBCSGetUnicodeSetForUnicode()
1061 sharedData->mbcs.outputType==MBCS_OUTPUT_DBCS_ONLY ? in ucnv_MBCSGetUnicodeSetForUnicode()
1076 ucnv_MBCSGetUnicodeSetForUnicode(cnv->sharedData, sa, which, pErrorCode); in ucnv_MBCSGetUnicodeSet()
1098 _extFromU(UConverter *cnv, const UConverterSharedData *sharedData, in _extFromU() argument
1109 if( (cx=sharedData->mbcs.extIndexes)!=NULL && in _extFromU()
1165 _extToU(UConverter *cnv, const UConverterSharedData *sharedData, in _extToU() argument
1174 if( (cx=sharedData->mbcs.extIndexes)!=NULL && in _extToU()
1251 _EBCDICSwapLFNL(UConverterSharedData *sharedData, UErrorCode *pErrorCode) { in _EBCDICSwapLFNL() argument
1265 mbcsTable=&sharedData->mbcs; in _EBCDICSwapLFNL()
1375 uprv_strcpy(name, sharedData->staticData->name); in _EBCDICSwapLFNL()
1548 ucnv_MBCSLoad(UConverterSharedData *sharedData, in ucnv_MBCSLoad() argument
1553 UConverterMBCSTable *mbcsTable=&sharedData->mbcs; in ucnv_MBCSLoad()
1603 if(0==uprv_strcmp(baseName, sharedData->staticData->name)) { in ucnv_MBCSLoad()
1667 if( sharedData->staticData->conversionType==UCNV_DBCS || in ucnv_MBCSLoad()
1668 (sharedData->staticData->conversionType==UCNV_MBCS && in ucnv_MBCSLoad()
1669 sharedData->staticData->minBytesPerChar>=2) in ucnv_MBCSLoad()
1777 udata_getInfo((UDataMemory *)sharedData->dataMemory, &info); in ucnv_MBCSLoad()
1780 mbcsTable->unicodeMask=(uint8_t)(sharedData->staticData->unicodeMask&3); in ucnv_MBCSLoad()
1855 sharedData->impl=&_SBCSUTF8Impl; in ucnv_MBCSLoad()
1858 sharedData->impl=&_DBCSUTF8Impl; in ucnv_MBCSLoad()
1873 ucnv_MBCSUnload(UConverterSharedData *sharedData) { in ucnv_MBCSUnload() argument
1874 UConverterMBCSTable *mbcsTable=&sharedData->mbcs; in ucnv_MBCSUnload()
1903 mbcsTable=&cnv->sharedData->mbcs; in ucnv_MBCSOpen()
1920 if(!_EBCDICSwapLFNL(cnv->sharedData, pErrorCode)) { in ucnv_MBCSOpen()
1983 if((cnv->options&UCNV_OPTION_SWAP_LFNL)!=0 && cnv->sharedData->mbcs.swapLFNLName!=NULL) { in ucnv_MBCSGetName()
1984 return cnv->sharedData->mbcs.swapLFNLName; in ucnv_MBCSGetName()
1986 return cnv->sharedData->staticData->name; in ucnv_MBCSGetName()
2047 stateTable=(const int32_t (*)[256])cnv->sharedData->mbcs.swapLFNLStateTable; in ucnv_MBCSSingleToUnicodeWithOffsets()
2049 stateTable=cnv->sharedData->mbcs.stateTable; in ucnv_MBCSSingleToUnicodeWithOffsets()
2146 cnv->toULength=_extToU(cnv, cnv->sharedData, in ucnv_MBCSSingleToUnicodeWithOffsets()
2198 stateTable=(const int32_t (*)[256])cnv->sharedData->mbcs.swapLFNLStateTable; in ucnv_MBCSSingleToBMPWithOffsets()
2200 stateTable=cnv->sharedData->mbcs.stateTable; in ucnv_MBCSSingleToBMPWithOffsets()
2347 cnv->toULength=_extToU(cnv, cnv->sharedData, in ucnv_MBCSSingleToBMPWithOffsets()
2491 if(cnv->sharedData->mbcs.countStates==1) { in ucnv_MBCSToUnicodeWithOffsets()
2492 if(!(cnv->sharedData->mbcs.unicodeMask&UCNV_HAS_SUPPLEMENTARY)) { in ucnv_MBCSToUnicodeWithOffsets()
2508 stateTable=(const int32_t (*)[256])cnv->sharedData->mbcs.swapLFNLStateTable; in ucnv_MBCSToUnicodeWithOffsets()
2510 stateTable=cnv->sharedData->mbcs.stateTable; in ucnv_MBCSToUnicodeWithOffsets()
2512 unicodeCodeUnits=cnv->sharedData->mbcs.unicodeCodeUnits; in ucnv_MBCSToUnicodeWithOffsets()
2525 state=cnv->sharedData->mbcs.dbcsOnlyState; in ucnv_MBCSToUnicodeWithOffsets()
2679 …V_TO_U_USE_FALLBACK(cnv) && (entry=(int32_t)ucnv_MBCSGetFallback(&cnv->sharedData->mbcs, offset))!… in ucnv_MBCSToUnicodeWithOffsets()
2773 if(cnv->sharedData->mbcs.dbcsOnlyState==0) { in ucnv_MBCSToUnicodeWithOffsets()
2815 UBool isDBCSOnly=(UBool)(cnv->sharedData->mbcs.dbcsOnlyState!=0); in ucnv_MBCSToUnicodeWithOffsets()
2840 byteIndex=_extToU(cnv, cnv->sharedData, in ucnv_MBCSToUnicodeWithOffsets()
2885 stateTable=(const int32_t (*)[256])cnv->sharedData->mbcs.swapLFNLStateTable; in ucnv_MBCSSingleGetNextUChar()
2887 stateTable=cnv->sharedData->mbcs.stateTable; in ucnv_MBCSSingleGetNextUChar()
2979 if(cnv->sharedData->mbcs.unicodeMask&UCNV_HAS_SURROGATES) { in ucnv_MBCSGetNextUChar()
2986 } else if(cnv->sharedData->mbcs.countStates==1) { in ucnv_MBCSGetNextUChar()
2995 stateTable=(const int32_t (*)[256])cnv->sharedData->mbcs.swapLFNLStateTable; in ucnv_MBCSGetNextUChar()
2997 stateTable=cnv->sharedData->mbcs.stateTable; in ucnv_MBCSGetNextUChar()
2999 unicodeCodeUnits=cnv->sharedData->mbcs.unicodeCodeUnits; in ucnv_MBCSGetNextUChar()
3010 state=cnv->sharedData->mbcs.dbcsOnlyState; in ucnv_MBCSGetNextUChar()
3055 …if(UCNV_TO_U_USE_FALLBACK(cnv) && (c=ucnv_MBCSGetFallback(&cnv->sharedData->mbcs, offset))!=0xfffe… in ucnv_MBCSGetNextUChar()
3094 if(cnv->sharedData->mbcs.dbcsOnlyState!=0) { in ucnv_MBCSGetNextUChar()
3152 UBool isDBCSOnly=(UBool)(cnv->sharedData->mbcs.dbcsOnlyState!=0); in ucnv_MBCSGetNextUChar()
3195 ucnv_MBCSSingleSimpleGetNextUChar(UConverterSharedData *sharedData,
3200 entry=sharedData->mbcs.stateTable[0][b];
3253 ucnv_MBCSSimpleGetNextUChar(UConverterSharedData *sharedData, in ucnv_MBCSSimpleGetNextUChar() argument
3278 if(sharedData->mbcs.countStates==1) { in ucnv_MBCSSimpleGetNextUChar()
3280 return ucnv_MBCSSingleSimpleGetNextUChar(sharedData, (uint8_t)*source, useFallback); in ucnv_MBCSSimpleGetNextUChar()
3288 stateTable=sharedData->mbcs.stateTable; in ucnv_MBCSSimpleGetNextUChar()
3289 unicodeCodeUnits=sharedData->mbcs.unicodeCodeUnits; in ucnv_MBCSSimpleGetNextUChar()
3293 state=sharedData->mbcs.dbcsOnlyState; in ucnv_MBCSSimpleGetNextUChar()
3317 c=ucnv_MBCSGetFallback(&sharedData->mbcs, offset); in ucnv_MBCSSimpleGetNextUChar()
3382 const int32_t *cx=sharedData->mbcs.extIndexes; in ucnv_MBCSSimpleGetNextUChar()
3418 unicodeMask=cnv->sharedData->mbcs.unicodeMask; in ucnv_MBCSDoubleFromUnicodeWithOffsets()
3427 table=cnv->sharedData->mbcs.fromUnicodeTable; in ucnv_MBCSDoubleFromUnicodeWithOffsets()
3428 mbcsIndex=cnv->sharedData->mbcs.mbcsIndex; in ucnv_MBCSDoubleFromUnicodeWithOffsets()
3430 bytes=cnv->sharedData->mbcs.swapLFNLFromUnicodeBytes; in ucnv_MBCSDoubleFromUnicodeWithOffsets()
3432 bytes=cnv->sharedData->mbcs.fromUnicodeBytes; in ucnv_MBCSDoubleFromUnicodeWithOffsets()
3434 asciiRoundtrips=cnv->sharedData->mbcs.asciiRoundtrips; in ucnv_MBCSDoubleFromUnicodeWithOffsets()
3548 c=_extFromU(cnv, cnv->sharedData, in ucnv_MBCSDoubleFromUnicodeWithOffsets()
3653 table=cnv->sharedData->mbcs.fromUnicodeTable; in ucnv_MBCSSingleFromUnicodeWithOffsets()
3655 results=(uint16_t *)cnv->sharedData->mbcs.swapLFNLFromUnicodeBytes; in ucnv_MBCSSingleFromUnicodeWithOffsets()
3657 results=(uint16_t *)cnv->sharedData->mbcs.fromUnicodeBytes; in ucnv_MBCSSingleFromUnicodeWithOffsets()
3667 hasSupplementary=(UBool)(cnv->sharedData->mbcs.unicodeMask&UCNV_HAS_SUPPLEMENTARY); in ucnv_MBCSSingleFromUnicodeWithOffsets()
3754 c=_extFromU(cnv, cnv->sharedData, in ucnv_MBCSSingleFromUnicodeWithOffsets()
3829 table=cnv->sharedData->mbcs.fromUnicodeTable; in ucnv_MBCSSingleFromBMPWithOffsets()
3831 results=(uint16_t *)cnv->sharedData->mbcs.swapLFNLFromUnicodeBytes; in ucnv_MBCSSingleFromBMPWithOffsets()
3833 results=(uint16_t *)cnv->sharedData->mbcs.fromUnicodeBytes; in ucnv_MBCSSingleFromBMPWithOffsets()
3835 asciiRoundtrips=cnv->sharedData->mbcs.asciiRoundtrips; in ucnv_MBCSSingleFromBMPWithOffsets()
3999 c=_extFromU(cnv, cnv->sharedData, in ucnv_MBCSSingleFromBMPWithOffsets()
4102 outputType=cnv->sharedData->mbcs.outputType; in ucnv_MBCSFromUnicodeWithOffsets()
4103 unicodeMask=cnv->sharedData->mbcs.unicodeMask; in ucnv_MBCSFromUnicodeWithOffsets()
4111 } else if(outputType==MBCS_OUTPUT_2 && cnv->sharedData->mbcs.utf8Friendly) { in ucnv_MBCSFromUnicodeWithOffsets()
4123 table=cnv->sharedData->mbcs.fromUnicodeTable; in ucnv_MBCSFromUnicodeWithOffsets()
4124 if(cnv->sharedData->mbcs.utf8Friendly) { in ucnv_MBCSFromUnicodeWithOffsets()
4125 mbcsIndex=cnv->sharedData->mbcs.mbcsIndex; in ucnv_MBCSFromUnicodeWithOffsets()
4130 bytes=cnv->sharedData->mbcs.swapLFNLFromUnicodeBytes; in ucnv_MBCSFromUnicodeWithOffsets()
4132 bytes=cnv->sharedData->mbcs.fromUnicodeBytes; in ucnv_MBCSFromUnicodeWithOffsets()
4134 asciiRoundtrips=cnv->sharedData->mbcs.asciiRoundtrips; in ucnv_MBCSFromUnicodeWithOffsets()
4601 c=_extFromU(cnv, cnv->sharedData, in ucnv_MBCSFromUnicodeWithOffsets()
4809 ucnv_MBCSFromUChar32(UConverterSharedData *sharedData, in ucnv_MBCSFromUChar32() argument
4823 if(c<=0xffff || (sharedData->mbcs.unicodeMask&UCNV_HAS_SUPPLEMENTARY)) { in ucnv_MBCSFromUChar32()
4824 table=sharedData->mbcs.fromUnicodeTable; in ucnv_MBCSFromUChar32()
4827 if(sharedData->mbcs.outputType==MBCS_OUTPUT_1) { in ucnv_MBCSFromUChar32()
4828 … value=MBCS_SINGLE_RESULT_FROM_U(table, (uint16_t *)sharedData->mbcs.fromUnicodeBytes, c); in ucnv_MBCSFromUChar32()
4838 switch(sharedData->mbcs.outputType) { in ucnv_MBCSFromUChar32()
4840 value=MBCS_VALUE_2_FROM_STAGE_2(sharedData->mbcs.fromUnicodeBytes, stage2Entry, c); in ucnv_MBCSFromUChar32()
4851 value=MBCS_VALUE_2_FROM_STAGE_2(sharedData->mbcs.fromUnicodeBytes, stage2Entry, c); in ucnv_MBCSFromUChar32()
4861 p=MBCS_POINTER_3_FROM_STAGE_2(sharedData->mbcs.fromUnicodeBytes, stage2Entry, c); in ucnv_MBCSFromUChar32()
4872 value=MBCS_VALUE_4_FROM_STAGE_2(sharedData->mbcs.fromUnicodeBytes, stage2Entry, c); in ucnv_MBCSFromUChar32()
4884 value=MBCS_VALUE_2_FROM_STAGE_2(sharedData->mbcs.fromUnicodeBytes, stage2Entry, c); in ucnv_MBCSFromUChar32()
4899 p=MBCS_POINTER_3_FROM_STAGE_2(sharedData->mbcs.fromUnicodeBytes, stage2Entry, c); in ucnv_MBCSFromUChar32()
4938 cx=sharedData->mbcs.extIndexes; in ucnv_MBCSFromUChar32()
4963 ucnv_MBCSSingleFromUChar32(UConverterSharedData *sharedData,
4970 if(c>=0x10000 && !(sharedData->mbcs.unicodeMask&UCNV_HAS_SUPPLEMENTARY)) {
4975 table=sharedData->mbcs.fromUnicodeTable;
4978 value=MBCS_SINGLE_RESULT_FROM_U(table, (uint16_t *)sharedData->mbcs.fromUnicodeBytes, c);
5027 table=cnv->sharedData->mbcs.fromUnicodeTable; in ucnv_SBCSFromUTF8()
5028 sbcsIndex=cnv->sharedData->mbcs.sbcsIndex; in ucnv_SBCSFromUTF8()
5030 results=(uint16_t *)cnv->sharedData->mbcs.swapLFNLFromUnicodeBytes; in ucnv_SBCSFromUTF8()
5032 results=(uint16_t *)cnv->sharedData->mbcs.fromUnicodeBytes; in ucnv_SBCSFromUTF8()
5034 asciiRoundtrips=cnv->sharedData->mbcs.asciiRoundtrips; in ucnv_SBCSFromUTF8()
5043 hasSupplementary=(UBool)(cnv->sharedData->mbcs.unicodeMask&UCNV_HAS_SUPPLEMENTARY); in ucnv_SBCSFromUTF8()
5245 c=_extFromU(cnv, cnv->sharedData, in ucnv_SBCSFromUTF8()
5334 table=cnv->sharedData->mbcs.fromUnicodeTable; in ucnv_DBCSFromUTF8()
5335 mbcsIndex=cnv->sharedData->mbcs.mbcsIndex; in ucnv_DBCSFromUTF8()
5337 results=(uint16_t *)cnv->sharedData->mbcs.swapLFNLFromUnicodeBytes; in ucnv_DBCSFromUTF8()
5339 results=(uint16_t *)cnv->sharedData->mbcs.fromUnicodeBytes; in ucnv_DBCSFromUTF8()
5341 asciiRoundtrips=cnv->sharedData->mbcs.asciiRoundtrips; in ucnv_DBCSFromUTF8()
5343 hasSupplementary=(UBool)(cnv->sharedData->mbcs.unicodeMask&UCNV_HAS_SUPPLEMENTARY); in ucnv_DBCSFromUTF8()
5554 c=_extFromU(cnv, cnv->sharedData, in ucnv_DBCSFromUTF8()
5623 state0=cnv->sharedData->mbcs.stateTable[cnv->sharedData->mbcs.dbcsOnlyState]; in ucnv_MBCSGetStarters()
5635 ucnv_MBCSIsLeadByte(UConverterSharedData *sharedData, char byte) { in ucnv_MBCSIsLeadByte() argument
5636 return (UBool)MBCS_ENTRY_IS_TRANSITION(sharedData->mbcs.stateTable[0][(uint8_t)byte]); in ucnv_MBCSIsLeadByte()
5650 (cnv->sharedData->mbcs.extIndexes!=NULL ? in ucnv_MBCSWriteSub()
5666 if (cnv->sharedData->mbcs.outputType == MBCS_OUTPUT_2_SISO) { in ucnv_MBCSWriteSub()
5702 if(converter->sharedData->mbcs.countStates==1) { in ucnv_MBCSGetType()
5704 } else if((converter->sharedData->mbcs.outputType&0xff)==MBCS_OUTPUT_2_SISO) { in ucnv_MBCSGetType()
5706 …} else if(converter->sharedData->staticData->minBytesPerChar==2 && converter->sharedData->staticDa… in ucnv_MBCSGetType()