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

5
LINES

< > BotCompany Repo | #1008644 // charRangeToTokenRange

JavaX fragment (include)

static IntRange charRangeToTokenRange(L<S> tok, IntRange r) {
  ret r == null ? null : new IntRange(
    charToTokenIndex_left(tok, r.start),
    charToTokenIndex_right(tok, r.end));
}

Author comment

Began life as a copy of #1008637

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1008644
Snippet name: charRangeToTokenRange
Eternal ID of this version: #1008644/1
Text MD5: 381536c87dee7437d708846dbe66b1ae
Author: stefan
Category: javax / parsing
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2017-05-26 17:27:55
Source code size: 188 bytes / 5 lines
Pitched / IR pitched: No / No
Views / Downloads: 584 / 602
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)
#1008685 - charRangeToCodeTokens