public class TokenReplacement extends AbstractReplacement
from, to
Constructor and Description |
---|
TokenReplacement(String from,
String to) |
public String apply(String in)
TokenReplacement
implementation first tokenizes the given
string and then checks each token whether it matches either the from
string or the from string + '#' + a fragment. If so, the the replacement
is applied. Everything else is passed in unchanged.apply
in class AbstractReplacement
Copyright © 2013 TextGrid. All Rights Reserved.