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

4
LINES

< > BotCompany Repo | #1013030 // smartIndexOfAfter - return index of character after match

JavaX fragment (include)

static int smartIndexOfAfter(S a, S b) {
  int i = indexOf(a, b);
  ret i >= 0 ? i+l(b) : l(a);
}

Author comment

Began life as a copy of #1009200

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: #1013030
Snippet name: smartIndexOfAfter - return index of character after match
Eternal ID of this version: #1013030/1
Text MD5: 51d45d047a28cccd6679096edf429b3a
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2017-12-22 12:34:21
Source code size: 100 bytes / 4 lines
Pitched / IR pitched: No / No
Views / Downloads: 280 / 307
Referenced in: [show references]