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

10
LINES

< > BotCompany Repo | #1012994 // swicEwic

JavaX fragment (include)

1  
static bool swicEwic(S s, S prefix, S suffix) {
2  
  ret swic(s, prefix) && ewic(s, suffix);
3  
}
4  
5  
static bool swicEwic(S s, S prefix, S suffix, Matches m) {
6  
  if (!swicEwic(s, prefix, suffix)) false;
7  
  if (m != null)
8  
    m.m = new S[] {substring(s, l(prefix), l(s)-l(suffix))};
9  
  true;
10  
}

Author comment

Began life as a copy of #1011755

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: #1012994
Snippet name: swicEwic
Eternal ID of this version: #1012994/5
Text MD5: fbe6b6efdcf0da7bcbadb59bad0a7e5e
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2017-12-22 19:04:45
Source code size: 291 bytes / 10 lines
Pitched / IR pitched: No / No
Views / Downloads: 424 / 446
Version history: 4 change(s)
Referenced in: [show references]