Click or drag to resize
Wordlist Class
A searchable word list with index.
Inheritance Hierarchy
SystemObject
  Sdl.LanguagePlatform.CoreWordlist

Namespace: Sdl.LanguagePlatform.Core
Assembly: Sdl.LanguagePlatform.Core (in Sdl.LanguagePlatform.Core.dll) Version: 1.6.0.0 (1.7.3164.0)
Syntax
public class Wordlist : ICloneable

The Wordlist type exposes the following members.

Constructors
  NameDescription
Public methodWordlist
Initializes a new instance of the Wordlist class with an empty wordlist.
Public methodWordlist(SearchOption)
Initializes a new instance of the Wordlist class with an empty wordlist.
Public methodWordlist(Wordlist)
Creates a new instance and deep-copies the other instance.
Top
Properties
  NameDescription
Public propertyCount
Returns the number of words in the word list.
Public propertyFlags
Gets the search flags.
Public propertyItems
Gets the list of words.
Top
Methods
  NameDescription
Public methodAdd
Adds a new string to this wordlist if it isn't already there.
Public methodStatic memberCleanupList
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.
Public methodClear
Removes all words from the list, but keeps the flags.
Public methodClone
Public methodContains
Determines whether this wordlist contains the specified string.
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetBytes
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.
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetRegularExpression
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-:)".

Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodLoad(Byte)
Read the word list from an array of bytes. A UTF8 encoding is assumed, but byte order marks will be honored.
Public methodLoad(Stream)
Adds new words to this wordlist from a stream. A UTF8 data encoding is assumed, but byte order marks will be honored.
Public methodLoad(String)
Adds new words to this wordlist from a stream. A UTF8 data encoding is assumed, but byte order marks will be honored.
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodMerge(Wordlist)
Merges the contents of another instance into this word list. Note that conflicting flags and search options are ignored.
Public methodStatic memberMerge(IEnumerableWordlist)
Creates a new word list and merges all specified wordLists into the new one.
Public methodRemove
Removes s from the list.
Public methodSave
Saves the word list in textual format to the specified stream.
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
See Also
Community
Edit

Be the first to Edit the community content of this topic.
Comments