static LPair<Int, LS> phraseCache_findAllPhrases(PhraseCache cache, LS tok) { LPair<Int, LS> out = new L; if (cache != null) for (int i = 1; i < l(tok); i += 2) { L<LS> phrases = cache.byFirstWord.get(tok.get(i)); for (LS phrase : phrases) if (codeTokenSubListEqualsIC_skipFirst(tok, phrase, i)) out.add(pair(i, phrase)); } ret out; }
download show line numbers debug dex old transpilations
Travelled to 7 computer(s): bhatertpkbcr, cfunsshuasjs, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt
No comments. add comment
| Snippet ID: | #1022268 | 
| Snippet name: | phraseCache_findAllPhrases | 
| Eternal ID of this version: | #1022268/2 | 
| Text MD5: | 9169a1ae57ac07c63e48bdaca4482ad5 | 
| Author: | stefan | 
| Category: | javax / a.i. | 
| Type: | JavaX fragment (include) | 
| Public (visible to everyone): | Yes | 
| Archived (hidden from active list): | No | 
| Created/modified: | 2019-03-12 13:37:04 | 
| Source code size: | 373 bytes / 10 lines | 
| Pitched / IR pitched: | No / No | 
| Views / Downloads: | 402 / 438 | 
| Version history: | 1 change(s) | 
| Referenced in: | [show references] |