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

5
LINES

< > BotCompany Repo | #1017796 // startsWith_trim - trim matches

JavaX fragment (include)

static bool startsWith_trim(S a, S b, Matches m) {
  if (!startsWith(a, b)) false;
  m.m = new S[] {trim(substring(a, l(b)))};
  true;
}

Author comment

Began life as a copy of #1011049

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1017796
Snippet name: startsWith_trim - trim matches
Eternal ID of this version: #1017796/1
Text MD5: d477ea51ef1ae7ac6e2b7c35904a991e
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-08-12 15:00:38
Source code size: 140 bytes / 5 lines
Pitched / IR pitched: No / No
Views / Downloads: 381 / 425
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)
#1021353 - startsWithAfterTrim - prefix is not trimmed