public static boolean isQuoteUnescaped(byte[] array, int quoteIndex) {
    if (array == null) {
      throw new IllegalArgumentException("isQuoteUnescaped called with a null array");
    }

    if (quoteIndex == array.length - 1 || array[quoteIndex + 1] != ParseConstants.SINGLE_QUOTE) {
      return true;
    } else {
      return false;
    }
  }
Returns a boolean indicating whether the quote was escaped or not
<p>
@param array      byte array in which the quote was found
@param quoteIndex index of the single quote
@return returns true if the quote was unescaped
hbase-client/src/main/java/org/apache/hadoop/hbase/filter/ParseFilter.java