//
package com.stevesoft.pat;
-import com.stevesoft.pat.wrap.*;
+import jalview.util.MessageManager;
+
+import com.stevesoft.pat.wrap.StringWrap;
/**
* Replacement rule used by the Transformer.
{
if (i >= tp.ra_len)
{
- throw new ArrayIndexOutOfBoundsException("i=" + i + ">=" + patterns());
+ throw new ArrayIndexOutOfBoundsException(
+ "i=" + i + ">=" + patterns());
}
if (i < 0)
{
{
if (i >= tp.ra_len)
{
- throw new ArrayIndexOutOfBoundsException("i=" + i + ">=" + patterns());
+ throw new ArrayIndexOutOfBoundsException(
+ "i=" + i + ">=" + patterns());
}
if (i < 0)
{
Regex r = Regex.perlCode(rs);
if (r == null)
{
- throw new NullPointerException("bad pattern to Regex.perlCode: " + rs);
+ throw new NullPointerException(MessageManager.formatMessage(
+ "exception.bad_pattern_to_regex_perl_code", new String[]
+ { rs }));
}
add(r);
}