1 | static S ai_parse_spacedDash(S s, Pair<S> sep) {
|
2 | L<S> tok = javaTok(s); |
3 | int i = smartIndexOfSpacedDash(tok); |
4 | if (i >= l(tok)) null; |
5 | ret enclose(sep, joinSubList(tok, 0, i-1)) |
6 | + joinSubList(tok, i-1, i+2) |
7 | + enclose(sep, joinSubList(tok, i+2)); |
8 | } |
Began life as a copy of #1013105
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: | #1013560 |
| Snippet name: | ai_parse_spacedDash |
| Eternal ID of this version: | #1013560/3 |
| Text MD5: | 21e3e723ae6c651073b91bf46dfe18c8 |
| Author: | stefan |
| Category: | javax |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2018-01-09 13:14:45 |
| Source code size: | 267 bytes / 8 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 617 / 630 |
| Version history: | 2 change(s) |
| Referenced in: | [show references] |