public class StringUtil extends Object
Constructor and Description |
---|
StringUtil() |
Modifier and Type | Method and Description |
---|---|
static String |
unescape(String literal,
String escapedChars)
remove all escape sequences in a string and return unescaped string
escape character is backslash \, so \\ --> \, \' --> ' additional
escaped characters can be allowed in escapedChars
|
public static String unescape(String literal, String escapedChars)
literal
- String to unescapeescapedChars
- set of allowed characters to be escaped with a backslash, if set to
null then ' (quote) and \ (backslash) are allowed to be escapedCopyright © 2009-2013 The Apache Software Foundation. All Rights Reserved.