MCPcopy Create free account
hub / github.com/diffplug/goomph / toUnixNewline

Method toUnixNewline

src/main/java/com/diffplug/gradle/FileMisc.java:150–152  ·  view source on GitHub ↗

Enforces unix newlines on the given string.

(String input)

Source from the content-addressed store, hash-verified

148 //////////////////////////////
149 /** Enforces unix newlines on the given string. */
150 public static String toUnixNewline(String input) {
151 return input.replace("\r\n", "\n");
152 }
153
154 /** Quotes the given input string iff it contains whitespace. */
155 public static String quote(String input) {

Callers 7

computeDiffMethod · 0.95
readMethod · 0.95
readMethod · 0.95
actionMethod · 0.95
readLinesMethod · 0.95
setTaskMethod · 0.95
installMethod · 0.95

Calls 1

replaceMethod · 0.80

Tested by 2

computeDiffMethod · 0.76
readMethod · 0.76