Use this method to equate any character with any other.
Namespace: NetricsServerInterface
Assembly: NetricsServerInterface (in NetricsServerInterface.dll)
Syntax
Visual Basic (Declaration) |
---|
Public Sub mapChars( _ ByVal fromchars As Char(), _ ByVal tochars As Char() _ ) |
C# |
---|
public void mapChars( char[] fromchars, char[] tochars ) |
C++ |
---|
public: void mapChars( array<wchar_t>^ fromchars, array<wchar_t>^ tochars ) sealed |
J# |
---|
public void mapChars( char[] fromchars, char[] tochars ) |
JScript |
---|
public
function mapChars( fromchars : char[], tochars : char[] ) |
Parameters
- fromchars
- The characters to map from
- tochars
- The characters to map to
Remarks
A character at index x in the from array will be mapped to the character at index x in the to array. Each pair of characters will be considered equivalent for the purposes of matching.
Mappings defined here will supercede the character class mappings defined by foldCase, foldDiacritics, mapWhitespace and mapPunctuation. Thus if you wanted to map all punctuation marks except the pound (#) character you could do so by calling mapPunctuation and mapChars with the pound character mapped to itself.