java - converting string to string literal -


possible duplicate:
how convert string java string literal?

is there library function takes string , converts corresponding string literal? example:

please say\ask "what?" 3 times! -> "please say\\ask \"what?\" 3 times!"

i think commons lang stringutils that

http://commons.apache.org/proper/commons-lang/apidocs/org/apache/commons/lang3/stringescapeutils.html


Comments

Popular posts from this blog

javascript - Iterate over array and calculate average values of array-parts -

iphone - Using nested NSDictionary with Picker -

objective c - Newbie question -multiple parameters -