Lines Matching refs:scsu
158 SCSUData *scsu=(SCSUData *)cnv->extraInfo; in _SCSUReset() local
162 uprv_memcpy(scsu->toUDynamicOffsets, initialDynamicOffsets, 32); in _SCSUReset()
164 scsu->toUIsSingleByteMode=TRUE; in _SCSUReset()
165 scsu->toUState=readCommand; in _SCSUReset()
166 scsu->toUQuoteWindow=scsu->toUDynamicWindow=0; in _SCSUReset()
167 scsu->toUByteOne=0; in _SCSUReset()
173 uprv_memcpy(scsu->fromUDynamicOffsets, initialDynamicOffsets, 32); in _SCSUReset()
175 scsu->fromUIsSingleByteMode=TRUE; in _SCSUReset()
176 scsu->fromUDynamicWindow=0; in _SCSUReset()
178 scsu->nextWindowUseIndex=0; in _SCSUReset()
179 switch(scsu->locale) { in _SCSUReset()
181 uprv_memcpy(scsu->windowUse, initialWindowUse_ja, 8); in _SCSUReset()
184 uprv_memcpy(scsu->windowUse, initialWindowUse, 8); in _SCSUReset()
233 SCSUData *scsu; in _SCSUToUnicodeWithOffsets() local
248 scsu=(SCSUData *)cnv->extraInfo; in _SCSUToUnicodeWithOffsets()
257 isSingleByteMode=scsu->toUIsSingleByteMode; in _SCSUToUnicodeWithOffsets()
258 state=scsu->toUState; in _SCSUToUnicodeWithOffsets()
259 quoteWindow=scsu->toUQuoteWindow; in _SCSUToUnicodeWithOffsets()
260 dynamicWindow=scsu->toUDynamicWindow; in _SCSUToUnicodeWithOffsets()
261 byteOne=scsu->toUByteOne; in _SCSUToUnicodeWithOffsets()
301 uint32_t c=scsu->toUDynamicOffsets[dynamicWindow]+(b&0x7f); in _SCSUToUnicodeWithOffsets()
409 uint32_t c=scsu->toUDynamicOffsets[quoteWindow]+(b&0x7f); in _SCSUToUnicodeWithOffsets()
447 scsu->toUDynamicOffsets[dynamicWindow]=0x10000+(byteOne<<15UL | b<<7UL); in _SCSUToUnicodeWithOffsets()
458 scsu->toUDynamicOffsets[dynamicWindow]=b<<7UL; in _SCSUToUnicodeWithOffsets()
460 scsu->toUDynamicOffsets[dynamicWindow]=(b<<7UL)+gapOffset; in _SCSUToUnicodeWithOffsets()
462 scsu->toUDynamicOffsets[dynamicWindow]=fixedOffsets[b-fixedThreshold]; in _SCSUToUnicodeWithOffsets()
563 scsu->toUIsSingleByteMode=isSingleByteMode; in _SCSUToUnicodeWithOffsets()
564 scsu->toUState=state; in _SCSUToUnicodeWithOffsets()
565 scsu->toUQuoteWindow=quoteWindow; in _SCSUToUnicodeWithOffsets()
566 scsu->toUDynamicWindow=dynamicWindow; in _SCSUToUnicodeWithOffsets()
567 scsu->toUByteOne=byteOne; in _SCSUToUnicodeWithOffsets()
587 SCSUData *scsu; in _SCSUToUnicode() local
599 scsu=(SCSUData *)cnv->extraInfo; in _SCSUToUnicode()
607 isSingleByteMode=scsu->toUIsSingleByteMode; in _SCSUToUnicode()
608 state=scsu->toUState; in _SCSUToUnicode()
609 quoteWindow=scsu->toUQuoteWindow; in _SCSUToUnicode()
610 dynamicWindow=scsu->toUDynamicWindow; in _SCSUToUnicode()
611 byteOne=scsu->toUByteOne; in _SCSUToUnicode()
643 uint32_t c=scsu->toUDynamicOffsets[dynamicWindow]+(b&0x7f); in _SCSUToUnicode()
726 uint32_t c=scsu->toUDynamicOffsets[quoteWindow]+(b&0x7f); in _SCSUToUnicode()
753 scsu->toUDynamicOffsets[dynamicWindow]=0x10000+(byteOne<<15UL | b<<7UL); in _SCSUToUnicode()
763 scsu->toUDynamicOffsets[dynamicWindow]=b<<7UL; in _SCSUToUnicode()
765 scsu->toUDynamicOffsets[dynamicWindow]=(b<<7UL)+gapOffset; in _SCSUToUnicode()
767 scsu->toUDynamicOffsets[dynamicWindow]=fixedOffsets[b-fixedThreshold]; in _SCSUToUnicode()
856 scsu->toUIsSingleByteMode=isSingleByteMode; in _SCSUToUnicode()
857 scsu->toUState=state; in _SCSUToUnicode()
858 scsu->toUQuoteWindow=quoteWindow; in _SCSUToUnicode()
859 scsu->toUDynamicWindow=dynamicWindow; in _SCSUToUnicode()
860 scsu->toUByteOne=byteOne; in _SCSUToUnicode()
907 getNextDynamicWindow(SCSUData *scsu) { in getNextDynamicWindow() argument
908 int8_t window=scsu->windowUse[scsu->nextWindowUseIndex]; in getNextDynamicWindow()
909 if(++scsu->nextWindowUseIndex==8) { in getNextDynamicWindow()
910 scsu->nextWindowUseIndex=0; in getNextDynamicWindow()
922 useDynamicWindow(SCSUData *scsu, int8_t window) { in useDynamicWindow() argument
931 i=scsu->nextWindowUseIndex; in useDynamicWindow()
936 } while(scsu->windowUse[i]!=window); in useDynamicWindow()
943 while(j!=scsu->nextWindowUseIndex) { in useDynamicWindow()
944 scsu->windowUse[i]=scsu->windowUse[j]; in useDynamicWindow()
950 scsu->windowUse[i]=window; in useDynamicWindow()
1012 SCSUData *scsu; in _SCSUFromUnicodeWithOffsets() local
1036 scsu=(SCSUData *)cnv->extraInfo; in _SCSUFromUnicodeWithOffsets()
1046 isSingleByteMode=scsu->fromUIsSingleByteMode; in _SCSUFromUnicodeWithOffsets()
1047 dynamicWindow=scsu->fromUDynamicWindow; in _SCSUFromUnicodeWithOffsets()
1048 currentOffset=scsu->fromUDynamicOffsets[dynamicWindow]; in _SCSUFromUnicodeWithOffsets()
1140 } else if((window=getWindow(scsu->fromUDynamicOffsets, c))>=0) { in _SCSUFromUnicodeWithOffsets()
1143 currentOffset=scsu->fromUDynamicOffsets[dynamicWindow]; in _SCSUFromUnicodeWithOffsets()
1144 useDynamicWindow(scsu, dynamicWindow); in _SCSUFromUnicodeWithOffsets()
1152 dynamicWindow=getNextDynamicWindow(scsu); in _SCSUFromUnicodeWithOffsets()
1153 currentOffset=scsu->fromUDynamicOffsets[dynamicWindow]=offset; in _SCSUFromUnicodeWithOffsets()
1154 useDynamicWindow(scsu, dynamicWindow); in _SCSUFromUnicodeWithOffsets()
1182 if((window=getWindow(scsu->fromUDynamicOffsets, c))>=0) { in _SCSUFromUnicodeWithOffsets()
1184 … if(source>=sourceLimit || isInOffsetWindowOrDirect(scsu->fromUDynamicOffsets[window], *source)) { in _SCSUFromUnicodeWithOffsets()
1187 currentOffset=scsu->fromUDynamicOffsets[dynamicWindow]; in _SCSUFromUnicodeWithOffsets()
1188 useDynamicWindow(scsu, dynamicWindow); in _SCSUFromUnicodeWithOffsets()
1194 c=((uint32_t)(SQ0+window)<<8)|(c-scsu->fromUDynamicOffsets[window])|0x80; in _SCSUFromUnicodeWithOffsets()
1205 dynamicWindow=getNextDynamicWindow(scsu); in _SCSUFromUnicodeWithOffsets()
1206 currentOffset=scsu->fromUDynamicOffsets[dynamicWindow]=offset; in _SCSUFromUnicodeWithOffsets()
1207 useDynamicWindow(scsu, dynamicWindow); in _SCSUFromUnicodeWithOffsets()
1274 } else if((window=getWindow(scsu->fromUDynamicOffsets, c))>=0) { in _SCSUFromUnicodeWithOffsets()
1278 currentOffset=scsu->fromUDynamicOffsets[dynamicWindow]; in _SCSUFromUnicodeWithOffsets()
1279 useDynamicWindow(scsu, dynamicWindow); in _SCSUFromUnicodeWithOffsets()
1286 dynamicWindow=getNextDynamicWindow(scsu); in _SCSUFromUnicodeWithOffsets()
1287 currentOffset=scsu->fromUDynamicOffsets[dynamicWindow]=offset; in _SCSUFromUnicodeWithOffsets()
1288 useDynamicWindow(scsu, dynamicWindow); in _SCSUFromUnicodeWithOffsets()
1330 if( (window=getWindow(scsu->fromUDynamicOffsets, c))>=0 && in _SCSUFromUnicodeWithOffsets()
1340 currentOffset=scsu->fromUDynamicOffsets[dynamicWindow]; in _SCSUFromUnicodeWithOffsets()
1341 useDynamicWindow(scsu, dynamicWindow); in _SCSUFromUnicodeWithOffsets()
1351 dynamicWindow=getNextDynamicWindow(scsu); in _SCSUFromUnicodeWithOffsets()
1352 currentOffset=scsu->fromUDynamicOffsets[dynamicWindow]=offset; in _SCSUFromUnicodeWithOffsets()
1353 useDynamicWindow(scsu, dynamicWindow); in _SCSUFromUnicodeWithOffsets()
1378 scsu->fromUIsSingleByteMode=isSingleByteMode; in _SCSUFromUnicodeWithOffsets()
1379 scsu->fromUDynamicWindow=dynamicWindow; in _SCSUFromUnicodeWithOffsets()
1505 SCSUData *scsu; in _SCSUFromUnicode() local
1526 scsu=(SCSUData *)cnv->extraInfo; in _SCSUFromUnicode()
1535 isSingleByteMode=scsu->fromUIsSingleByteMode; in _SCSUFromUnicode()
1536 dynamicWindow=scsu->fromUDynamicWindow; in _SCSUFromUnicode()
1537 currentOffset=scsu->fromUDynamicOffsets[dynamicWindow]; in _SCSUFromUnicode()
1611 } else if((window=getWindow(scsu->fromUDynamicOffsets, c))>=0) { in _SCSUFromUnicode()
1614 currentOffset=scsu->fromUDynamicOffsets[dynamicWindow]; in _SCSUFromUnicode()
1615 useDynamicWindow(scsu, dynamicWindow); in _SCSUFromUnicode()
1623 dynamicWindow=getNextDynamicWindow(scsu); in _SCSUFromUnicode()
1624 currentOffset=scsu->fromUDynamicOffsets[dynamicWindow]=offset; in _SCSUFromUnicode()
1625 useDynamicWindow(scsu, dynamicWindow); in _SCSUFromUnicode()
1650 if((window=getWindow(scsu->fromUDynamicOffsets, c))>=0) { in _SCSUFromUnicode()
1652 … if(source>=sourceLimit || isInOffsetWindowOrDirect(scsu->fromUDynamicOffsets[window], *source)) { in _SCSUFromUnicode()
1655 currentOffset=scsu->fromUDynamicOffsets[dynamicWindow]; in _SCSUFromUnicode()
1656 useDynamicWindow(scsu, dynamicWindow); in _SCSUFromUnicode()
1662 c=((uint32_t)(SQ0+window)<<8)|(c-scsu->fromUDynamicOffsets[window])|0x80; in _SCSUFromUnicode()
1673 dynamicWindow=getNextDynamicWindow(scsu); in _SCSUFromUnicode()
1674 currentOffset=scsu->fromUDynamicOffsets[dynamicWindow]=offset; in _SCSUFromUnicode()
1675 useDynamicWindow(scsu, dynamicWindow); in _SCSUFromUnicode()
1736 } else if((window=getWindow(scsu->fromUDynamicOffsets, c))>=0) { in _SCSUFromUnicode()
1740 currentOffset=scsu->fromUDynamicOffsets[dynamicWindow]; in _SCSUFromUnicode()
1741 useDynamicWindow(scsu, dynamicWindow); in _SCSUFromUnicode()
1748 dynamicWindow=getNextDynamicWindow(scsu); in _SCSUFromUnicode()
1749 currentOffset=scsu->fromUDynamicOffsets[dynamicWindow]=offset; in _SCSUFromUnicode()
1750 useDynamicWindow(scsu, dynamicWindow); in _SCSUFromUnicode()
1791 if( (window=getWindow(scsu->fromUDynamicOffsets, c))>=0 && in _SCSUFromUnicode()
1801 currentOffset=scsu->fromUDynamicOffsets[dynamicWindow]; in _SCSUFromUnicode()
1802 useDynamicWindow(scsu, dynamicWindow); in _SCSUFromUnicode()
1812 dynamicWindow=getNextDynamicWindow(scsu); in _SCSUFromUnicode()
1813 currentOffset=scsu->fromUDynamicOffsets[dynamicWindow]=offset; in _SCSUFromUnicode()
1814 useDynamicWindow(scsu, dynamicWindow); in _SCSUFromUnicode()
1838 scsu->fromUIsSingleByteMode=isSingleByteMode; in _SCSUFromUnicode()
1839 scsu->fromUDynamicWindow=dynamicWindow; in _SCSUFromUnicode()
1926 SCSUData *scsu=(SCSUData *)cnv->extraInfo; in _SCSUGetName() local
1928 switch(scsu->locale) { in _SCSUGetName()