buffer.append( ((eflags & REG_NO_INTERPOLATE) > 0) ? replace : m.substituteInto(replace) );
buffer.append(getReplacement(replace, m, eflags));
  private String substituteAllImpl(CharIndexed input,String replace,int index,int eflags) {    StringBuffer buffer = new StringBuffer();    REMatch m;    while ((m = getMatchImpl(input,index,eflags,buffer)) != null) {	buffer.append( ((eflags & REG_NO_INTERPOLATE) > 0) ?		       replace : m.substituteInto(replace) );      index = m.getEndIndex();      if (m.end[0] == 0) {	char ch = input.charAt(0);	if (ch != CharIndexed.OUT_OF_BOUNDS) 	    buffer.append(ch);	input.move(1);      } else {	  input.move(m.end[0]);      }      if (!input.isValid()) break;    }    return buffer.toString();  }