Fork me on GitHub
  • API

    Show / Hide Table of Contents

    Class ICUNormalizer2CharFilter

    Normalize token text with ICU's ICU4N.Text.Normalizer2.

    Inheritance
    object
    MarshalByRefObject
    TextReader
    CharFilter
    BaseCharFilter
    ICUNormalizer2CharFilter
    Implements
    IDisposable
    Inherited Members
    CharFilter.CorrectOffset(int)
    CharFilter.Read()
    CharFilter.Skip(int)
    CharFilter.Reset()
    CharFilter.IsReady
    CharFilter.IsMarkSupported
    CharFilter.Mark(int)
    TextReader.Null
    TextReader.Close()
    TextReader.Dispose()
    TextReader.Peek()
    TextReader.Read(Span<char>)
    TextReader.ReadAsync(char[], int, int)
    TextReader.ReadAsync(Memory<char>, CancellationToken)
    TextReader.ReadBlock(char[], int, int)
    TextReader.ReadBlock(Span<char>)
    TextReader.ReadBlockAsync(char[], int, int)
    TextReader.ReadBlockAsync(Memory<char>, CancellationToken)
    TextReader.ReadLine()
    TextReader.ReadLineAsync()
    TextReader.ReadLineAsync(CancellationToken)
    TextReader.ReadToEnd()
    TextReader.ReadToEndAsync()
    TextReader.ReadToEndAsync(CancellationToken)
    TextReader.Synchronized(TextReader)
    MarshalByRefObject.GetLifetimeService()
    MarshalByRefObject.InitializeLifetimeService()
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.ReferenceEquals(object, object)
    object.ToString()
    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 count, depending on whether the data is available within the reader. This method returns 0 (zero) if it is called when no more characters are left to read.

    Overrides
    CharFilter.Read(char[], int, int)
    Exceptions
    Type Condition
    ArgumentNullException

    buffer is null.

    ArgumentException

    The buffer length minus index is less than count.

    ArgumentOutOfRangeException

    index or count is negative.

    ObjectDisposedException

    The TextReader is closed.

    IOException

    An I/O error occurs.

    Implements

    IDisposable
    Back to top Copyright © 2024 The Apache Software Foundation, Licensed under the Apache License, Version 2.0
    Apache Lucene.Net, Lucene.Net, Apache, the Apache feather logo, and the Apache Lucene.Net project logo are trademarks of The Apache Software Foundation.
    All other marks mentioned may be trademarks or registered trademarks of their respective owners.