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

5
LINES

< > BotCompany Repo | #1011785 - javaTok_substringN - possibly faster substring() for javaTok etc. for non-code-tokens

JavaX fragment (include)

static S javaTok_substringN(S s, int i, int j) {
  if (i == j) ret "";
  if (j == i+1 && s.charAt(i) == ' ') ret " ";
  ret s.substring(i, j);
}

Author comment

Began life as a copy of #1004046

download  show line numbers  debug dex   

Travelled to 9 computer(s): aoiabmzegqzx, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, tslmcundralx, tvejysmllsmz

No comments. add comment

Snippet ID: #1011785
Snippet name: javaTok_substringN - possibly faster substring() for javaTok etc. for non-code-tokens
Eternal ID of this version: #1011785/4
Text MD5: 4d9967887cea703eb9171c400aed52fb
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2017-11-05 04:44:15
Source code size: 148 bytes / 5 lines
Pitched / IR pitched: No / No
Views / Downloads: 216 / 238
Version history: 3 change(s)
Referenced in: [show references]

Formerly at http://tinybrain.de/1011785 & http://1011785.tinybrain.de