C# Class Lucene.Net.Analysis.Util.CharArrayIterator

A CharacterIterator used internally for use with BreakIterator @lucene.internal
Inheritance: CharacterIterator
显示文件 Open project: apache/lucenenet Class Usage Examples

Public Methods

Method Description
Clone ( ) : object
First ( ) : char
Last ( ) : char
NewSentenceInstance ( ) : CharArrayIterator

Create a new CharArrayIterator that works around JRE bugs in a manner suitable for BreakIterator#getSentenceInstance()

NewWordInstance ( ) : CharArrayIterator

Create a new CharArrayIterator that works around JRE bugs in a manner suitable for BreakIterator#getWordInstance()

Next ( ) : char
Previous ( ) : char
SetIndex ( int position ) : char
SetText ( char array, int start, int length ) : void

Set a new region of text to be examined by this iterator

Protected Methods

Method Description
JreBugWorkaround ( char ch ) : char

Method Details

Clone() public method

public Clone ( ) : object
return object

First() public method

public First ( ) : char
return char

JreBugWorkaround() protected abstract method

protected abstract JreBugWorkaround ( char ch ) : char
ch char
return char

Last() public method

public Last ( ) : char
return char

NewSentenceInstance() public static method

Create a new CharArrayIterator that works around JRE bugs in a manner suitable for BreakIterator#getSentenceInstance()
public static NewSentenceInstance ( ) : CharArrayIterator
return CharArrayIterator

NewWordInstance() public static method

Create a new CharArrayIterator that works around JRE bugs in a manner suitable for BreakIterator#getWordInstance()
public static NewWordInstance ( ) : CharArrayIterator
return CharArrayIterator

Next() public method

public Next ( ) : char
return char

Previous() public method

public Previous ( ) : char
return char

SetIndex() public method

public SetIndex ( int position ) : char
position int
return char

SetText() public method

Set a new region of text to be examined by this iterator
public SetText ( char array, int start, int length ) : void
array char text buffer to examine
start int offset into buffer
length int maximum length to examine
return void