static private boolean isQuoteEscapedChar(final String s,final int pos){
  boolean openQuoteFound=false;
  boolean closeQuoteFound=false;
  final 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;
}

static private boolean isQuoteEscapedChar ( final String s , final int pos ) { boolean openQuoteFound = false ; boolean closeQuoteFound = false ; final 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 ; }
determines if the character at the specified position of a string is quote - escaped ( between \ \ q and \ \ e )
