Class EscapeQuerySyntaxImpl

    • Constructor Detail

      • EscapeQuerySyntaxImpl

        public EscapeQuerySyntaxImpl()
    • Method Detail

      • escape

        public java.lang.CharSequence escape​(java.lang.CharSequence text,
                                             java.util.Locale locale,
                                             EscapeQuerySyntax.Type type)
        Specified by:
        escape in interface EscapeQuerySyntax
        Parameters:
        text - - text to be escaped
        locale - - locale for the current query
        type - - select the type of escape operation to use
        Returns:
        escaped text
      • discardEscapeChar

        public static UnescapedCharSequence discardEscapeChar​(java.lang.CharSequence input)
                                                       throws ParseException
        Returns a String where the escape char has been removed, or kept only once if there was a double escape. Supports escaped unicode characters, e. g. translates A to A.
        Throws:
        ParseException