Lines Matching refs:mbcsTable
635 enumToU(UConverterMBCSTable *mbcsTable, int8_t stateProps[], in enumToU() argument
646 row=mbcsTable->stateTable[state]; in enumToU()
647 unicodeCodeUnits=mbcsTable->unicodeCodeUnits; in enumToU()
666 mbcsTable, stateProps, nextState, in enumToU()
809 ucnv_MBCSEnumToUnicode(UConverterMBCSTable *mbcsTable, in ucnv_MBCSEnumToUnicode() argument
836 getStateProp(mbcsTable->stateTable, stateProps, 0); in ucnv_MBCSEnumToUnicode()
838 for(state=0; state<mbcsTable->countStates; ++state) { in ucnv_MBCSEnumToUnicode()
845 mbcsTable, stateProps, state, 0, 0, in ucnv_MBCSEnumToUnicode()
858 const UConverterMBCSTable *mbcsTable; in ucnv_MBCSGetFilteredUnicodeSetForUnicode() local
867 mbcsTable=&sharedData->mbcs; in ucnv_MBCSGetFilteredUnicodeSetForUnicode()
868 table=mbcsTable->fromUnicodeTable; in ucnv_MBCSGetFilteredUnicodeSetForUnicode()
869 if(mbcsTable->unicodeMask&UCNV_HAS_SUPPLEMENTARY) { in ucnv_MBCSGetFilteredUnicodeSetForUnicode()
877 if(mbcsTable->outputType==MBCS_OUTPUT_1) { in ucnv_MBCSGetFilteredUnicodeSetForUnicode()
881 results=(const uint16_t *)mbcsTable->fromUnicodeBytes; in ucnv_MBCSGetFilteredUnicodeSetForUnicode()
925 bytes=mbcsTable->fromUnicodeBytes; in ucnv_MBCSGetFilteredUnicodeSetForUnicode()
929 switch(mbcsTable->outputType) { in ucnv_MBCSGetFilteredUnicodeSetForUnicode()
1259 UConverterMBCSTable *mbcsTable; in _EBCDICSwapLFNL() local
1272 mbcsTable=&sharedData->mbcs; in _EBCDICSwapLFNL()
1274 table=mbcsTable->fromUnicodeTable; in _EBCDICSwapLFNL()
1275 bytes=mbcsTable->fromUnicodeBytes; in _EBCDICSwapLFNL()
1285 (mbcsTable->outputType==MBCS_OUTPUT_1 || mbcsTable->outputType==MBCS_OUTPUT_2_SISO) && in _EBCDICSwapLFNL()
1286 … mbcsTable->stateTable[0][EBCDIC_LF]==MBCS_ENTRY_FINAL(0, MBCS_STATE_VALID_DIRECT_16, U_LF) && in _EBCDICSwapLFNL()
1287 mbcsTable->stateTable[0][EBCDIC_NL]==MBCS_ENTRY_FINAL(0, MBCS_STATE_VALID_DIRECT_16, U_NL) in _EBCDICSwapLFNL()
1292 if(mbcsTable->outputType==MBCS_OUTPUT_1) { in _EBCDICSwapLFNL()
1317 if(mbcsTable->fromUBytesLength>0) { in _EBCDICSwapLFNL()
1322 sizeofFromUBytes=mbcsTable->fromUBytesLength; in _EBCDICSwapLFNL()
1348 mbcsTable->countStates*1024+ in _EBCDICSwapLFNL()
1359 uprv_memcpy(newStateTable, mbcsTable->stateTable, mbcsTable->countStates*1024); in _EBCDICSwapLFNL()
1365 newResults=(uint16_t *)newStateTable[mbcsTable->countStates]; in _EBCDICSwapLFNL()
1369 if(mbcsTable->outputType==MBCS_OUTPUT_1) { in _EBCDICSwapLFNL()
1387 if(mbcsTable->swapLFNLStateTable==NULL) { in _EBCDICSwapLFNL()
1388 mbcsTable->swapLFNLStateTable=newStateTable; in _EBCDICSwapLFNL()
1389 mbcsTable->swapLFNLFromUnicodeBytes=(uint8_t *)newResults; in _EBCDICSwapLFNL()
1390 mbcsTable->swapLFNLName=name; in _EBCDICSwapLFNL()
1408 UConverterMBCSTable *mbcsTable=(UConverterMBCSTable *)context; in writeStage3Roundtrip() local
1415 table=mbcsTable->fromUnicodeTable; in writeStage3Roundtrip()
1416 bytes=(uint8_t *)mbcsTable->fromUnicodeBytes; in writeStage3Roundtrip()
1419 switch(mbcsTable->outputType) { in writeStage3Roundtrip()
1460 switch(mbcsTable->outputType) { in writeStage3Roundtrip()
1484 reconstituteData(UConverterMBCSTable *mbcsTable, in reconstituteData() argument
1490 uint32_t dataLength=stage1Length*2+fullStage2Length*4+mbcsTable->fromUBytesLength; in reconstituteData()
1491 mbcsTable->reconstitutedData=(uint8_t *)uprv_malloc(dataLength); in reconstituteData()
1492 if(mbcsTable->reconstitutedData==NULL) { in reconstituteData()
1496 uprv_memset(mbcsTable->reconstitutedData, 0, dataLength); in reconstituteData()
1499 stage1=(uint16_t *)mbcsTable->reconstitutedData; in reconstituteData()
1500 uprv_memcpy(stage1, mbcsTable->fromUnicodeTable, stage1Length*2); in reconstituteData()
1504 mbcsTable->fromUnicodeTable+stage1Length, in reconstituteData()
1507 mbcsTable->fromUnicodeTable=stage1; in reconstituteData()
1508 mbcsTable->fromUnicodeBytes=(uint8_t *)(stage2+fullStage2Length); in reconstituteData()
1515 int32_t stageUTF8Length=((int32_t)mbcsTable->maxFastUChar+1)>>6; in reconstituteData()
1524 st3=mbcsTable->mbcsIndex[stageUTF8Index++]; in reconstituteData()
1549 ucnv_MBCSEnumToUnicode(mbcsTable, writeStage3Roundtrip, mbcsTable, pErrorCode); in reconstituteData()
1560 UConverterMBCSTable *mbcsTable=&sharedData->mbcs; in ucnv_MBCSLoad() local
1577 mbcsTable->outputType=(uint8_t)header->flags; in ucnv_MBCSLoad()
1578 if(noFromU && mbcsTable->outputType==MBCS_OUTPUT_1) { in ucnv_MBCSLoad()
1586 mbcsTable->extIndexes=(const int32_t *)(raw+offset); in ucnv_MBCSLoad()
1589 if(mbcsTable->outputType==MBCS_OUTPUT_EXT_ONLY) { in ucnv_MBCSLoad()
1596 if((extIndexes=mbcsTable->extIndexes)==NULL) { in ucnv_MBCSLoad()
1647 uprv_memcpy(mbcsTable, &baseSharedData->mbcs, sizeof(UConverterMBCSTable)); in ucnv_MBCSLoad()
1650 mbcsTable->baseSharedData=baseSharedData; in ucnv_MBCSLoad()
1651 mbcsTable->extIndexes=extIndexes; in ucnv_MBCSLoad()
1660 mbcsTable->swapLFNLStateTable=NULL; in ucnv_MBCSLoad()
1661 mbcsTable->swapLFNLFromUnicodeBytes=NULL; in ucnv_MBCSLoad()
1662 mbcsTable->swapLFNLName=NULL; in ucnv_MBCSLoad()
1668 mbcsTable->reconstitutedData=NULL; in ucnv_MBCSLoad()
1683 entry=mbcsTable->stateTable[0][0xe]; in ucnv_MBCSLoad()
1688 mbcsTable->dbcsOnlyState=(uint8_t)MBCS_ENTRY_FINAL_STATE(entry); in ucnv_MBCSLoad()
1690 mbcsTable->outputType=MBCS_OUTPUT_DBCS_ONLY; in ucnv_MBCSLoad()
1696 mbcsTable->countStates<=127 in ucnv_MBCSLoad()
1704 count=mbcsTable->countStates; in ucnv_MBCSLoad()
1712 uprv_memcpy(newStateTable, mbcsTable->stateTable, count*1024); in ucnv_MBCSLoad()
1727 mbcsTable->stateTable=(const int32_t (*)[256])newStateTable; in ucnv_MBCSLoad()
1728 mbcsTable->countStates=(uint8_t)(count+1); in ucnv_MBCSLoad()
1729 mbcsTable->stateTableOwned=TRUE; in ucnv_MBCSLoad()
1731 mbcsTable->outputType=MBCS_OUTPUT_DBCS_ONLY; in ucnv_MBCSLoad()
1745 switch(mbcsTable->outputType) { in ucnv_MBCSLoad()
1769 mbcsTable->countStates=(uint8_t)header->countStates; in ucnv_MBCSLoad()
1770 mbcsTable->countToUFallbacks=header->countToUFallbacks; in ucnv_MBCSLoad()
1771 mbcsTable->stateTable=(const int32_t (*)[256])(raw+headerLength*4); in ucnv_MBCSLoad()
1772 … mbcsTable->toUFallbacks=(const _MBCSToUFallback *)(mbcsTable->stateTable+header->countStates); in ucnv_MBCSLoad()
1773 mbcsTable->unicodeCodeUnits=(const uint16_t *)(raw+header->offsetToUCodeUnits); in ucnv_MBCSLoad()
1775 mbcsTable->fromUnicodeTable=(const uint16_t *)(raw+header->offsetFromUTable); in ucnv_MBCSLoad()
1776 mbcsTable->fromUnicodeBytes=(const uint8_t *)(raw+header->offsetFromUBytes); in ucnv_MBCSLoad()
1777 mbcsTable->fromUBytesLength=header->fromUBytesLength; in ucnv_MBCSLoad()
1787 mbcsTable->unicodeMask=(uint8_t)(sharedData->staticData->unicodeMask&3); in ucnv_MBCSLoad()
1790 mbcsTable->unicodeMask=UCNV_HAS_SUPPLEMENTARY|UCNV_HAS_SURROGATES; in ucnv_MBCSLoad()
1802 (mbcsTable->unicodeMask&UCNV_HAS_SURROGATES)==0 && in ucnv_MBCSLoad()
1803 (mbcsTable->countStates==1 ? in ucnv_MBCSLoad()
1808 mbcsTable->utf8Friendly=TRUE; in ucnv_MBCSLoad()
1810 if(mbcsTable->countStates==1) { in ucnv_MBCSLoad()
1818 …mbcsTable->sbcsIndex[i]=mbcsTable->fromUnicodeTable[mbcsTable->fromUnicodeTable[i>>4]+((i<<2)&0x3c… in ucnv_MBCSLoad()
1821 mbcsTable->maxFastUChar=SBCS_FAST_MAX; in ucnv_MBCSLoad()
1828 mbcsTable->mbcsIndex=(const uint16_t *) in ucnv_MBCSLoad()
1829 (mbcsTable->fromUnicodeBytes+ in ucnv_MBCSLoad()
1830 (noFromU ? 0 : mbcsTable->fromUBytesLength)); in ucnv_MBCSLoad()
1831 mbcsTable->maxFastUChar=(((UChar)header->version[2])<<8)|0xff; in ucnv_MBCSLoad()
1841 … if(mbcsTable->stateTable[0][i]!=MBCS_ENTRY_FINAL(0, MBCS_STATE_VALID_DIRECT_16, i)) { in ucnv_MBCSLoad()
1845 mbcsTable->asciiRoundtrips=asciiRoundtrips; in ucnv_MBCSLoad()
1850 mbcsTable->unicodeMask&UCNV_HAS_SUPPLEMENTARY ? in ucnv_MBCSLoad()
1855 … reconstituteData(mbcsTable, stage1Length, stage2Length, header->fullStage2Length, pErrorCode); in ucnv_MBCSLoad()
1860 if(mbcsTable->utf8Friendly) { in ucnv_MBCSLoad()
1861 if(mbcsTable->countStates==1) { in ucnv_MBCSLoad()
1864 if(mbcsTable->outputType==MBCS_OUTPUT_2) { in ucnv_MBCSLoad()
1870 if(mbcsTable->outputType==MBCS_OUTPUT_DBCS_ONLY || mbcsTable->outputType==MBCS_OUTPUT_2_SISO) { in ucnv_MBCSLoad()
1875 mbcsTable->asciiRoundtrips=0; in ucnv_MBCSLoad()
1881 UConverterMBCSTable *mbcsTable=&sharedData->mbcs; in ucnv_MBCSUnload() local
1883 if(mbcsTable->swapLFNLStateTable!=NULL) { in ucnv_MBCSUnload()
1884 uprv_free(mbcsTable->swapLFNLStateTable); in ucnv_MBCSUnload()
1886 if(mbcsTable->stateTableOwned) { in ucnv_MBCSUnload()
1887 uprv_free((void *)mbcsTable->stateTable); in ucnv_MBCSUnload()
1889 if(mbcsTable->baseSharedData!=NULL) { in ucnv_MBCSUnload()
1890 ucnv_unload(mbcsTable->baseSharedData); in ucnv_MBCSUnload()
1892 if(mbcsTable->reconstitutedData!=NULL) { in ucnv_MBCSUnload()
1893 uprv_free(mbcsTable->reconstitutedData); in ucnv_MBCSUnload()
1901 UConverterMBCSTable *mbcsTable; in ucnv_MBCSOpen() local
1910 mbcsTable=&cnv->sharedData->mbcs; in ucnv_MBCSOpen()
1911 outputType=mbcsTable->outputType; in ucnv_MBCSOpen()
1923 isCached=mbcsTable->swapLFNLStateTable!=NULL; in ucnv_MBCSOpen()
1959 extIndexes=mbcsTable->extIndexes; in ucnv_MBCSOpen()
2004 ucnv_MBCSGetFallback(UConverterMBCSTable *mbcsTable, uint32_t offset) { in ucnv_MBCSGetFallback() argument
2008 limit=mbcsTable->countToUFallbacks; in ucnv_MBCSGetFallback()
2011 toUFallbacks=mbcsTable->toUFallbacks; in ucnv_MBCSGetFallback()