sS dropLeadingNewLine(S s) { if (startsWith(s, "\r\n")) ret substring(s, 2); if (startsWith(s, "\n")) ret substring(s, 1); ret s; }
download show line numbers debug dex old transpilations
Travelled to 6 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1026310 |
Snippet name: | dropLeadingNewLine |
Eternal ID of this version: | #1026310/1 |
Text MD5: | f6ffa89fabd1f9aa08476196d9f3ee27 |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2019-12-15 18:34:45 |
Source code size: | 141 bytes / 5 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 200 / 243 |
Referenced in: | #1006654 - Standard functions list 2 (LIVE, continuation of #761) #1031224 - dropLeadingNewLines - does not drop them if they contain spaces |