C# Класс 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'.
Наследование: TokenFilter
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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

Описание методов

ASCIIFoldingFilter() публичный Метод

public ASCIIFoldingFilter ( TokenStream input ) : System.Diagnostics
input TokenStream
Результат System.Diagnostics

ASCIIFoldingFilter() публичный Метод

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? ///
Результат System.Diagnostics

FoldToASCII() публичный статический Метод

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
Результат int

FoldToASCII() публичный Метод

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
Результат void

IncrementToken() публичный Метод

public IncrementToken ( ) : bool
Результат bool

Reset() публичный Метод

public Reset ( ) : void
Результат void