CharacterReplacementDictionary

CharacterReplacementDictionary class

Represents a character replacement dictionary that is used during the indexing process. Character replacement can be used, for example, to remove accents from accented characters or to make case-insensitive index.

public class CharacterReplacementDictionary : DictionaryBase, IEnumerable<int>

Properties

Name Description
Count { get; } Gets the number of Unicode code points contained in this CharacterReplacementDictionary.
override DictionaryType { get; } Gets the dictionary type.

Methods

Name Description
AddRange(CharacterReplacementPair[]) Adds the specified collection of character replacements to this instance of the CharacterReplacementDictionary.
AddRange(IEnumerable<CharacterReplacementPair>) Adds the specified collection of character replacements to this instance of the CharacterReplacementDictionary.
AddRange(IEnumerable<KeyValuePair<char, char>>) Adds the specified collection of character replacements to this instance of the CharacterReplacementDictionary.
AddRange(IEnumerable<KeyValuePair<int, int>>) Adds the specified collection of Unicode code point replacements to this instance of the CharacterReplacementDictionary.
override Clear() Removes all character replacements from a CharacterReplacementDictionary object.
Contains(int) Determines whether a CharacterReplacementDictionary object contains a replacement for the specified Unicode code point.
ExportDictionary(string) Exports the dictionary to a file with the specified name.
GetEnumerator() Returns an enumerator that iterates through the collection.
GetReplacement(int) Gets a replacement for the specified Unicode code point.
ImportDictionary(string) Imports a dictionary from the specified file.
RemoveRange(char[]) Removes the specified collection of character replacements from this instance of the CharacterReplacementDictionary.
RemoveRange(IEnumerable<char>) Removes the specified collection of character replacements from this instance of the CharacterReplacementDictionary.
RemoveRange(IEnumerable<int>) Removes the specified collection of Unicode code points replacements from this instance of the CharacterReplacementDictionary.
RemoveRange(int[]) Removes the specified collection of Unicode code points replacements from this instance of the CharacterReplacementDictionary.

Remarks

Learn more

See Also