graveyard/tools/org/apache/axis/tools/common/Utils.java
/**
	 * Escapes special characters like " so that they can be output 
	 * in a C string literal. Also removes newlines, since C string
	 * literals can't be split over lines.
	 */
Escapes special characters like " so that they can be output
in a C string literal. Also removes newlines, since C string
literals can't be split over lines.
Escapes special characters like " so that they can be output in a C string literal . Also removes newlines since C string literals can ' t be split over lines .
String pretty(String s) {
		StringBuffer sb = new StringBuffer(s);
		for (int i = 0; i < sb.length(); i++)
			switch (sb.charAt(i)) {
				case '"' :
					sb = sb.insert(i, '\\');
					i++;
					break;
				case '\n' :
					sb = sb.deleteCharAt(i);
					i--;
					break;
			}
		return sb.toString();
	}
String pretty ( String s ) { StringBuffer sb = new StringBuffer ( s ) ; for ( int i = 0 ; i < sb . length ( ) ; i ++ ) switch ( sb . charAt ( i ) ) { case '"' : sb = sb . insert ( i , '\\' ) ; i ++ ; break ; case '\n' : sb = sb . deleteCharAt ( i ) ; i -- ; break ; } return sb . toString ( ) ; }
Escapes special characters like " so that they can be output
 in a C string literal.
Escapes special characters like " so that they can be output in a C string literal .