/** * Given a string that contains WWW escape sequences, translate those escape * sequences back into ASCII characters. Escape sequences are indicted by a * leading "%" character followed by 2 characters indicating the hexidecimal * value of the character that was escaped. * * @param in The string to modify. * @return The modified string. */ public static String www2id(String in) { return unescapeString(in, _URIEscape, ""); }
/** * Given a string that contains WWW escape sequences, translate those escape * sequences back into ASCII characters, with the exception of the escaped * space (0x20) character which appears as "%20". THe Constraint Expression * Parser will break if there are spaces in the CE. Escape sequences are * indicted by a leading "%" character followed by 2 characters indicating * the hexidecimal value of the character that was escaped. * * @param in The string to modify. * @return The modified string. */ public static String www2ce(String in) { return unescapeString(in, _URIEscape, "%20"); }