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

10
LINES

< > BotCompany Repo | #1008057 // startsWithWord

JavaX fragment (include)

static bool startsWithWord(S a, S b, Matches m) {
  if (!endsWithLetterOrDigit(b)) b += " ";
  if (!startsWithIC(a, b)) false;
  if (m != null) m.m = new S[] {trim(substring(a, l(b)))};
  true;
}

static bool startsWithWord(S a, S b) {
  ret startsWithWord(a, b, null);
}

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: #1008057
Snippet name: startsWithWord
Eternal ID of this version: #1008057/6
Text MD5: 3b42e2b602f6817ef6d5616a81474b9b
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2017-10-08 23:00:35
Source code size: 280 bytes / 10 lines
Pitched / IR pitched: No / No
Views / Downloads: 540 / 555
Version history: 5 change(s)
Referenced in: [show references]