2 // This software is now distributed according to
3 // the Lesser Gnu Public License. Please see
4 // http://www.gnu.org/copyleft/lesser.txt for
8 package com.stevesoft.pat;
11 * This class is used internally by RegexReader to store blocks of data.
27 RBuffer(StringBuffer sb)
32 public String toString()
34 return "sb=" + sb.toString().replace('\n', ' ') + " pos=" + pos
35 + " epos=" + epos + " sb.length()=" + sb.length() + "\n"
36 + sp(pos + 3) + "^" + sp(epos - pos - 1) + "^";
45 StringBuffer sb = new StringBuffer(n);
46 for (int i = 0; i < n; i++)