* <p>
* The only potential difference between using the methods of Replacer to do the
* replacing is that Replacer remembers changes to the replacing object between
* <p>
* The only potential difference between using the methods of Replacer to do the
* replacing is that Replacer remembers changes to the replacing object between
- * calls to replaceAll, replaceFirst etc. For details, see the example file <a
- * href="http://javaregex.com/code/trans3.java.html">trans3.java</a>.
+ * calls to replaceAll, replaceFirst etc. For details, see the example file
+ * <a href="http://javaregex.com/code/trans3.java.html">trans3.java</a>.
- public StringLike replaceFirstRegion(String s, Regex r, int start, int end)
+ public StringLike replaceFirstRegion(String s, Regex r, int start,
+ int end)
{
return replaceFirstRegion(new StringWrap(s), r, start, end);
}
{
return replaceFirstRegion(new StringWrap(s), r, start, end);
}
- if (x instanceof SpecialRule
- || (x instanceof RuleHolder && ((RuleHolder) x).held instanceof SpecialRule))
+ if (x instanceof SpecialRule || (x instanceof RuleHolder
+ && ((RuleHolder) x).held instanceof SpecialRule))
- for (int i = rmn; !want_more_text && rh.me._search(s, i, end); i = rmn)
+ for (int i = rmn; !want_more_text
+ && rh.me._search(s, i, end); i = rmn)