@Test public void testEscapeLFCRBackSlash() { checkEscapeLFCRBackSlash("abc", "abc"); checkEscapeLFCRBackSlash("\\n", "\n"); checkEscapeLFCRBackSlash("\\r", "\r"); checkEscapeLFCRBackSlash("\\\\a\\r", "\\a\r"); }
public static String escapeLFCRBackSlash(String s) { s = s.replace("\\", "\\\\"); s = s.replace("\r", "\\r"); s = s.replace("\n", "\\n"); return s; }
Strings { public static String escapeLFCRBackSlash(String s) { s = s.replace("\\", "\\\\"); s = s.replace("\r", "\\r"); s = s.replace("\n", "\\n"); return s; } }
Strings { public static String escapeLFCRBackSlash(String s) { s = s.replace("\\", "\\\\"); s = s.replace("\r", "\\r"); s = s.replace("\n", "\\n"); return s; }  }
Strings { public static String escapeLFCRBackSlash(String s) { s = s.replace("\\", "\\\\"); s = s.replace("\r", "\\r"); s = s.replace("\n", "\\n"); return s; }  @Deprecated static String replace(String source, String find, String repl); @Deprecated static String toString(final Object[] a); static String trimComma(String s); static void initializeEscapeMap(); static String escapeXml(String s); static boolean initializeUnescapePattern(); static String unescapeXml(String s); static String escapeLFCRBackSlash(String s); }
Strings { public static String escapeLFCRBackSlash(String s) { s = s.replace("\\", "\\\\"); s = s.replace("\r", "\\r"); s = s.replace("\n", "\\n"); return s; }  @Deprecated static String replace(String source, String find, String repl); @Deprecated static String toString(final Object[] a); static String trimComma(String s); static void initializeEscapeMap(); static String escapeXml(String s); static boolean initializeUnescapePattern(); static String unescapeXml(String s); static String escapeLFCRBackSlash(String s);  }