Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

6
LINES

< > BotCompany Repo | #1007672 // xltrim - trim also line breaks

JavaX fragment (include)

1  
static String xltrim(String s) {
2  
  int i = 0, n = l(s);
3  
  while (i < n && contains(" \t\r\n", s.charAt(i)))
4  
    ++i;
5  
  return substr(s, i);
6  
}

Author comment

Began life as a copy of #1001543

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: #1007672
Snippet name: xltrim - trim also line breaks
Eternal ID of this version: #1007672/4
Text MD5: bf1103521f8b0fd1c9df6726fec1e175
Author: stefan
Category:
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2021-08-24 15:23:45
Source code size: 146 bytes / 6 lines
Pitched / IR pitched: No / No
Views / Downloads: 634 / 620
Version history: 3 change(s)
Referenced in: [show references]