//
package com.stevesoft.pat;
-import jalview.util.MessageManager;
+import com.stevesoft.pat.MessageManager;
import com.stevesoft.pat.wrap.*;
{
throw new NullPointerException(MessageManager.getString("exception.replace_null_regex_pointer"));
}
- if (rh.me._search(s, start, end))
+ if (rh.me._searchLike(s, start, end))
{
int rmn = rh.me.matchedTo();
if (rh.me.charsMatched() == 0 && !isSpecial(rh.me.getReplaceRule()))
apply(rh.me);
if (!first)
{
- for (int i = rmn; !want_more_text && rh.me._search(s, i, end); i = rmn)
+ for (int i = rmn; !want_more_text && rh.me._searchLike(s, i, end); i = rmn)
{
rmn = rh.me.matchedTo();
if (rh.me.charsMatched() == 0)
int rmf = r.matchedFrom();
for (int ii = pos; ii < rmf; ii++)
{
- sb.append(src.charAt(ii));
+ sb.appendC(src.charAt(ii));
}
for (ReplaceRule x = rp; x != null; x = x.next)
int s_end = src.length();
for (int ii = pos; ii < s_end; ii++)
{
- sb.append(src.charAt(ii));
+ sb.appendC(src.charAt(ii));
}
src = null;
lastMatchedTo = pos;