Home
last modified time | relevance | path

Searched refs:sharedData (Results 1 – 25 of 27) sorted by relevance

12

/external/icu/icu4c/source/common/
Ducnvmbcs.cpp379 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
[all …]
Ducnvmbcs.h494 ucnv_MBCSSimpleGetNextUChar(UConverterSharedData *sharedData,
504 ucnv_MBCSSingleSimpleGetNextUChar(UConverterSharedData *sharedData,
513 #define _MBCS_SINGLE_SIMPLE_GET_NEXT_BMP(sharedData, b) \ argument
514 (UChar)MBCS_ENTRY_FINAL_VALUE_16((sharedData)->mbcs.stateTable[0][(uint8_t)(b)])
521 ucnv_MBCSIsLeadByte(UConverterSharedData *sharedData, char byte);
524 #define _MBCS_IS_LEAD_BYTE(sharedData, byte) \ argument
525 (UBool)MBCS_ENTRY_IS_TRANSITION((sharedData)->mbcs.stateTable[0][(uint8_t)(byte)])
545 ucnv_MBCSFromUChar32(UConverterSharedData *sharedData,
556 ucnv_MBCSSingleFromUChar32(UConverterSharedData *sharedData,
583 ucnv_MBCSGetUnicodeSetForUnicode(const UConverterSharedData *sharedData,
[all …]
Ducnv.c198 if (cnv->sharedData->impl->safeClone != NULL) { in ucnv_safeClone()
201 cnv->sharedData->impl->safeClone(cnv, NULL, &bufferSizeNeeded, status); in ucnv_safeClone()
283 if (cnv->sharedData->impl->safeClone != NULL) { in ucnv_safeClone()
285 localConverter = cnv->sharedData->impl->safeClone(cnv, localConverter, pBufferSize, status); in ucnv_safeClone()
303 if (cnv->sharedData->referenceCounter != ~0) { in ucnv_safeClone()
304 ucnv_incrementRefCount(cnv->sharedData); in ucnv_safeClone()
380 if (converter->sharedData->impl->close != NULL) { in ucnv_close()
381 converter->sharedData->impl->close(converter); in ucnv_close()
393 if (converter->sharedData->referenceCounter != ~0) { in ucnv_close()
394 ucnv_unloadSharedDataIfReady(converter->sharedData); in ucnv_close()
[all …]
Ducnv_bld.cpp356 UConverterSharedData *sharedData; in createConverterFromFile() local
374 sharedData = ucnv_data_unFlattenClone(pArgs, data, err); in createConverterFromFile()
389 UTRACE_EXIT_PTR_STATUS(sharedData, *err); in createConverterFromFile()
390 return sharedData; in createConverterFromFile()
618 ucnv_unload(UConverterSharedData *sharedData) { in ucnv_unload() argument
619 if(sharedData != NULL) { in ucnv_unload()
620 if (sharedData->referenceCounter > 0) { in ucnv_unload()
621 sharedData->referenceCounter--; in ucnv_unload()
624 if((sharedData->referenceCounter <= 0)&&(sharedData->sharedDataCached == FALSE)) { in ucnv_unload()
625 ucnv_deleteSharedConverterData(sharedData); in ucnv_unload()
[all …]
Ducnvdisp.c60 name=ures_getStringByKey(rb, cnv->sharedData->staticData->name, &length, &localStatus); in ucnv_getDisplayName()
71 length=(int32_t)uprv_strlen(cnv->sharedData->staticData->name); in ucnv_getDisplayName()
72 …u_charsToUChars(cnv->sharedData->staticData->name, displayName, uprv_min(length, displayNameCapaci… in ucnv_getDisplayName()
Ducnv_ext.cpp269 ((cnv)->sharedData->mbcs.outputType==MBCS_OUTPUT_2_SISO ? (int8_t)(cnv)->mode : \
270 (cnv)->sharedData->mbcs.outputType==MBCS_OUTPUT_DBCS_ONLY ? 1 : -1)
374 match=ucnv_extMatchToU(cnv->sharedData->mbcs.extIndexes, (int8_t)UCNV_SISO_STATE(cnv), in ucnv_extContinueMatchToU()
392 ucnv_extWriteToU(cnv, cnv->sharedData->mbcs.extIndexes, in ucnv_extContinueMatchToU()
764 cnv->sharedData->mbcs.outputType==MBCS_OUTPUT_DBCS_ONLY) in ucnv_extInitialMatchFromU()
867 match=ucnv_extMatchFromU(cnv->sharedData->mbcs.extIndexes, in ucnv_extContinueMatchFromU()
891 ucnv_extWriteFromU(cnv, cnv->sharedData->mbcs.extIndexes, in ucnv_extContinueMatchFromU()
972 ucnv_extGetUnicodeSetString(const UConverterSharedData *sharedData, in ucnv_extGetUnicodeSetString() argument
1013 sharedData, cx, sa, which, minLength, in ucnv_extGetUnicodeSetString()
1024 ucnv_extGetUnicodeSet(const UConverterSharedData *sharedData, in ucnv_extGetUnicodeSet() argument
[all …]
Ducnv_set.c44 if(cnv->sharedData->impl->getUnicodeSet==NULL) { in ucnv_getUnicodeSet()
64 cnv->sharedData->impl->getUnicodeSet(cnv, &sa, whichSet, pErrorCode); in ucnv_getUnicodeSet()
Ducnv_imp.h120 ucnv_unloadSharedDataIfReady(UConverterSharedData *sharedData);
126 ucnv_incrementRefCount(UConverterSharedData *sharedData);
Ducnv2022.cpp548 cnv->sharedData=(UConverterSharedData*)(&_ISO2022JPData); in _ISO2022Open()
601 cnv->sharedData=(UConverterSharedData*)&_ISO2022KRData; in _ISO2022Open()
630 cnv->sharedData=(UConverterSharedData*)&_ISO2022CNData; in _ISO2022Open()
655 cnv->sharedData=(UConverterSharedData*)&_ISO2022Data; in _ISO2022Open()
666 cnv->maxBytesPerUChar=cnv->sharedData->staticData->maxBytesPerChar; in _ISO2022Open()
1134 MBCS_FROM_UCHAR32_ISO2022(UConverterSharedData* sharedData, in MBCS_FROM_UCHAR32_ISO2022() argument
1152 if(c<0x10000 || (sharedData->mbcs.unicodeMask&UCNV_HAS_SUPPLEMENTARY)) { in MBCS_FROM_UCHAR32_ISO2022()
1153 table=sharedData->mbcs.fromUnicodeTable; in MBCS_FROM_UCHAR32_ISO2022()
1157 myValue=MBCS_VALUE_2_FROM_STAGE_2(sharedData->mbcs.fromUnicodeBytes, stage2Entry, c); in MBCS_FROM_UCHAR32_ISO2022()
1164 p=MBCS_POINTER_3_FROM_STAGE_2(sharedData->mbcs.fromUnicodeBytes, stage2Entry, c); in MBCS_FROM_UCHAR32_ISO2022()
[all …]
Ducnv_bld.h173 …UConverterSharedData *sharedData; /* Pointer to the shared immutable part of the converter objec… member
273 ucnv_unload(UConverterSharedData *sharedData);
Ducnv_cb.c206 if(converter->sharedData->impl->writeSub!=NULL) { in ucnv_cbFromUWriteSub()
207 converter->sharedData->impl->writeSub(args, offsetIndex, err); in ucnv_cbFromUWriteSub()
Ducnv_cnv.h62 typedef void (*UConverterLoad) (UConverterSharedData *sharedData,
65 typedef void (*UConverterUnload) (UConverterSharedData *sharedData);
Ducnvhz.c269 targetUniChar = ucnv_MBCSSimpleGetNextUChar(myData->gbConverter->sharedData, in UConverter_toUnicode_HZ_OFFSETS_LOGIC()
377 int32_t length= ucnv_MBCSFromUChar32(myConverterData->gbConverter->sharedData, in UConverter_fromUnicode_HZ_OFFSETS_LOGIC()
579 ((UConverterDataHZ*)cnv->extraInfo)->gbConverter->sharedData, in _HZ_GetUnicodeSet()
Ducnv_u16.c1296 cnv->sharedData=(UConverterSharedData*)&_UTF16v2Data; in _UTF16Open()
1318 #define IS_UTF16BE(cnv) ((cnv)->sharedData==&_UTF16BEData)
1319 #define IS_UTF16LE(cnv) ((cnv)->sharedData==&_UTF16LEData)
1320 #define IS_UTF16(cnv) ((cnv)->sharedData==&_UTF16Data || (cnv)->sharedData==&_UTF16v2Data)
Ducnv_ct.c543 savedSharedData = subArgs.converter->sharedData; in UConverter_toUnicode_CompoundText_OFFSETS()
544 subArgs.converter->sharedData = myConverterData->myConverterArray[currentState]; in UConverter_toUnicode_CompoundText_OFFSETS()
548 subArgs.converter->sharedData = savedSharedData; in UConverter_toUnicode_CompoundText_OFFSETS()
Ducnv_ext.h399 ucnv_extGetUnicodeSet(const UConverterSharedData *sharedData,
Ducnvlat1.c154 if(cnv->sharedData==&_Latin1Data) { in _Latin1FromUnicodeWithOffsets()
Ducnv_u8.c95 return (UBool)(cnv->sharedData == &_CESU8Data); in hasCESU8Data()
/external/icu/icu4j/main/classes/charset/src/com/ibm/icu/charset/
DCharsetMBCS.java36 UConverterSharedData sharedData = null; field in CharsetMBCS
182 sharedData = loadConverter(1, icuCanonicalName, classPath, loader); in CharsetMBCS()
184 maxBytesPerChar = sharedData.staticData.maxBytesPerChar; in CharsetMBCS()
185 minBytesPerChar = sharedData.staticData.minBytesPerChar; in CharsetMBCS()
187 fromUSubstitution = sharedData.staticData.subChar; in CharsetMBCS()
188 subChar = sharedData.staticData.subChar; in CharsetMBCS()
189 subCharLen = sharedData.staticData.subCharLen; in CharsetMBCS()
190 subChar1 = sharedData.staticData.subChar1; in CharsetMBCS()
191 fromUSubstitution = new byte[sharedData.staticData.subCharLen]; in CharsetMBCS()
192 …System.arraycopy(sharedData.staticData.subChar, 0, fromUSubstitution, 0, sharedData.staticData.sub… in CharsetMBCS()
[all …]
DCharsetISO2022.java124 …terData.myConverterArray[ISO8859_7] = ((CharsetMBCS)CharsetICU.forNameICU("ISO8859_7")).sharedData; in ISO2022InitJP()
127 …erterData.myConverterArray[JISX208] = ((CharsetMBCS)CharsetICU.forNameICU("Shift-JIS")).sharedData; in ISO2022InitJP()
129 …verterData.myConverterArray[JISX212] = ((CharsetMBCS)CharsetICU.forNameICU("jisx-212")).sharedData; in ISO2022InitJP()
132 …nverterData.myConverterArray[GB2312] = ((CharsetMBCS)CharsetICU.forNameICU("ibm-5478")).sharedData; in ISO2022InitJP()
135 …verterData.myConverterArray[KSC5601] = ((CharsetMBCS)CharsetICU.forNameICU("ksc_5601")).sharedData; in ISO2022InitJP()
149 …erterData.myConverterArray[GB2312_1] = ((CharsetMBCS)CharsetICU.forNameICU("ibm-5478")).sharedData; in ISO2022InitCN()
151 …rData.myConverterArray[ISO_IR_165] = ((CharsetMBCS)CharsetICU.forNameICU("iso-ir-165")).sharedData; in ISO2022InitCN()
153 …ta.myConverterArray[CNS_11643] = ((CharsetMBCS)CharsetICU.forNameICU("cns-11643-1992")).sharedData; in ISO2022InitCN()
254 private int MBCSSimpleGetNextUChar(UConverterSharedData sharedData, in MBCSSimpleGetNextUChar() argument
258 UConverterSharedData tempSharedData = myConverterData.currentConverter.sharedData; in MBCSSimpleGetNextUChar()
[all …]
DCharsetICU.java387 …if (((CharsetMBCS)this).sharedData.staticData.maxBytesPerChar == ((CharsetMBCS)this).sharedData.st… in isFixedWidth()
DCharsetLMBCS.java554 …Info.OptGrpConverter[i] = ((CharsetMBCS)CharsetICU.forNameICU(OptGroupByteToCPName[i])).sharedData; in CharsetLMBCS()
592 extraInfo.charset.sharedData = cnv; in LMBCS_SimpleGetNextUChar()
860 extraInfo.charset.sharedData = xcnv; in LMBCSConversionWorker()
DCharsetHZ.java383 …gbCharset.MBCSGetFilteredUnicodeSetForUnicode(gbCharset.sharedData, setFillIn, which, CharsetMBCS.… in getUnicodeSetImpl()
DCharsetCompoundText.java614 …myConverterArray[i].MBCSGetFilteredUnicodeSetForUnicode(myConverterArray[i].sharedData, setFillIn,… in getUnicodeSetImpl()
/external/icu/icu4c/source/tools/makeconv/
Dmakeconv.c42 UConverterSharedData sharedData; member
49 data->sharedData.structSize=sizeof(UConverterSharedData); in initConvData()
51 data->sharedData.staticData=&data->staticData; in initConvData()

12