Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

6
LINES

< > BotCompany Repo | #1015606 // tokenToCharRange

JavaX fragment (include)

static IntRange tokenToCharRange(L<S> tok, int tokenIndex) {
  S t = get(tok, tokenIndex);
  if (t == null) null;
  int i = tokenToCharIndex(tok, tokenIndex);
  ret intRange(i, i+l(t));
}

download  show line numbers  debug dex  old transpilations   

Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1015606
Snippet name: tokenToCharRange
Eternal ID of this version: #1015606/1
Text MD5: ba13c590f2dabacaabe44f9f4a41a1b9
Author: stefan
Category: javax / parsing
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-05-19 19:33:49
Source code size: 192 bytes / 6 lines
Pitched / IR pitched: No / No
Views / Downloads: 242 / 283
Referenced in: [show references]