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

5
LINES

< > BotCompany Repo | #1007088 // dropTrailingBackslashR

JavaX fragment (include)

static S dropTrailingBackslashR(S s) {
  int i = l(s);
  while (i > 0 && s.charAt(i-1) == '\r') --i;
  ret substring(s, 0, i);
}

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: 599 / 1032
Version history: 1 change(s)
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)