C# Class Lucene.Net.Analysis.Miscellaneous.ASCIIFoldingFilter

This class converts alphabetic, numeric, and symbolic Unicode characters which are not in the first 127 ASCII characters (the "Basic Latin" Unicode block) into their ASCII equivalents, if one exists. Characters from the following Unicode blocks are converted; however, only those characters with reasonable ASCII alternatives are converted: See: http://en.wikipedia.org/wiki/Latin_characters_in_Unicode For example, 'à' will be replaced by 'a'.
Inheritance: TokenFilter
Afficher le fichier Open project: apache/lucenenet Class Usage Examples

Méthodes publiques

Méthode Description
ASCIIFoldingFilter ( TokenStream input ) : System.Diagnostics
ASCIIFoldingFilter ( TokenStream input, bool preserveOriginal ) : System.Diagnostics

Create a new ASCIIFoldingFilter.

FoldToASCII ( char input, int inputPos, char output, int outputPos, int length ) : int

Converts characters above ASCII to their ASCII equivalents. For example, accents are removed from accented characters.

FoldToASCII ( char input, int length ) : void

Converts characters above ASCII to their ASCII equivalents. For example, accents are removed from accented characters.

IncrementToken ( ) : bool
Reset ( ) : void

Method Details

ASCIIFoldingFilter() public méthode

public ASCIIFoldingFilter ( TokenStream input ) : System.Diagnostics
input TokenStream
Résultat System.Diagnostics

ASCIIFoldingFilter() public méthode

Create a new ASCIIFoldingFilter.
public ASCIIFoldingFilter ( TokenStream input, bool preserveOriginal ) : System.Diagnostics
input TokenStream /// TokenStream to filter
preserveOriginal bool /// should the original tokens be kept on the input stream with a 0 position increment /// from the folded tokens? ///
Résultat System.Diagnostics

FoldToASCII() public static méthode

Converts characters above ASCII to their ASCII equivalents. For example, accents are removed from accented characters.
public static FoldToASCII ( char input, int inputPos, char output, int outputPos, int length ) : int
input char The characters to fold
inputPos int Index of the first character to fold
output char The result of the folding. Should be of size >= {@code length * 4}.
outputPos int Index of output where to put the result of the folding
length int The number of characters to fold
Résultat int

FoldToASCII() public méthode

Converts characters above ASCII to their ASCII equivalents. For example, accents are removed from accented characters.
public FoldToASCII ( char input, int length ) : void
input char The string to fold
length int The number of characters in the input string
Résultat void

IncrementToken() public méthode

public IncrementToken ( ) : bool
Résultat bool

Reset() public méthode

public Reset ( ) : void
Résultat void