• Home
  • Raw
  • Download

Lines Matching refs:sharedData

709 ucnv_MBCSGetFilteredUnicodeSetForUnicode(const UConverterSharedData *sharedData,  in ucnv_MBCSGetFilteredUnicodeSetForUnicode()  argument
723 mbcsTable=&sharedData->mbcs; in ucnv_MBCSGetFilteredUnicodeSetForUnicode()
911 ucnv_extGetUnicodeSet(sharedData, sa, which, filter, pErrorCode); in ucnv_MBCSGetFilteredUnicodeSetForUnicode()
915 ucnv_MBCSGetUnicodeSetForUnicode(const UConverterSharedData *sharedData, in ucnv_MBCSGetUnicodeSetForUnicode() argument
920 sharedData, sa, which, in ucnv_MBCSGetUnicodeSetForUnicode()
921 sharedData->mbcs.outputType==MBCS_OUTPUT_DBCS_ONLY ? in ucnv_MBCSGetUnicodeSetForUnicode()
936 ucnv_MBCSGetUnicodeSetForUnicode(cnv->sharedData, sa, which, pErrorCode); in ucnv_MBCSGetUnicodeSet()
958 _extFromU(UConverter *cnv, const UConverterSharedData *sharedData, in _extFromU() argument
969 if( (cx=sharedData->mbcs.extIndexes)!=NULL && in _extFromU()
1025 _extToU(UConverter *cnv, const UConverterSharedData *sharedData, in _extToU() argument
1034 if( (cx=sharedData->mbcs.extIndexes)!=NULL && in _extToU()
1111 _EBCDICSwapLFNL(UConverterSharedData *sharedData, UErrorCode *pErrorCode) { in _EBCDICSwapLFNL() argument
1125 mbcsTable=&sharedData->mbcs; in _EBCDICSwapLFNL()
1235 uprv_strcpy(name, sharedData->staticData->name); in _EBCDICSwapLFNL()
1409 ucnv_MBCSLoad(UConverterSharedData *sharedData, in ucnv_MBCSLoad() argument
1414 UConverterMBCSTable *mbcsTable=&sharedData->mbcs; in ucnv_MBCSLoad()
1464 if(0==uprv_strcmp(baseName, sharedData->staticData->name)) { in ucnv_MBCSLoad()
1528 if( sharedData->staticData->conversionType==UCNV_DBCS || in ucnv_MBCSLoad()
1529 (sharedData->staticData->conversionType==UCNV_MBCS && in ucnv_MBCSLoad()
1530 sharedData->staticData->minBytesPerChar>=2) in ucnv_MBCSLoad()
1638 udata_getInfo((UDataMemory *)sharedData->dataMemory, &info); in ucnv_MBCSLoad()
1641 mbcsTable->unicodeMask=(uint8_t)(sharedData->staticData->unicodeMask&3); in ucnv_MBCSLoad()
1716 sharedData->impl=&_SBCSUTF8Impl; in ucnv_MBCSLoad()
1719 sharedData->impl=&_DBCSUTF8Impl; in ucnv_MBCSLoad()
1734 ucnv_MBCSUnload(UConverterSharedData *sharedData) { in ucnv_MBCSUnload() argument
1735 UConverterMBCSTable *mbcsTable=&sharedData->mbcs; in ucnv_MBCSUnload()
1764 mbcsTable=&cnv->sharedData->mbcs; in ucnv_MBCSOpen()
1781 if(!_EBCDICSwapLFNL(cnv->sharedData, pErrorCode)) { in ucnv_MBCSOpen()
1844 if((cnv->options&UCNV_OPTION_SWAP_LFNL)!=0 && cnv->sharedData->mbcs.swapLFNLName!=NULL) { in ucnv_MBCSGetName()
1845 return cnv->sharedData->mbcs.swapLFNLName; in ucnv_MBCSGetName()
1847 return cnv->sharedData->staticData->name; in ucnv_MBCSGetName()
1908 stateTable=(const int32_t (*)[256])cnv->sharedData->mbcs.swapLFNLStateTable; in ucnv_MBCSSingleToUnicodeWithOffsets()
1910 stateTable=cnv->sharedData->mbcs.stateTable; in ucnv_MBCSSingleToUnicodeWithOffsets()
2007 cnv->toULength=_extToU(cnv, cnv->sharedData, in ucnv_MBCSSingleToUnicodeWithOffsets()
2059 stateTable=(const int32_t (*)[256])cnv->sharedData->mbcs.swapLFNLStateTable; in ucnv_MBCSSingleToBMPWithOffsets()
2061 stateTable=cnv->sharedData->mbcs.stateTable; in ucnv_MBCSSingleToBMPWithOffsets()
2208 cnv->toULength=_extToU(cnv, cnv->sharedData, in ucnv_MBCSSingleToBMPWithOffsets()
2352 if(cnv->sharedData->mbcs.countStates==1) { in ucnv_MBCSToUnicodeWithOffsets()
2353 if(!(cnv->sharedData->mbcs.unicodeMask&UCNV_HAS_SUPPLEMENTARY)) { in ucnv_MBCSToUnicodeWithOffsets()
2369 stateTable=(const int32_t (*)[256])cnv->sharedData->mbcs.swapLFNLStateTable; in ucnv_MBCSToUnicodeWithOffsets()
2371 stateTable=cnv->sharedData->mbcs.stateTable; in ucnv_MBCSToUnicodeWithOffsets()
2373 unicodeCodeUnits=cnv->sharedData->mbcs.unicodeCodeUnits; in ucnv_MBCSToUnicodeWithOffsets()
2386 state=cnv->sharedData->mbcs.dbcsOnlyState; in ucnv_MBCSToUnicodeWithOffsets()
2540 …V_TO_U_USE_FALLBACK(cnv) && (entry=(int32_t)ucnv_MBCSGetFallback(&cnv->sharedData->mbcs, offset))!… in ucnv_MBCSToUnicodeWithOffsets()
2634 if(cnv->sharedData->mbcs.dbcsOnlyState==0) { in ucnv_MBCSToUnicodeWithOffsets()
2676 UBool isDBCSOnly=(UBool)(cnv->sharedData->mbcs.dbcsOnlyState!=0); in ucnv_MBCSToUnicodeWithOffsets()
2701 byteIndex=_extToU(cnv, cnv->sharedData, in ucnv_MBCSToUnicodeWithOffsets()
2746 stateTable=(const int32_t (*)[256])cnv->sharedData->mbcs.swapLFNLStateTable; in ucnv_MBCSSingleGetNextUChar()
2748 stateTable=cnv->sharedData->mbcs.stateTable; in ucnv_MBCSSingleGetNextUChar()
2840 if(cnv->sharedData->mbcs.unicodeMask&UCNV_HAS_SURROGATES) { in ucnv_MBCSGetNextUChar()
2847 } else if(cnv->sharedData->mbcs.countStates==1) { in ucnv_MBCSGetNextUChar()
2856 stateTable=(const int32_t (*)[256])cnv->sharedData->mbcs.swapLFNLStateTable; in ucnv_MBCSGetNextUChar()
2858 stateTable=cnv->sharedData->mbcs.stateTable; in ucnv_MBCSGetNextUChar()
2860 unicodeCodeUnits=cnv->sharedData->mbcs.unicodeCodeUnits; in ucnv_MBCSGetNextUChar()
2871 state=cnv->sharedData->mbcs.dbcsOnlyState; in ucnv_MBCSGetNextUChar()
2916 …if(UCNV_TO_U_USE_FALLBACK(cnv) && (c=ucnv_MBCSGetFallback(&cnv->sharedData->mbcs, offset))!=0xfffe… in ucnv_MBCSGetNextUChar()
2955 if(cnv->sharedData->mbcs.dbcsOnlyState!=0) { in ucnv_MBCSGetNextUChar()
3013 UBool isDBCSOnly=(UBool)(cnv->sharedData->mbcs.dbcsOnlyState!=0); in ucnv_MBCSGetNextUChar()
3056 ucnv_MBCSSingleSimpleGetNextUChar(UConverterSharedData *sharedData,
3061 entry=sharedData->mbcs.stateTable[0][b];
3114 ucnv_MBCSSimpleGetNextUChar(UConverterSharedData *sharedData, in ucnv_MBCSSimpleGetNextUChar() argument
3139 if(sharedData->mbcs.countStates==1) { in ucnv_MBCSSimpleGetNextUChar()
3141 return ucnv_MBCSSingleSimpleGetNextUChar(sharedData, (uint8_t)*source, useFallback); in ucnv_MBCSSimpleGetNextUChar()
3149 stateTable=sharedData->mbcs.stateTable; in ucnv_MBCSSimpleGetNextUChar()
3150 unicodeCodeUnits=sharedData->mbcs.unicodeCodeUnits; in ucnv_MBCSSimpleGetNextUChar()
3154 state=sharedData->mbcs.dbcsOnlyState; in ucnv_MBCSSimpleGetNextUChar()
3178 c=ucnv_MBCSGetFallback(&sharedData->mbcs, offset); in ucnv_MBCSSimpleGetNextUChar()
3243 const int32_t *cx=sharedData->mbcs.extIndexes; in ucnv_MBCSSimpleGetNextUChar()
3279 unicodeMask=cnv->sharedData->mbcs.unicodeMask; in ucnv_MBCSDoubleFromUnicodeWithOffsets()
3288 table=cnv->sharedData->mbcs.fromUnicodeTable; in ucnv_MBCSDoubleFromUnicodeWithOffsets()
3289 mbcsIndex=cnv->sharedData->mbcs.mbcsIndex; in ucnv_MBCSDoubleFromUnicodeWithOffsets()
3291 bytes=cnv->sharedData->mbcs.swapLFNLFromUnicodeBytes; in ucnv_MBCSDoubleFromUnicodeWithOffsets()
3293 bytes=cnv->sharedData->mbcs.fromUnicodeBytes; in ucnv_MBCSDoubleFromUnicodeWithOffsets()
3295 asciiRoundtrips=cnv->sharedData->mbcs.asciiRoundtrips; in ucnv_MBCSDoubleFromUnicodeWithOffsets()
3409 c=_extFromU(cnv, cnv->sharedData, in ucnv_MBCSDoubleFromUnicodeWithOffsets()
3514 table=cnv->sharedData->mbcs.fromUnicodeTable; in ucnv_MBCSSingleFromUnicodeWithOffsets()
3516 results=(uint16_t *)cnv->sharedData->mbcs.swapLFNLFromUnicodeBytes; in ucnv_MBCSSingleFromUnicodeWithOffsets()
3518 results=(uint16_t *)cnv->sharedData->mbcs.fromUnicodeBytes; in ucnv_MBCSSingleFromUnicodeWithOffsets()
3528 hasSupplementary=(UBool)(cnv->sharedData->mbcs.unicodeMask&UCNV_HAS_SUPPLEMENTARY); in ucnv_MBCSSingleFromUnicodeWithOffsets()
3615 c=_extFromU(cnv, cnv->sharedData, in ucnv_MBCSSingleFromUnicodeWithOffsets()
3690 table=cnv->sharedData->mbcs.fromUnicodeTable; in ucnv_MBCSSingleFromBMPWithOffsets()
3692 results=(uint16_t *)cnv->sharedData->mbcs.swapLFNLFromUnicodeBytes; in ucnv_MBCSSingleFromBMPWithOffsets()
3694 results=(uint16_t *)cnv->sharedData->mbcs.fromUnicodeBytes; in ucnv_MBCSSingleFromBMPWithOffsets()
3696 asciiRoundtrips=cnv->sharedData->mbcs.asciiRoundtrips; in ucnv_MBCSSingleFromBMPWithOffsets()
3860 c=_extFromU(cnv, cnv->sharedData, in ucnv_MBCSSingleFromBMPWithOffsets()
3960 outputType=cnv->sharedData->mbcs.outputType; in ucnv_MBCSFromUnicodeWithOffsets()
3961 unicodeMask=cnv->sharedData->mbcs.unicodeMask; in ucnv_MBCSFromUnicodeWithOffsets()
3969 } else if(outputType==MBCS_OUTPUT_2 && cnv->sharedData->mbcs.utf8Friendly) { in ucnv_MBCSFromUnicodeWithOffsets()
3981 table=cnv->sharedData->mbcs.fromUnicodeTable; in ucnv_MBCSFromUnicodeWithOffsets()
3982 if(cnv->sharedData->mbcs.utf8Friendly) { in ucnv_MBCSFromUnicodeWithOffsets()
3983 mbcsIndex=cnv->sharedData->mbcs.mbcsIndex; in ucnv_MBCSFromUnicodeWithOffsets()
3988 bytes=cnv->sharedData->mbcs.swapLFNLFromUnicodeBytes; in ucnv_MBCSFromUnicodeWithOffsets()
3990 bytes=cnv->sharedData->mbcs.fromUnicodeBytes; in ucnv_MBCSFromUnicodeWithOffsets()
3992 asciiRoundtrips=cnv->sharedData->mbcs.asciiRoundtrips; in ucnv_MBCSFromUnicodeWithOffsets()
4459 c=_extFromU(cnv, cnv->sharedData, in ucnv_MBCSFromUnicodeWithOffsets()
4667 ucnv_MBCSFromUChar32(UConverterSharedData *sharedData, in ucnv_MBCSFromUChar32() argument
4681 if(c<=0xffff || (sharedData->mbcs.unicodeMask&UCNV_HAS_SUPPLEMENTARY)) { in ucnv_MBCSFromUChar32()
4682 table=sharedData->mbcs.fromUnicodeTable; in ucnv_MBCSFromUChar32()
4685 if(sharedData->mbcs.outputType==MBCS_OUTPUT_1) { in ucnv_MBCSFromUChar32()
4686 … value=MBCS_SINGLE_RESULT_FROM_U(table, (uint16_t *)sharedData->mbcs.fromUnicodeBytes, c); in ucnv_MBCSFromUChar32()
4696 switch(sharedData->mbcs.outputType) { in ucnv_MBCSFromUChar32()
4698 value=MBCS_VALUE_2_FROM_STAGE_2(sharedData->mbcs.fromUnicodeBytes, stage2Entry, c); in ucnv_MBCSFromUChar32()
4709 value=MBCS_VALUE_2_FROM_STAGE_2(sharedData->mbcs.fromUnicodeBytes, stage2Entry, c); in ucnv_MBCSFromUChar32()
4719 p=MBCS_POINTER_3_FROM_STAGE_2(sharedData->mbcs.fromUnicodeBytes, stage2Entry, c); in ucnv_MBCSFromUChar32()
4730 value=MBCS_VALUE_4_FROM_STAGE_2(sharedData->mbcs.fromUnicodeBytes, stage2Entry, c); in ucnv_MBCSFromUChar32()
4742 value=MBCS_VALUE_2_FROM_STAGE_2(sharedData->mbcs.fromUnicodeBytes, stage2Entry, c); in ucnv_MBCSFromUChar32()
4757 p=MBCS_POINTER_3_FROM_STAGE_2(sharedData->mbcs.fromUnicodeBytes, stage2Entry, c); in ucnv_MBCSFromUChar32()
4796 cx=sharedData->mbcs.extIndexes; in ucnv_MBCSFromUChar32()
4821 ucnv_MBCSSingleFromUChar32(UConverterSharedData *sharedData,
4828 if(c>=0x10000 && !(sharedData->mbcs.unicodeMask&UCNV_HAS_SUPPLEMENTARY)) {
4833 table=sharedData->mbcs.fromUnicodeTable;
4836 value=MBCS_SINGLE_RESULT_FROM_U(table, (uint16_t *)sharedData->mbcs.fromUnicodeBytes, c);
4885 table=cnv->sharedData->mbcs.fromUnicodeTable; in ucnv_SBCSFromUTF8()
4886 sbcsIndex=cnv->sharedData->mbcs.sbcsIndex; in ucnv_SBCSFromUTF8()
4888 results=(uint16_t *)cnv->sharedData->mbcs.swapLFNLFromUnicodeBytes; in ucnv_SBCSFromUTF8()
4890 results=(uint16_t *)cnv->sharedData->mbcs.fromUnicodeBytes; in ucnv_SBCSFromUTF8()
4892 asciiRoundtrips=cnv->sharedData->mbcs.asciiRoundtrips; in ucnv_SBCSFromUTF8()
4901 hasSupplementary=(UBool)(cnv->sharedData->mbcs.unicodeMask&UCNV_HAS_SUPPLEMENTARY); in ucnv_SBCSFromUTF8()
5103 c=_extFromU(cnv, cnv->sharedData, in ucnv_SBCSFromUTF8()
5189 table=cnv->sharedData->mbcs.fromUnicodeTable; in ucnv_DBCSFromUTF8()
5190 mbcsIndex=cnv->sharedData->mbcs.mbcsIndex; in ucnv_DBCSFromUTF8()
5192 results=(uint16_t *)cnv->sharedData->mbcs.swapLFNLFromUnicodeBytes; in ucnv_DBCSFromUTF8()
5194 results=(uint16_t *)cnv->sharedData->mbcs.fromUnicodeBytes; in ucnv_DBCSFromUTF8()
5196 asciiRoundtrips=cnv->sharedData->mbcs.asciiRoundtrips; in ucnv_DBCSFromUTF8()
5205 hasSupplementary=(UBool)(cnv->sharedData->mbcs.unicodeMask&UCNV_HAS_SUPPLEMENTARY); in ucnv_DBCSFromUTF8()
5416 c=_extFromU(cnv, cnv->sharedData, in ucnv_DBCSFromUTF8()
5482 state0=cnv->sharedData->mbcs.stateTable[cnv->sharedData->mbcs.dbcsOnlyState]; in ucnv_MBCSGetStarters()
5494 ucnv_MBCSIsLeadByte(UConverterSharedData *sharedData, char byte) { in ucnv_MBCSIsLeadByte() argument
5495 return (UBool)MBCS_ENTRY_IS_TRANSITION(sharedData->mbcs.stateTable[0][(uint8_t)byte]); in ucnv_MBCSIsLeadByte()
5509 (cnv->sharedData->mbcs.extIndexes!=NULL ? in ucnv_MBCSWriteSub()
5525 if (cnv->sharedData->mbcs.outputType == MBCS_OUTPUT_2_SISO) { in ucnv_MBCSWriteSub()
5561 if(converter->sharedData->mbcs.countStates==1) { in ucnv_MBCSGetType()
5563 } else if((converter->sharedData->mbcs.outputType&0xff)==MBCS_OUTPUT_2_SISO) { in ucnv_MBCSGetType()
5565 …} else if(converter->sharedData->staticData->minBytesPerChar==2 && converter->sharedData->staticDa… in ucnv_MBCSGetType()