Class BreakIteratorBoundaryScanner
A Lucene.Net.Search.VectorHighlight.IBoundaryScanner implementation that uses ICU4N.Text.BreakIterator to find boundaries in the text.
Implements
IBoundaryScanner
Inherited Members
Namespace: Lucene.Net.Search.VectorHighlight
Assembly: Lucene.Net.ICU.dll
Syntax
public class BreakIteratorBoundaryScanner : IBoundaryScanner
Constructors
BreakIteratorBoundaryScanner(BreakIterator)
A Lucene.Net.Search.VectorHighlight.IBoundaryScanner implementation that uses ICU4N.Text.BreakIterator to find boundaries in the text.
Declaration
public BreakIteratorBoundaryScanner(BreakIterator bi)
Parameters
Type | Name | Description |
---|---|---|
BreakIterator | bi |
See Also
BreakIterator
Methods
FindEndOffset(StringBuilder, int)
Scan forward to find start offset.
Declaration
public virtual int FindEndOffset(StringBuilder buffer, int start)
Parameters
Type | Name | Description |
---|---|---|
StringBuilder | buffer | scanned object |
int | start | start offset to begin |
Returns
Type | Description |
---|---|
int | the found end offset |
See Also
BreakIterator
FindStartOffset(StringBuilder, int)
Scan backward to find end offset.
Declaration
public virtual int FindStartOffset(StringBuilder buffer, int start)
Parameters
Type | Name | Description |
---|---|---|
StringBuilder | buffer | scanned object |
int | start | offset to begin |
Returns
Type | Description |
---|---|
int | the found start offset |
See Also
BreakIterator
Implements
Lucene.Net.Search.VectorHighlight.IBoundaryScanner
See Also
BreakIterator