Class ICUNormalizer2CharFilter
Normalize token text with ICU's ICU4N.Text.Normalizer2.
Implements
Inherited Members
Namespace: Lucene.Net.Analysis.Icu
Assembly: Lucene.Net.ICU.dll
Syntax
public sealed class ICUNormalizer2CharFilter : BaseCharFilter, IDisposable
Constructors
ICUNormalizer2CharFilter(TextReader)
Create a new ICUNormalizer2CharFilter that combines NFKC normalization, Case Folding, and removes Default Ignorables (NFKC_Casefold).
Declaration
public ICUNormalizer2CharFilter(TextReader input)
Parameters
| Type | Name | Description |
|---|---|---|
| TextReader | input |
ICUNormalizer2CharFilter(TextReader, Normalizer2)
Create a new ICUNormalizer2CharFilter with the specified ICU4N.Text.Normalizer2.
Declaration
public ICUNormalizer2CharFilter(TextReader input, Normalizer2 normalizer)
Parameters
| Type | Name | Description |
|---|---|---|
| TextReader | input | Input text. |
| Normalizer2 | normalizer | Normalizer to use. |
Methods
Read(char[], int, int)
Reads a specified maximum number of characters from the current reader and writes the data to a buffer, beginning at the specified index.
Declaration
public override int Read(char[] cbuf, int off, int len)
Parameters
| Type | Name | Description |
|---|---|---|
| char[] | cbuf | |
| int | off | |
| int | len |
Returns
| Type | Description |
|---|---|
| int | The number of characters that have been read. The number will be less than or equal to |
Overrides
Exceptions
| Type | Condition |
|---|---|
| ArgumentNullException |
|
| ArgumentException | The buffer length minus |
| ArgumentOutOfRangeException |
|
| ObjectDisposedException | The TextReader is closed. |
| IOException | An I/O error occurs. |