fn escaped_char(i: &str) -> IResult<&str, char> {
    preceded(
        char('\\'),
        alt((
            preceded(char('U'), hex_digits(8)),
            preceded(char('u'), hex_digits(4)),
            value('\u{7}', char('a')),
            value('\u{8}', char('b')),
            value('\t', char('t')),
            value('\n', char('n')),
            value('\u{B}', char('v')),
            value('\u{C}', char('f')),
            value('\u{D}', char('r')),
            value('\u{1B}', char('e')),
            value('\u{22}', char('"')),
            value('\u{27}', char('\'')),
            value('\u{3F}', char('?')),
            value('\u{5C}', char('\\')),
            anychar,
        )),
    )(i)
}
/// Parses `\uhhhh` or `\U00hhhhhh` or other escaped characters
/// Should roughly match the behaviour of [icu::UnicodeString::unescape](https://unicode-org.github.io/icu-docs/apidoc/released/icu4c/classicu_1_1UnicodeString.html#a330aa00f6ab316d3f7bbe1331c084d15)
/// 100% compatibility is not necessary if no-locale uses certain escape sequences
Parses `\uhhhh` or `\U00hhhhhh` or other escaped characters
Should roughly match the behaviour of [icu::UnicodeString::unescape]
100% compatibility is not necessary if no-locale uses certain escape sequences
Parses ` \ uhhhh ` or ` \ U00hhhhhh ` or other escaped characters Should roughly match the behaviour of [ icu :: UnicodeString :: unescape ] 100% compatibility is not necessary if no - locale uses certain escape sequences
fn escaped_char(i: &str) -> IResult<&str, char> {
    preceded(
        char('\\'),
        alt((
            preceded(char('U'), hex_digits(8)),
            preceded(char('u'), hex_digits(4)),
            value('\u{7}', char('a')),
            value('\u{8}', char('b')),
            value('\t', char('t')),
            value('\n', char('n')),
            value('\u{B}', char('v')),
            value('\u{C}', char('f')),
            value('\u{D}', char('r')),
            value('\u{1B}', char('e')),
            value('\u{22}', char('"')),
            value('\u{27}', char('\'')),
            value('\u{3F}', char('?')),
            value('\u{5C}', char('\\')),
            anychar,
        )),
    )(i)
}
fn escaped_char ( i : & str ) -> IResult < & str , char > { preceded ( char ( '\\' ) , alt ( ( preceded ( char ( 'U' ) , hex_digits ( 8 ) ) , preceded ( char ( 'u' ) , hex_digits ( 4 ) ) , value ( '\u{7}' , char ( 'a' ) ) , value ( '\u{8}' , char ( 'b' ) ) , value ( '\t' , char ( 't' ) ) , value ( '\n' , char ( 'n' ) ) , value ( '\u{B}' , char ( 'v' ) ) , value ( '\u{C}' , char ( 'f' ) ) , value ( '\u{D}' , char ( 'r' ) ) , value ( '\u{1B}' , char ( 'e' ) ) , value ( '\u{22}' , char ( '"' ) ) , value ( '\u{27}' , char ( '\'' ) ) , value ( '\u{3F}' , char ( '?' ) ) , value ( '\u{5C}' , char ( '\\' ) ) , anychar , ) ) , ) ( i ) }
Parses `\uhhhh` or `\U00hhhhhh` or other escaped characters
Should roughly match the behaviour of [icu::UnicodeString::unescape](https://unicode-org.github.io/icu-docs/apidoc/released/icu4c/classicu_1_1UnicodeString.html#a330aa00f6ab316d3f7bbe1331c084d15)
100% compatibility is not necessary if no-locale uses certain escape sequences
Parses ` \ uhhhh ` or ` \ U00hhhhhh ` or other escaped characters Should roughly match the behaviour of [ icu :: UnicodeString :: unescape ] ( https : // unicode - org . github . io / icu - docs / apidoc / released / icu4c / classicu_1_1UnicodeString . html#a330aa00f6ab316d3f7bbe1331c084d15 ) 100% compatibility is not necessary if no - locale uses certain escape sequences
i
&str
i
&str