public final class StringUtil extends Object
Modifier and Type | Method and Description |
---|---|
static String |
unescape(String literal,
String escapedChars)
Removes 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–2017 The Apache Software Foundation. All rights reserved.