public final class CaseConversionHelper extends Object
| Modifier and Type | Method and Description |
|---|---|
static String |
convertCase(Match.CaseConversion conversion,
String s,
String sample,
Language lang)
Converts case of the string token according to match element attributes.
|
public static String convertCase(Match.CaseConversion conversion, String s, String sample, Language lang)
s - Token to be converted.sample - the sample string used to determine how the original string looks like (used only on case preservation)