Package org.languagetool.rules.patterns
Class CaseConversionHelper
- java.lang.Object
-
- org.languagetool.rules.patterns.CaseConversionHelper
-
public final class CaseConversionHelper extends java.lang.Object
- Since:
- 3.2
-
-
Constructor Summary
Constructors Modifier Constructor Description private
CaseConversionHelper()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.lang.String
convertCase(Match.CaseConversion conversion, java.lang.String s, java.lang.String sample, Language lang)
Converts case of the string token according to match element attributes.
-
-
-
Method Detail
-
convertCase
public static java.lang.String convertCase(Match.CaseConversion conversion, java.lang.String s, java.lang.String sample, Language lang)
Converts case of the string token according to match element attributes.- Parameters:
s
- Token to be converted.sample
- the sample string used to determine how the original string looks like (used only on case preservation)- Returns:
- Converted string.
-
-