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

3
LINES

< > BotCompany Repo | #1016253 // fixNewLines_old - convert both sole \r and \r\n to \n (slow version)

JavaX fragment (include)

1  
static S fixNewLines_old(S s) {
2  
  ret s.replace("\r\n", "\n").replace("\r", "\n");
3  
}

Author comment

Began life as a copy of #1006746

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: #1016253
Snippet name: fixNewLines_old - convert both sole \r and \r\n to \n (slow version)
Eternal ID of this version: #1016253/2
Text MD5: f2ee361cefa7f836cbedc95405305162
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-06-12 14:59:40
Source code size: 86 bytes / 3 lines
Pitched / IR pitched: No / No
Views / Downloads: 340 / 391
Version history: 1 change(s)
Referenced in: [show references]