Lucene.Net  3.0.3
Lucene.Net is a .NET port of the Java Lucene Indexing Library
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Properties
Classes | Public Member Functions | List of all members
Lucene.Net.Analysis.Hunspell.HunspellDictionary Class Reference

Public Member Functions

 HunspellDictionary (Stream affix, Stream dictionary)
 Creates a new HunspellDictionary containing the information read from the provided streams to hunspell affix and dictionary file.
 
 HunspellDictionary (Stream affix, IEnumerable< Stream > dictionaries)
 Creates a new HunspellDictionary containing the information read from the provided streams to hunspell affix and dictionary files.
 
IEnumerable< HunspellWordLookupWord (String word)
 Looks up HunspellWords that match the String created from the given char array, offset and length.
 
IEnumerable< HunspellAffixLookupPrefix (char[] word, int offset, int length)
 Looks up HunspellAffix prefixes that have an append that matches the String created from the given char array, offset and length.
 
IEnumerable< HunspellAffixLookupSuffix (char[] word, int offset, int length)
 Looks up HunspellAffix suffixes that have an append that matches the String created from the given char array, offset and length.
 

Detailed Description

Definition at line 26 of file HunspellDictionary.cs.

Constructor & Destructor Documentation

Lucene.Net.Analysis.Hunspell.HunspellDictionary.HunspellDictionary ( Stream  affix,
Stream  dictionary 
)

Creates a new HunspellDictionary containing the information read from the provided streams to hunspell affix and dictionary file.

Parameters
affixStream for reading the hunspell affix file.
dictionaryStream for reading the hunspell dictionary file.
Exceptions
IOExceptionCan be thrown while reading from the streams.
InvalidDataExceptionCan be thrown if the content of the files does not meet expected formats.

Definition at line 54 of file HunspellDictionary.cs.

Lucene.Net.Analysis.Hunspell.HunspellDictionary.HunspellDictionary ( Stream  affix,
IEnumerable< Stream >  dictionaries 
)

Creates a new HunspellDictionary containing the information read from the provided streams to hunspell affix and dictionary files.

Parameters
affixStream for reading the hunspell affix file.
dictionariesStreams for reading the hunspell dictionary file.
Exceptions
IOExceptionCan be thrown while reading from the streams.
InvalidDataExceptionCan be thrown if the content of the files does not meet expected formats.

Definition at line 65 of file HunspellDictionary.cs.

Member Function Documentation

IEnumerable<HunspellAffix> Lucene.Net.Analysis.Hunspell.HunspellDictionary.LookupPrefix ( char[]  word,
int  offset,
int  length 
)

Looks up HunspellAffix prefixes that have an append that matches the String created from the given char array, offset and length.

Parameters
wordChar array to generate the String from.
offsetOffset in the char array that the String starts at.
lengthLength from the offset that the String is.
Returns
List of HunspellAffix prefixes with an append that matches the String, or null if none are found.

Definition at line 97 of file HunspellDictionary.cs.

IEnumerable<HunspellAffix> Lucene.Net.Analysis.Hunspell.HunspellDictionary.LookupSuffix ( char[]  word,
int  offset,
int  length 
)

Looks up HunspellAffix suffixes that have an append that matches the String created from the given char array, offset and length.

Parameters
wordChar array to generate the String from.
offsetOffset in the char array that the String starts at.
lengthLength from the offset that the String is.
Returns
List of HunspellAffix suffixes with an append that matches the String, or null if none are found

Definition at line 115 of file HunspellDictionary.cs.

IEnumerable<HunspellWord> Lucene.Net.Analysis.Hunspell.HunspellDictionary.LookupWord ( String  word)

Looks up HunspellWords that match the String created from the given char array, offset and length.

Definition at line 80 of file HunspellDictionary.cs.


The documentation for this class was generated from the following file: