Package de.cxp.ocs.util
Class StringUtils
java.lang.Object
de.cxp.ocs.util.StringUtils
-
Method Summary
Modifier and TypeMethodDescriptionstatic org.apache.lucene.analysis.CharFilterstatic StringConverts alphabetic, numeric, and symbolic Unicode characters which are not in the first 127 ASCII characters (the "Basic Latin" Unicode block) into their ASCII equivalents, if one exists.static ReaderasLowercaseCharFilter(Reader inputReader) static String
-
Method Details
-
escapeReservedESCharacters
- Parameters:
text- that should be escaped- Returns:
- that text with the reserved characters escaped
-
asciify
Converts alphabetic, numeric, and symbolic Unicode characters which are not in the first 127 ASCII characters (the "Basic Latin" Unicode block) into their ASCII equivalents, if one exists.- Parameters:
s- the string to convert.- Returns:
- the converted string.
-
asLowercaseCharFilter
-
asAsciifyCharFilter
-