// returns null if no comment static S getJavaLineComment(S s) { L<S> tok = javaTok(s); S x = last(tok); int i = x.indexOf("//"); ret i < 0 ? null : x.substring(i+2).trim(); }
Began life as a copy of #1003337
download show line numbers debug dex old transpilations
Travelled to 14 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, ddnzoavkxhuk, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
| Snippet ID: | #1003572 |
| Snippet name: | getJavaLineComment - only at end of input |
| Eternal ID of this version: | #1003572/2 |
| Text MD5: | 0bf3dfde0652ac318e1c4a862018c041 |
| Author: | stefan |
| Category: | javax |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2021-04-14 17:26:17 |
| Source code size: | 189 bytes / 7 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 868 / 848 |
| Version history: | 1 change(s) |
| Referenced in: | [show references] |