docs: public static int parseSingleQuotes(final char[] query, int offset,
        boolean standardConformingStrings) {
      // check for escape string syntax (E'')
      if (standardConformingStrings
          && offset >= 2
          && (query[offset - 1] == 'e' || query[offset - 1] == 'E')
          && charTerminatesIdentifier(query[offset - 2])) {
        standardConformingStrings = false;
      }
  
      if (standardConformingStrings) {
        // do NOT treat backslashes as escape characters
        while (++offset < query.length) {
          switch (query[offset]) {
            case '\'':
              return offset;
            default:
              break;
          }
        }
      } else {
        // treat backslashes as escape characters
        while (++offset < query.length) {
          switch (query[offset]) {
            case '\\':
              ++offset;
              break;
            case '\'':
              return offset;
            default:
              break;
          }
        }
      }
  
      return query.length;
    }