LineBreakDictionaryOptions Class
Specifies the limits a LineBreakDictionary applies to the word list it is loaded from.
public sealed class LineBreakDictionaryOptionsRemarks
The limits protect the caller from word lists that come from an untrusted source: a list that exceeds one is rejected before memory is allocated for it.
Constructors
| Name | Description |
|---|---|
| LineBreakDictionaryOptions() |
LineBreakDictionaryOptions()
LineBreakDictionaryOptions.cspublic LineBreakDictionaryOptions()No documentation is available.
Properties
| Name | Description |
|---|---|
| Default | Gets the default options. |
| MaxInputLength | Gets the greatest length of the word list, in UTF-16 code units or in UTF-8 bytes. The default is 8 MiB. |
| MaxWordCount | Gets the greatest number of words a dictionary accepts. The default is 500,000. |
| MaxWordLength | Gets the greatest length of a word, in UTF-16 code units. The default is 128. |
MaxInputLength
LineBreakDictionaryOptions.csGets the greatest length of the word list, in UTF-16 code units or in UTF-8 bytes. The default is 8 MiB.
public long MaxInputLength { get; init; }MaxWordCount
LineBreakDictionaryOptions.csGets the greatest number of words a dictionary accepts. The default is 500,000.
public int MaxWordCount { get; init; }Property value
Exceptions
ArgumentOutOfRangeException- The value is less than 1.
Remarks
Every line that has a word counts, including a word that is in the list more than once.
MaxWordLength
LineBreakDictionaryOptions.csGets the greatest length of a word, in UTF-16 code units. The default is 128.
public int MaxWordLength { get; init; }