return replaceCSeq(replaceCSeq(replaceCSeq(s, "&", "&"), "<", "<"), ">", ">");
}
public final static int computeAbsoluteIndex(int maxlen, int index, int seglen) throws InterpreterException {
if(seglen<=0)
throw new InterpreterException(StdErrors.extend(StdErrors.Out_of_range, "length:" + seglen+" <= 0"));
if (index < 0) {
if ((maxlen + index) < 0)
throw new InterpreterException(StdErrors.extend(StdErrors.Out_of_range, "index:" + index+"["+(maxlen+index)+"]"));
if ((maxlen + index + seglen) > maxlen)
throw new InterpreterException(StdErrors.extend(StdErrors.Out_of_range, "index:" + index+"["+(maxlen+index)+"]" + " + length:" +seglen+" > " +maxlen ));
return maxlen + index;
}
else if (index+seglen > maxlen)
throw new InterpreterException(StdErrors.extend(StdErrors.Out_of_range, "index:" + index + " + length:" +seglen+" > " +maxlen));
return index;
}