vgritsenko 2004/02/10 16:17:34
Modified: src/java/org/apache/cocoon/components/language/markup/xsp
XSLTExtension.java
Log:
Comments
Revision Changes Path
1.4 +10 -7
cocoon-2.1/src/java/org/apache/cocoon/components/language/markup/xsp/XSLTExtension.java
Index: XSLTExtension.java
===================================================================
RCS file:
/home/cvs/cocoon-2.1/src/java/org/apache/cocoon/components/language/markup/xsp/XSLTExtension.java,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- XSLTExtension.java 24 Oct 2003 01:10:56 -0000 1.3
+++ XSLTExtension.java 11 Feb 2004 00:17:34 -0000 1.4
@@ -61,7 +61,7 @@
/**
* Escapes '"' and '\' characters in a String (add a '\' before them) so
that it can
- * be inserted in java source + quote special characters as utf-8
+ * be inserted in java source + quote special characters as UTF-8
*/
public static String escapeJavaString(String string) {
char chr[] = string.toCharArray();
@@ -109,8 +109,9 @@
}
/**
- * quote special characters as utf-8
- * TC: it's code doublication but that way we don't
+ * Quote special characters as UTF-8
+ *
+ * TC: It's code duplication but that way we don't
* have to iterate through the StringBuffer twice
*/
public static String escapeString(String string) {
@@ -140,17 +141,19 @@
}
/**
- * Escapes '"' and '\' characters in a String (add a '\' before them) so
that it can
- * be inserted in java source.
+ * @see #escapeString(String)
*/
public String escape(String string) {
return escapeString(string);
}
+ /**
+ * This method used by Java XSP core logicsheet.
+ * @see #escapeJavaString(String)
+ */
public String escapeJava(String string) {
return escapeJavaString(string);
}
-
/**
* Counts amount of spaces in the input line from the beginning