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

8
LINES

< > BotCompany Repo | #1004813 // jmatchStartIgnoreCase function - match first tokens, return rest - does not drop punctuation

JavaX fragment (include)

1  
  static boolean jmatchStartIgnoreCase(S pat, S s) {
2  
    ret jmatchStartIgnoreCase(pat, s, null);
3  
  }
4  
  
5  
  // matches are as you expect, plus an extra item for the rest string
6  
  static boolean jmatchStartIgnoreCase(S pat, S s, Matches matches) {
7  
    ret jmatchStart(pat, s, matches);
8  
  }

Author comment

Began life as a copy of #1002594

download  show line numbers  debug dex  old transpilations   

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

Comments [hide]

ID Author/Program Comment Date
1299 stefan Interestingly, jmatch does not care about case either. I'm confused... 2016-09-01 22:23:04

add comment

Snippet ID: #1004813
Snippet name: jmatchStartIgnoreCase function - match first tokens, return rest - does not drop punctuation
Eternal ID of this version: #1004813/1
Text MD5: df92d1276e19fb43bc1298e72f47da2f
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2016-09-01 22:23:55
Source code size: 294 bytes / 8 lines
Pitched / IR pitched: No / No
Views / Downloads: 708 / 698
Referenced in: [show references]