= Iterated

This commit is contained in:
Matthew Cech
2019-04-15 23:31:33 -07:00
parent e312f50056
commit 91e941e69a
2 changed files with 32 additions and 1 deletions
+13 -1
View File
@@ -10,8 +10,20 @@ public class StringUtils
str = str.replaceAll("\\\\r", "\r");
str = str.replaceAll("\\\\f", "\f");
str = str.replaceAll("\\\\\"", "\"");
str = str.replaceAll("\\\\\\\\", "\\");
str = str.replaceAll("\\\\\\\\\\\\", "\\\\");
return str;
}
public static String ReEscape(String str)
{
str = str.replaceAll("\\\b", "\\\\\\b");
str = str.replaceAll("\\\n", "\\\\\\n");
str = str.replaceAll("\\\t", "\\\\\\t");
str = str.replaceAll("\\\r", "\\\\\\r");
str = str.replaceAll("\\\f", "\\\\\\f");
return str;
}
}