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

4
LINES

< > BotCompany Repo | #1028563 // insertAfter - insert a string after first occurrence of a substring

JavaX fragment (include)

sS insertAfter(S s, S a, S b) {
  int i = indexOf(s, a);
  ret i < 0 ? s : insertAt(s, i+l(a), b);
}

Author comment

Began life as a copy of #1028493

download  show line numbers  debug dex  old transpilations   

Travelled to 7 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt, xrpafgyirdlv

No comments. add comment

Snippet ID: #1028563
Snippet name: insertAfter - insert a string after first occurrence of a substring
Eternal ID of this version: #1028563/1
Text MD5: e3d25d68e701b3c78efcddca6bd7f460
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2020-06-27 12:13:08
Source code size: 103 bytes / 4 lines
Pitched / IR pitched: No / No
Views / Downloads: 130 / 152
Referenced in: [show references]