2 // This software is now distributed according to
\r
3 // the Lesser Gnu Public License. Please see
\r
4 // http://www.gnu.org/copyleft/lesser.txt for
\r
6 // -- Happy Computing!
\r
8 package com.stevesoft.pat;
\r
11 /** This class is used internally by RegexReader to
\r
12 store blocks of data. */
\r
14 boolean done = false;
\r
19 RBuffer(StringBuffer sb) { this.sb = sb; }
\r
20 public String toString() {
\r
21 return "sb="+sb.toString().replace('\n',' ')+
\r
22 " pos="+pos+" epos="+epos+
\r
23 " sb.length()="+sb.length()+
\r
24 "\n"+sp(pos+3)+"^"+sp(epos-pos-1)+"^";
\r
29 StringBuffer sb = new StringBuffer(n);
\r
30 for(int i=0;i<n;i++)
\r
32 return sb.toString();
\r