1 | static bool eqicOptSlash(S a, S b) {
|
2 | int n = lCommonPrefixIC(a, b); |
3 | int la = l(a), lb = l(b); |
4 | if (n == la && n == lb) true; |
5 | if (n == lb && n == la-1 && lastChar(a) == '/') true; |
6 | if (n == la && n == lb-1 && lastChar(b) == '/') true; |
7 | false; |
8 | } |
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: | 589 / 645 |
| Version history: | 3 change(s) |
| Referenced in: | [show references] |