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

3
LINES

< > BotCompany Repo | #1027992 // dropCarriageReturn - converts Windows to Unix line breaks AND drops single \r's (screws up the Java compiler)

JavaX fragment (include) [tags: use-pretranspiled]

Libraryless. Click here for Pure Java version (2490L/16K).

sS dropCarriageReturn(S s) {
  ret replace(s, "\r", "");
}

download  show line numbers  debug dex  old transpilations   

Travelled to 7 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt, xrpafgyirdlv

No comments. add comment

Snippet ID: #1027992
Snippet name: dropCarriageReturn - converts Windows to Unix line breaks AND drops single \r's (screws up the Java compiler)
Eternal ID of this version: #1027992/1
Text MD5: 8573b4a2c494fb150b1eac6c7588d5ee
Transpilation MD5: a8a202c9c9ea3d86dc90bf556713c7b2
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2020-04-26 01:40:15
Source code size: 60 bytes / 3 lines
Pitched / IR pitched: No / No
Views / Downloads: 180 / 272
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)