Libraryless. Click here for Pure Java version (68L/1K).
asclass ILCCompactIndex { S its(int idx) { ret itemToString(idx); } abstract S itemToString(int idx); abstract int numLeftPairs(int symbol); abstract int numRightPairs(int symbol); abstract int[] getLeftPairs(int symbol); abstract int[] getRightPairs(int symbol); abstract int getProdLength(int idx); abstract int getOccurrences(int idx); abstract int lookupLiteral(char c); int pairLeft(int idx) { ret firstIntFromLong(getPair(idx)); } int pairRight(int idx) { ret secondIntFromLong(getPair(idx)); } abstract long getPair(int idx); abstract int numberOfSymbols(); abstract S filePartToString(int iFile, int from, int to); abstract IntegerIterator getRightPairsStartingWith(int symbol, S from); abstract IntegerIterator getLeftPairsEndingWith(int symbol, S from); abstract L<Int> symbolToFiles(int symbol); // values start at numberOfSymbols() abstract S symbolToProtocol(int symbol, O... _); abstract int getFile(int iFile); // iFile starts at 0 abstract int getFileLength(int iFile); // iFile starts at 0 abstract int nFiles(); abstract int nLiterals(); abstract bool isPair(int symbol); abstract CharacterIterator itemCharIteratorWithSkip(int symbol, int skip); }
download show line numbers debug dex old transpilations
Travelled to 7 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt, xrpafgyirdlv
No comments. add comment
Snippet ID: | #1029370 |
Snippet name: | ILCCompactIndex |
Eternal ID of this version: | #1029370/17 |
Text MD5: | e85d3f36aa737b0511bc077ab1ecd11d |
Transpilation MD5: | 33d75cd415041e340c9a12b925a06155 |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2020-08-17 17:04:51 |
Source code size: | 1244 bytes / 27 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 275 / 613 |
Version history: | 16 change(s) |
Referenced in: | #1034167 - Standard Classes + Interfaces (LIVE, continuation of #1003674) |