1 | public static String winQuote2(S text) {
|
2 | if (text == null) return null; |
3 | return "\"" + text |
4 | .replace("\"", "\\\"")
|
5 | .replace("\n", "\\n")
|
6 | .replace("\r", "\\r") + "\"";
|
7 | } |
8 | |
9 | static S winQuote2(File f) {
|
10 | ret winQuote2(f.getAbsolutePath()); |
11 | } |
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: | 599 / 666 |
| Version history: | 1 change(s) |
| Referenced in: | [show references] |