question: static private boolean isQuoteEscapedChar ( String s , int pos ) { boolean openQuoteFound = false ; boolean closeQuoteFound = false ; String s2 = s . substring ( 0 , pos ) ; int posOpen = pos ; while ( ( posOpen = s2 . lastIndexOf ( "\\Q" , posOpen - 1 ) ) != - 1 ) { if ( ! isSlashEscapedChar ( s2 , posOpen ) ) { openQuoteFound = true ; break ; } } if ( openQuoteFound ) { if ( s2 . indexOf ( "\\E" , posOpen ) != - 1 ) { closeQuoteFound = true ; } } return openQuoteFound && ! closeQuoteFound ; }
target:  Determines if the character at the specified position of a string is quote-escaped (between \\Q and \\E)