1 | static String ltrim(String s) { |
2 | if (s == null) null; |
3 | int i = 0; |
4 | while (i < s.length() && " \t\r\n".indexOf(s.charAt(i)) >= 0) |
5 | ++i; |
6 | return i > 0 ? substring(s, i) : s; |
7 | } |
Began life as a copy of #2000477
download show line numbers debug dex old transpilations
Travelled to 14 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, irmadwmeruwu, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1001543 |
Snippet name: | ltrim |
Eternal ID of this version: | #1001543/4 |
Text MD5: | e79d260e7e184694ace7f6fa88599cbe |
Author: | stefan |
Category: | |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2019-09-03 14:22:27 |
Source code size: | 186 bytes / 7 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 712 / 936 |
Version history: | 3 change(s) |
Referenced in: | [show references] |