1 | static S replaceSecondLong(S s, long l) {
|
2 | L<S> tok = javaTok(s); |
3 | int i = jfind(tok, "<int>"); |
4 | if (i < 0) ret s; |
5 | i = jfind(tok, i+2, "<int>"); |
6 | if (i < 0) ret s; |
7 | tok.set(i, str(l)); |
8 | ret join(tok); |
9 | } |
Began life as a copy of #1011284
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: | #1011287 |
| Snippet name: | replaceSecondLong - replace second long in string |
| Eternal ID of this version: | #1011287/4 |
| Text MD5: | 0000edbb96124a07d1898b42f9fc6016 |
| Author: | stefan |
| Category: | javax / parsing |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2017-10-22 03:58:28 |
| Source code size: | 218 bytes / 9 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 675 / 729 |
| Version history: | 3 change(s) |
| Referenced in: | [show references] |