C# Class Lucene.Net.QueryParsers.Flexible.Standard.Parser.EscapeQuerySyntaxImpl

Implementation of IEscapeQuerySyntax for the standard lucene syntax.
Inheritance: IEscapeQuerySyntax
Datei anzeigen Open project: apache/lucenenet Class Usage Examples

Public Methods

Method Description
DiscardEscapeChar ( string input ) : UnescapedCharSequence

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.

Escape ( ICharSequence text, CultureInfo locale, EscapeQuerySyntax type ) : ICharSequence
Escape ( string text, CultureInfo locale, EscapeQuerySyntax type ) : string

Private Methods

Method Description
EscapeChar ( ICharSequence str, CultureInfo locale ) : ICharSequence
EscapeQuoted ( ICharSequence str, CultureInfo locale ) : ICharSequence
EscapeTerm ( ICharSequence term, CultureInfo locale ) : ICharSequence
EscapeWhiteChar ( ICharSequence str, CultureInfo locale ) : ICharSequence

escape all tokens that are part of the parser syntax on a given string

HexToInt ( char c ) : int

Returns the numeric value of the hexadecimal character

ReplaceIgnoreCase ( ICharSequence @string, string sequence1, string escapeChar, CultureInfo locale ) : ICharSequence

replace with ignore case

Method Details

DiscardEscapeChar() public static method

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.
public static DiscardEscapeChar ( string input ) : UnescapedCharSequence
input string
return Lucene.Net.QueryParsers.Flexible.Core.Util.UnescapedCharSequence

Escape() public method

public Escape ( ICharSequence text, CultureInfo locale, EscapeQuerySyntax type ) : ICharSequence
text ICharSequence
locale System.Globalization.CultureInfo
type EscapeQuerySyntax
return ICharSequence

Escape() public method

public Escape ( string text, CultureInfo locale, EscapeQuerySyntax type ) : string
text string
locale System.Globalization.CultureInfo
type EscapeQuerySyntax
return string