package CH.ifa.draw.standard;


/**
* StringMatcher provides the interface for classes that are able
* to match Strings with the given search String and can also
* replace - in case of a match - the matching part with the
* replacement string. Examples are exact match, substring match,
* match by regular expressions etc.
* @deprecated This class is not to be used externally and will later be hidden.
*/
@Deprecated(since = "5.0", forRemoval = true)
public interface StringMatcher {

    /**
    * True iff matching conditions of searchString are fulfilled for the compareString.
    */
    boolean matches(String compareString, boolean ignoreCase);

    /**
     * Replaces the match of searchString in compareString with the replaceString.
     */
    String replacement(String compareString);
}