private final boolean consumeString ( ) throws LazyException { boolean escaped = false ; n ++ ; char c = cbuf [ n ] ; while ( c != CH_QUOTE ) { if ( c == CH_BACKSLASH ) { n ++ ; c = cbuf [ n ] ; if ( ! ( c == CH_QUOTE || c == CH_BACKSLASH || c == CH_SLASH || c == CH_b || c == CH_f || c == CH_n || c == CH_r || c == CH_t || c == CH_u ) ) { throw new LazyException ( "Invalid escape code" , n ) ; } escaped = true ; } n ++ ; c = cbuf [ n ] ; } return escaped ; }
element if an escape character is found