]> Dogcows Code - chaz/vimcoder/blobdiff - src/com/dogcows/Util.java
add modelines with settings for current coding conventions
[chaz/vimcoder] / src / com / dogcows / Util.java
index 3253ae223c5515457949c2012fb6c658be05d5c9..eda8fff35167cc8cbc2d2de5ef2687ed108997dc 100644 (file)
@@ -61,12 +61,12 @@ public abstract class Util
        }
 
        /**
-        * Quote a string by replacing prepending backslashes and double
+        * Escape a string by replacing prepending backslashes and double
         * quotation characters with an extra backslash.
-        * @param The string to be quoted.
-        * @return The quoted string.
+        * @param The string to be escaped.
+        * @return The escaped string.
         */
-       public static String quote(String a)
+       public static String escape(String a)
        {
                a = a.replaceAll("\\\\", "\\\\\\\\");
                a = a.replaceAll("\"",   "\\\\\\\"");
@@ -151,10 +151,10 @@ public abstract class Util
                String text = template;
                for (String key : terms.keySet())
                {
-                       text = text.replaceAll("\\$" + key + "\\$",
-                                                                  Util.quote(terms.get(key)));
+                       text = text.replaceAll("\\$" + key + "\\$", Util.escape(terms.get(key)));
                }
                return text;
        }
 }
 
+// vim:noet:ts=8
This page took 0.021029 seconds and 4 git commands to generate.