static bool eqicOptSlash(S a, S b) { int n = lCommonPrefixIC(a, b); int la = l(a), lb = l(b); if (n == la && n == lb) true; if (n == lb && n == la-1 && lastChar(a) == '/') true; if (n == la && n == lb-1 && lastChar(b) == '/') true; false; }
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: | #1013545 | 
| Snippet name: | eqicOptSlash - eqic allowing an optional trailing slash on left or right | 
| Eternal ID of this version: | #1013545/4 | 
| Text MD5: | dcfceedf268f90218f5411113a1d3bdc | 
| Author: | stefan | 
| Category: | javax | 
| Type: | JavaX fragment (include) | 
| Public (visible to everyone): | Yes | 
| Archived (hidden from active list): | No | 
| Created/modified: | 2018-01-09 10:33:50 | 
| Source code size: | 259 bytes / 8 lines | 
| Pitched / IR pitched: | No / No | 
| Views / Downloads: | 588 / 643 | 
| Version history: | 3 change(s) | 
| Referenced in: | [show references] |