Class EqualsIgnoreCaseReplacementConverter

    • Constructor Detail

      • EqualsIgnoreCaseReplacementConverter

        private EqualsIgnoreCaseReplacementConverter​(java.util.List<PatternFormatter> formatters,
                                                     java.lang.String testString,
                                                     java.lang.String substitution,
                                                     PatternParser parser)
        Construct the converter.
        Parameters:
        formatters - The PatternFormatters to generate the text to manipulate.
        testString - The test string.
        substitution - The substitution string.
        parser - The PatternParser.
    • Method Detail

      • newInstance

        public static EqualsIgnoreCaseReplacementConverter newInstance​(Configuration config,
                                                                       java.lang.String[] options)
        Gets an instance of the class.
        Parameters:
        config - The current Configuration.
        options - pattern options, an array of three elements: pattern, testString, and substitution.
        Returns:
        instance of class.
      • equals

        protected boolean equals​(java.lang.String str,
                                 java.lang.StringBuilder buff,
                                 int from,
                                 int len)
        Description copied from class: EqualsBaseReplacementConverter
        Returns true if the specified String equals the specified section of the specified StringBuilder.
        Specified by:
        equals in class EqualsBaseReplacementConverter
        Parameters:
        str - the String to compare
        buff - the StringBuilder to compare a section of
        from - start index in the StringBuilder
        len - length of the section in the StringBuilder
        Returns:
        true if equal, false otherwise