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
파일 보기 프로젝트 열기: apache/lucenenet 1 사용 예제들

공개 메소드들

메소드 설명
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