net.amygdalum.util.text.CharMapping Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of stringsearchalgorithms Show documentation
Show all versions of stringsearchalgorithms Show documentation
Searching and Matching Strings with efficient algorithms:
- Knuth-Morris-Pratt
- Shift-And/Or
- Boyer-Moore-Horspool
- Sunday (QuickSearch)
- BNDM
- BOM
- Aho-Corasick
- Set-Horspool
- Wu-Manber
- Set-BOM
package net.amygdalum.util.text;
public interface CharMapping {
public static final CharMapping IDENTITY = new CharMapping() {
@Override
public char[] map(char c) {
return new char[]{c};
}
@Override
public char[] normalized(char[] chars) {
return chars;
}
};
char[] map(char c);
char[] normalized(char[] chars);
}