Class CaseConversionHelper


  • public final class CaseConversionHelper
    extends Object
    Since:
    3.2
    • Method Detail

      • convertCase

        public static String convertCase​(Match.CaseConversion conversion,
                                         String s,
                                         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.