1 | static LPair<Int, LS> phraseCache_findAllPhrases(PhraseCache cache, LS tok) { |
2 | LPair<Int, LS> out = new L; |
3 | if (cache != null) for (int i = 1; i < l(tok); i += 2) { |
4 | L<LS> phrases = cache.byFirstWord.get(tok.get(i)); |
5 | for (LS phrase : phrases) |
6 | if (codeTokenSubListEqualsIC_skipFirst(tok, phrase, i)) |
7 | out.add(pair(i, phrase)); |
8 | } |
9 | ret out; |
10 | } |
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: | 196 / 226 |
Version history: | 1 change(s) |
Referenced in: | [show references] |