public class NetricsCharmap
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
Punctuation
The name of the predefined punctuation sensitive character map.
|
static java.lang.String |
Standard
The name of the predefined default character map.
|
Constructor and Description |
---|
NetricsCharmap(java.lang.String name)
Specify the name of the character map.
|
Modifier and Type | Method and Description |
---|---|
void |
foldCase()
Equate upper case, title case and lower case.
|
void |
foldDiacritics()
Equate characters with diacritics with their normal cognates.
|
void |
mapChars(char[] fromchars,
char[] tochars)
Use this method to equate any character with any other.
|
void |
mapPunctuation(char c)
Map all punctuation characters to a specific character.
|
void |
mapWhitespace(char c)
Map all whitespace characters to a specific character.
|
public static final java.lang.String Standard
public static final java.lang.String Punctuation
public NetricsCharmap(java.lang.String name)
name
- Name of the character map.public void foldCase()
public void foldDiacritics()
public void mapWhitespace(char c)
c
- The character to map topublic void mapPunctuation(char c)
c
- The character to map topublic void mapChars(char[] fromchars, char[] tochars)
fromchars
- The characters to map from.tochars
- The characters to map to