1 | static S dropTrailingNullChars(S s) {
|
2 | int i = l(s); |
3 | while (i > 0 && s.charAt(i-1) == '\0') --i; |
4 | ret takeFirst(i, s); |
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: | #1015082 |
| Snippet name: | dropTrailingNullChars |
| Eternal ID of this version: | #1015082/1 |
| Text MD5: | dd4e0d3de0f9a231c87dd88810904892 |
| Author: | stefan |
| Category: | javax |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2018-05-07 23:47:40 |
| Source code size: | 128 bytes / 5 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 608 / 668 |
| Referenced in: | [show references] |