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

11
LINES

< > BotCompany Repo | #1009625 // winQuote2 function - experimental

JavaX fragment (include)

public static String winQuote2(S text) {
  if (text == null) return null;
  return "\"" + text
    .replace("\"", "\\\"")
    .replace("\n", "\\n")
    .replace("\r", "\\r") + "\"";
}

static S winQuote2(File f) {
  ret winQuote2(f.getAbsolutePath());
}

Author comment

Began life as a copy of #1000830

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: #1009625
Snippet name: winQuote2 function - experimental
Eternal ID of this version: #1009625/2
Text MD5: c4df4912104f020c3b36a88c2b62898b
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2017-08-12 18:39:24
Source code size: 263 bytes / 11 lines
Pitched / IR pitched: No / No
Views / Downloads: 418 / 471
Version history: 1 change(s)
Referenced in: [show references]