MCPcopy Create free account
hub / github.com/agateau/pixelwheels / parseString

Method parseString

core/src/com/agateau/translations/PoParser.java:325–330  ·  view source on GitHub ↗
(String string)

Source from the content-addressed store, hash-verified

323 }
324
325 static String parseString(String string) {
326 // Remove surrounding quotes. Assume they are there.
327 string = string.substring(1, string.length() - 1);
328
329 return string.replace("\\\"", "\"").replace("\\n", "\n").replace("\\\\", "\\");
330 }
331}

Callers 2

parseMethod · 0.95
testParseStringMethod · 0.95

Calls 1

replaceMethod · 0.80

Tested by 1

testParseStringMethod · 0.76