Class Languages
Language codes.
Inheritance
System.Object
Languages
Assembly: Lucene.Net.Analysis.Phonetic.dll
Syntax
public class Languages : object
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
Name | Description |
---|---|
ANY | |
ANY_LANGUAGE | Any/all languages. |
NO_LANGUAGES | No languages at all. |
Methods
Name | Description |
---|---|
GetInstance(NameType) | |
GetInstance(String) | |
GetLanguages() |