Fork me on GitHub
  • API

    Show / Hide Table of Contents

    Class Languages

    Language codes.

    Inheritance
    object
    Languages
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Lucene.Net.Analysis.Phonetic.Language.Bm
    Assembly: Lucene.Net.Analysis.Phonetic.dll
    Syntax
    public class Languages
    Remarks

    Language codes are typically loaded from resource files. These are UTF-8 encoded text files. They are systematically named following the pattern: Lucene.Net.Analysis.Phonetic.Language.Bm.NameType_languages.txt

    The format of these resources is the following:
    • Language:A single string containing no whitespace.
    • End-of-line comments:Any occurrence of '//' will cause all text following on that line to be discarded as a comment.
    • Multi-line comments:Any line starting with '/*' will start multi-line commenting mode. This will skip all content until a line ending in '*' and '/' is found.
    • Blank lines:All blank lines will be skipped.

    Ported from language.php

    This class is immutable and thread-safe.

    since 1.6

    Fields

    ANY

    Language codes.

    Declaration
    public static readonly string ANY
    Field Value
    Type Description
    string
    Remarks

    Language codes are typically loaded from resource files. These are UTF-8 encoded text files. They are systematically named following the pattern: Lucene.Net.Analysis.Phonetic.Language.Bm.NameType_languages.txt

    The format of these resources is the following:
    • Language:A single string containing no whitespace.
    • End-of-line comments:Any occurrence of '//' will cause all text following on that line to be discarded as a comment.
    • Multi-line comments:Any line starting with '/*' will start multi-line commenting mode. This will skip all content until a line ending in '*' and '/' is found.
    • Blank lines:All blank lines will be skipped.

    Ported from language.php

    This class is immutable and thread-safe.

    since 1.6

    ANY_LANGUAGE

    Any/all languages.

    Declaration
    public static readonly LanguageSet ANY_LANGUAGE
    Field Value
    Type Description
    LanguageSet
    Remarks

    Language codes are typically loaded from resource files. These are UTF-8 encoded text files. They are systematically named following the pattern: Lucene.Net.Analysis.Phonetic.Language.Bm.NameType_languages.txt

    The format of these resources is the following:
    • Language:A single string containing no whitespace.
    • End-of-line comments:Any occurrence of '//' will cause all text following on that line to be discarded as a comment.
    • Multi-line comments:Any line starting with '/*' will start multi-line commenting mode. This will skip all content until a line ending in '*' and '/' is found.
    • Blank lines:All blank lines will be skipped.

    Ported from language.php

    This class is immutable and thread-safe.

    since 1.6

    NO_LANGUAGES

    No languages at all.

    Declaration
    public static readonly LanguageSet NO_LANGUAGES
    Field Value
    Type Description
    LanguageSet
    Remarks

    Language codes are typically loaded from resource files. These are UTF-8 encoded text files. They are systematically named following the pattern: Lucene.Net.Analysis.Phonetic.Language.Bm.NameType_languages.txt

    The format of these resources is the following:
    • Language:A single string containing no whitespace.
    • End-of-line comments:Any occurrence of '//' will cause all text following on that line to be discarded as a comment.
    • Multi-line comments:Any line starting with '/*' will start multi-line commenting mode. This will skip all content until a line ending in '*' and '/' is found.
    • Blank lines:All blank lines will be skipped.

    Ported from language.php

    This class is immutable and thread-safe.

    since 1.6

    Methods

    GetInstance(NameType)

    Language codes.

    Declaration
    public static Languages GetInstance(NameType nameType)
    Parameters
    Type Name Description
    NameType nameType
    Returns
    Type Description
    Languages
    Remarks

    Language codes are typically loaded from resource files. These are UTF-8 encoded text files. They are systematically named following the pattern: Lucene.Net.Analysis.Phonetic.Language.Bm.NameType_languages.txt

    The format of these resources is the following:
    • Language:A single string containing no whitespace.
    • End-of-line comments:Any occurrence of '//' will cause all text following on that line to be discarded as a comment.
    • Multi-line comments:Any line starting with '/*' will start multi-line commenting mode. This will skip all content until a line ending in '*' and '/' is found.
    • Blank lines:All blank lines will be skipped.

    Ported from language.php

    This class is immutable and thread-safe.

    since 1.6

    GetInstance(string)

    Language codes.

    Declaration
    public static Languages GetInstance(string languagesResourceName)
    Parameters
    Type Name Description
    string languagesResourceName
    Returns
    Type Description
    Languages
    Remarks

    Language codes are typically loaded from resource files. These are UTF-8 encoded text files. They are systematically named following the pattern: Lucene.Net.Analysis.Phonetic.Language.Bm.NameType_languages.txt

    The format of these resources is the following:
    • Language:A single string containing no whitespace.
    • End-of-line comments:Any occurrence of '//' will cause all text following on that line to be discarded as a comment.
    • Multi-line comments:Any line starting with '/*' will start multi-line commenting mode. This will skip all content until a line ending in '*' and '/' is found.
    • Blank lines:All blank lines will be skipped.

    Ported from language.php

    This class is immutable and thread-safe.

    since 1.6

    GetLanguages()

    Language codes.

    Declaration
    public virtual ISet<string> GetLanguages()
    Returns
    Type Description
    ISet<string>
    Remarks

    Language codes are typically loaded from resource files. These are UTF-8 encoded text files. They are systematically named following the pattern: Lucene.Net.Analysis.Phonetic.Language.Bm.NameType_languages.txt

    The format of these resources is the following:
    • Language:A single string containing no whitespace.
    • End-of-line comments:Any occurrence of '//' will cause all text following on that line to be discarded as a comment.
    • Multi-line comments:Any line starting with '/*' will start multi-line commenting mode. This will skip all content until a line ending in '*' and '/' is found.
    • Blank lines:All blank lines will be skipped.

    Ported from language.php

    This class is immutable and thread-safe.

    since 1.6
    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.