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

10
LINES

< > BotCompany Repo | #1008057 // startsWithWord

JavaX fragment (include)

1  
static bool startsWithWord(S a, S b, Matches m) {
2  
  if (!endsWithLetterOrDigit(b)) b += " ";
3  
  if (!startsWithIC(a, b)) false;
4  
  if (m != null) m.m = new S[] {trim(substring(a, l(b)))};
5  
  true;
6  
}
7  
8  
static bool startsWithWord(S a, S b) {
9  
  ret startsWithWord(a, b, null);
10  
}

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: 543 / 558
Version history: 5 change(s)
Referenced in: [show references]