• Home
  • Raw
  • Download

Lines Matching refs:mbcsTable

491 enumToU(UConverterMBCSTable *mbcsTable, int8_t stateProps[],  in enumToU()  argument
502 row=mbcsTable->stateTable[state]; in enumToU()
503 unicodeCodeUnits=mbcsTable->unicodeCodeUnits; in enumToU()
522 mbcsTable, stateProps, nextState, in enumToU()
665 ucnv_MBCSEnumToUnicode(UConverterMBCSTable *mbcsTable, in ucnv_MBCSEnumToUnicode() argument
692 getStateProp(mbcsTable->stateTable, stateProps, 0); in ucnv_MBCSEnumToUnicode()
694 for(state=0; state<mbcsTable->countStates; ++state) { in ucnv_MBCSEnumToUnicode()
701 mbcsTable, stateProps, state, 0, 0, in ucnv_MBCSEnumToUnicode()
714 const UConverterMBCSTable *mbcsTable; in ucnv_MBCSGetFilteredUnicodeSetForUnicode() local
723 mbcsTable=&sharedData->mbcs; in ucnv_MBCSGetFilteredUnicodeSetForUnicode()
724 table=mbcsTable->fromUnicodeTable; in ucnv_MBCSGetFilteredUnicodeSetForUnicode()
725 if(mbcsTable->unicodeMask&UCNV_HAS_SUPPLEMENTARY) { in ucnv_MBCSGetFilteredUnicodeSetForUnicode()
733 if(mbcsTable->outputType==MBCS_OUTPUT_1) { in ucnv_MBCSGetFilteredUnicodeSetForUnicode()
737 results=(const uint16_t *)mbcsTable->fromUnicodeBytes; in ucnv_MBCSGetFilteredUnicodeSetForUnicode()
781 bytes=mbcsTable->fromUnicodeBytes; in ucnv_MBCSGetFilteredUnicodeSetForUnicode()
785 switch(mbcsTable->outputType) { in ucnv_MBCSGetFilteredUnicodeSetForUnicode()
1112 UConverterMBCSTable *mbcsTable; in _EBCDICSwapLFNL() local
1125 mbcsTable=&sharedData->mbcs; in _EBCDICSwapLFNL()
1127 table=mbcsTable->fromUnicodeTable; in _EBCDICSwapLFNL()
1128 bytes=mbcsTable->fromUnicodeBytes; in _EBCDICSwapLFNL()
1138 (mbcsTable->outputType==MBCS_OUTPUT_1 || mbcsTable->outputType==MBCS_OUTPUT_2_SISO) && in _EBCDICSwapLFNL()
1139mbcsTable->stateTable[0][EBCDIC_LF]==MBCS_ENTRY_FINAL(0, MBCS_STATE_VALID_DIRECT_16, U_LF) && in _EBCDICSwapLFNL()
1140 mbcsTable->stateTable[0][EBCDIC_NL]==MBCS_ENTRY_FINAL(0, MBCS_STATE_VALID_DIRECT_16, U_NL) in _EBCDICSwapLFNL()
1145 if(mbcsTable->outputType==MBCS_OUTPUT_1) { in _EBCDICSwapLFNL()
1170 if(mbcsTable->fromUBytesLength>0) { in _EBCDICSwapLFNL()
1175 sizeofFromUBytes=mbcsTable->fromUBytesLength; in _EBCDICSwapLFNL()
1201 mbcsTable->countStates*1024+ in _EBCDICSwapLFNL()
1212 uprv_memcpy(newStateTable, mbcsTable->stateTable, mbcsTable->countStates*1024); in _EBCDICSwapLFNL()
1218 newResults=(uint16_t *)newStateTable[mbcsTable->countStates]; in _EBCDICSwapLFNL()
1222 if(mbcsTable->outputType==MBCS_OUTPUT_1) { in _EBCDICSwapLFNL()
1240 if(mbcsTable->swapLFNLStateTable==NULL) { in _EBCDICSwapLFNL()
1241 mbcsTable->swapLFNLStateTable=newStateTable; in _EBCDICSwapLFNL()
1242 mbcsTable->swapLFNLFromUnicodeBytes=(uint8_t *)newResults; in _EBCDICSwapLFNL()
1243 mbcsTable->swapLFNLName=name; in _EBCDICSwapLFNL()
1261 UConverterMBCSTable *mbcsTable=(UConverterMBCSTable *)context; in writeStage3Roundtrip() local
1268 table=mbcsTable->fromUnicodeTable; in writeStage3Roundtrip()
1269 bytes=(uint8_t *)mbcsTable->fromUnicodeBytes; in writeStage3Roundtrip()
1272 switch(mbcsTable->outputType) { in writeStage3Roundtrip()
1313 switch(mbcsTable->outputType) { in writeStage3Roundtrip()
1337 reconstituteData(UConverterMBCSTable *mbcsTable, in reconstituteData() argument
1344 uint32_t dataLength=stage1Length*2+fullStage2Length*4+mbcsTable->fromUBytesLength; in reconstituteData()
1345 mbcsTable->reconstitutedData=(uint8_t *)uprv_malloc(dataLength); in reconstituteData()
1346 if(mbcsTable->reconstitutedData==NULL) { in reconstituteData()
1350 uprv_memset(mbcsTable->reconstitutedData, 0, dataLength); in reconstituteData()
1353 stage1=(uint16_t *)mbcsTable->reconstitutedData; in reconstituteData()
1354 uprv_memcpy(stage1, mbcsTable->fromUnicodeTable, stage1Length*2); in reconstituteData()
1358 mbcsTable->fromUnicodeTable+stage1Length, in reconstituteData()
1361 mbcsTable->fromUnicodeTable=stage1; in reconstituteData()
1362 mbcsTable->fromUnicodeBytes=bytes=(uint8_t *)(stage2+fullStage2Length); in reconstituteData()
1369 int32_t stageUTF8Length=((int32_t)mbcsTable->maxFastUChar+1)>>6; in reconstituteData()
1378 st3=mbcsTable->mbcsIndex[stageUTF8Index++]; in reconstituteData()
1403 ucnv_MBCSEnumToUnicode(mbcsTable, writeStage3Roundtrip, mbcsTable, pErrorCode); in reconstituteData()
1414 UConverterMBCSTable *mbcsTable=&sharedData->mbcs; in ucnv_MBCSLoad() local
1431 mbcsTable->outputType=(uint8_t)header->flags; in ucnv_MBCSLoad()
1432 if(noFromU && mbcsTable->outputType==MBCS_OUTPUT_1) { in ucnv_MBCSLoad()
1440 mbcsTable->extIndexes=(const int32_t *)(raw+offset); in ucnv_MBCSLoad()
1443 if(mbcsTable->outputType==MBCS_OUTPUT_EXT_ONLY) { in ucnv_MBCSLoad()
1450 if((extIndexes=mbcsTable->extIndexes)==NULL) { in ucnv_MBCSLoad()
1501 uprv_memcpy(mbcsTable, &baseSharedData->mbcs, sizeof(UConverterMBCSTable)); in ucnv_MBCSLoad()
1504 mbcsTable->baseSharedData=baseSharedData; in ucnv_MBCSLoad()
1505 mbcsTable->extIndexes=extIndexes; in ucnv_MBCSLoad()
1514 mbcsTable->swapLFNLStateTable=NULL; in ucnv_MBCSLoad()
1515 mbcsTable->swapLFNLFromUnicodeBytes=NULL; in ucnv_MBCSLoad()
1516 mbcsTable->swapLFNLName=NULL; in ucnv_MBCSLoad()
1522 mbcsTable->reconstitutedData=NULL; in ucnv_MBCSLoad()
1537 entry=mbcsTable->stateTable[0][0xe]; in ucnv_MBCSLoad()
1542 mbcsTable->dbcsOnlyState=(uint8_t)MBCS_ENTRY_FINAL_STATE(entry); in ucnv_MBCSLoad()
1544 mbcsTable->outputType=MBCS_OUTPUT_DBCS_ONLY; in ucnv_MBCSLoad()
1550 mbcsTable->countStates<=127 in ucnv_MBCSLoad()
1558 count=mbcsTable->countStates; in ucnv_MBCSLoad()
1566 uprv_memcpy(newStateTable, mbcsTable->stateTable, count*1024); in ucnv_MBCSLoad()
1581 mbcsTable->stateTable=(const int32_t (*)[256])newStateTable; in ucnv_MBCSLoad()
1582 mbcsTable->countStates=(uint8_t)(count+1); in ucnv_MBCSLoad()
1583 mbcsTable->stateTableOwned=TRUE; in ucnv_MBCSLoad()
1585 mbcsTable->outputType=MBCS_OUTPUT_DBCS_ONLY; in ucnv_MBCSLoad()
1599 switch(mbcsTable->outputType) { in ucnv_MBCSLoad()
1623 mbcsTable->countStates=(uint8_t)header->countStates; in ucnv_MBCSLoad()
1624 mbcsTable->countToUFallbacks=header->countToUFallbacks; in ucnv_MBCSLoad()
1625 mbcsTable->stateTable=(const int32_t (*)[256])(raw+headerLength*4); in ucnv_MBCSLoad()
1626mbcsTable->toUFallbacks=(const _MBCSToUFallback *)(mbcsTable->stateTable+header->countStates); in ucnv_MBCSLoad()
1627 mbcsTable->unicodeCodeUnits=(const uint16_t *)(raw+header->offsetToUCodeUnits); in ucnv_MBCSLoad()
1629 mbcsTable->fromUnicodeTable=(const uint16_t *)(raw+header->offsetFromUTable); in ucnv_MBCSLoad()
1630 mbcsTable->fromUnicodeBytes=(const uint8_t *)(raw+header->offsetFromUBytes); in ucnv_MBCSLoad()
1631 mbcsTable->fromUBytesLength=header->fromUBytesLength; in ucnv_MBCSLoad()
1641 mbcsTable->unicodeMask=(uint8_t)(sharedData->staticData->unicodeMask&3); in ucnv_MBCSLoad()
1644 mbcsTable->unicodeMask=UCNV_HAS_SUPPLEMENTARY|UCNV_HAS_SURROGATES; in ucnv_MBCSLoad()
1656 (mbcsTable->unicodeMask&UCNV_HAS_SURROGATES)==0 && in ucnv_MBCSLoad()
1657 (mbcsTable->countStates==1 ? in ucnv_MBCSLoad()
1662 mbcsTable->utf8Friendly=TRUE; in ucnv_MBCSLoad()
1664 if(mbcsTable->countStates==1) { in ucnv_MBCSLoad()
1672mbcsTable->sbcsIndex[i]=mbcsTable->fromUnicodeTable[mbcsTable->fromUnicodeTable[i>>4]+((i<<2)&0x3c… in ucnv_MBCSLoad()
1675 mbcsTable->maxFastUChar=SBCS_FAST_MAX; in ucnv_MBCSLoad()
1682 mbcsTable->mbcsIndex=(const uint16_t *) in ucnv_MBCSLoad()
1683 (mbcsTable->fromUnicodeBytes+ in ucnv_MBCSLoad()
1684 (noFromU ? 0 : mbcsTable->fromUBytesLength)); in ucnv_MBCSLoad()
1685 mbcsTable->maxFastUChar=(((UChar)header->version[2])<<8)|0xff; in ucnv_MBCSLoad()
1695 … if(mbcsTable->stateTable[0][i]!=MBCS_ENTRY_FINAL(0, MBCS_STATE_VALID_DIRECT_16, i)) { in ucnv_MBCSLoad()
1699 mbcsTable->asciiRoundtrips=asciiRoundtrips; in ucnv_MBCSLoad()
1704 mbcsTable->unicodeMask&UCNV_HAS_SUPPLEMENTARY ? in ucnv_MBCSLoad()
1709 … reconstituteData(mbcsTable, stage1Length, stage2Length, header->fullStage2Length, pErrorCode); in ucnv_MBCSLoad()
1714 if(mbcsTable->utf8Friendly) { in ucnv_MBCSLoad()
1715 if(mbcsTable->countStates==1) { in ucnv_MBCSLoad()
1718 if(mbcsTable->outputType==MBCS_OUTPUT_2) { in ucnv_MBCSLoad()
1724 if(mbcsTable->outputType==MBCS_OUTPUT_DBCS_ONLY || mbcsTable->outputType==MBCS_OUTPUT_2_SISO) { in ucnv_MBCSLoad()
1729 mbcsTable->asciiRoundtrips=0; in ucnv_MBCSLoad()
1735 UConverterMBCSTable *mbcsTable=&sharedData->mbcs; in ucnv_MBCSUnload() local
1737 if(mbcsTable->swapLFNLStateTable!=NULL) { in ucnv_MBCSUnload()
1738 uprv_free(mbcsTable->swapLFNLStateTable); in ucnv_MBCSUnload()
1740 if(mbcsTable->stateTableOwned) { in ucnv_MBCSUnload()
1741 uprv_free((void *)mbcsTable->stateTable); in ucnv_MBCSUnload()
1743 if(mbcsTable->baseSharedData!=NULL) { in ucnv_MBCSUnload()
1744 ucnv_unload(mbcsTable->baseSharedData); in ucnv_MBCSUnload()
1746 if(mbcsTable->reconstitutedData!=NULL) { in ucnv_MBCSUnload()
1747 uprv_free(mbcsTable->reconstitutedData); in ucnv_MBCSUnload()
1755 UConverterMBCSTable *mbcsTable; in ucnv_MBCSOpen() local
1764 mbcsTable=&cnv->sharedData->mbcs; in ucnv_MBCSOpen()
1765 outputType=mbcsTable->outputType; in ucnv_MBCSOpen()
1777 isCached=mbcsTable->swapLFNLStateTable!=NULL; in ucnv_MBCSOpen()
1813 extIndexes=mbcsTable->extIndexes; in ucnv_MBCSOpen()
1854 ucnv_MBCSGetFallback(UConverterMBCSTable *mbcsTable, uint32_t offset) { in ucnv_MBCSGetFallback() argument
1858 limit=mbcsTable->countToUFallbacks; in ucnv_MBCSGetFallback()
1861 toUFallbacks=mbcsTable->toUFallbacks; in ucnv_MBCSGetFallback()