| Wordlist Class |
Namespace: Sdl.LanguagePlatform.Core
The Wordlist type exposes the following members.
| Name | Description | |
|---|---|---|
| Wordlist |
Initializes a new instance of the Wordlist class with an empty wordlist.
| |
| Wordlist(SearchOption) |
Initializes a new instance of the Wordlist class with an empty wordlist.
| |
| Wordlist(Wordlist) |
Creates a new instance and deep-copies the other instance.
|
| Name | Description | |
|---|---|---|
| Count |
Returns the number of words in the word list.
| |
| Flags |
Gets the search flags.
| |
| Items |
Gets the list of words.
|
| Name | Description | |
|---|---|---|
| Add |
Adds a new string to this wordlist if it isn't already there.
| |
| CleanupList |
Loads a word list from the specified input file, removes all duplicates, and writes the result
to the output file. The two file names should not be the same. Only used internally.
| |
| Clear |
Removes all words from the list, but keeps the flags.
| |
| Clone | ||
| Contains |
Determines whether this wordlist contains the specified string.
| |
| Equals | Determines whether the specified object is equal to the current object. (Inherited from Object.) | |
| Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) | |
| GetBytes |
Returns the contents of the word list as an array of bytes. The data is UTF8-encoded. Note
that search flags (such as case invariance) are not preserved.
| |
| GetHashCode | Serves as the default hash function. (Inherited from Object.) | |
| GetRegularExpression |
Computes a regular expression
which matches the words in the list. The expression is not anchored.
NOTE: if the word list is case insensitive, the regular expression will include the corresponding option "(?i-:)". | |
| GetType | Gets the Type of the current instance. (Inherited from Object.) | |
| Load(Byte) |
Read the word list from an array of bytes. A UTF8 encoding is assumed, but byte order
marks will be honored.
| |
| Load(Stream) |
Adds new words to this wordlist from a stream. A UTF8 data encoding is assumed, but byte order
marks will be honored.
| |
| Load(String) |
Adds new words to this wordlist from a stream. A UTF8 data encoding is assumed, but byte order
marks will be honored.
| |
| MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
| Merge(Wordlist) |
Merges the contents of another instance into this word list. Note that conflicting
flags and search options are ignored.
| |
| Merge(IEnumerableWordlist) |
Creates a new word list and merges all specified wordLists into the new one.
| |
| Remove |
Removes s from the list.
| |
| Save |
Saves the word list in textual format to the specified stream.
| |
| ToString | Returns a string that represents the current object. (Inherited from Object.) |