1 | static S dropTrailingBackslashR(S s) {
|
2 | int i = l(s); |
3 | while (i > 0 && s.charAt(i-1) == '\r') --i; |
4 | ret substring(s, 0, i); |
5 | } |
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: | #1007088 |
| Snippet name: | dropTrailingBackslashR |
| Eternal ID of this version: | #1007088/2 |
| Text MD5: | c415257d87efe1286aa30eccd1b19db5 |
| Author: | stefan |
| Category: | javax |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2017-03-02 22:06:26 |
| Source code size: | 132 bytes / 5 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 907 / 1339 |
| Version history: | 1 change(s) |
| Referenced in: | [show references] |