Home | History | Annotate | Download | only in common

Lines Matching refs:sharedData

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