Lines Matching defs:re
49 * @param re The regular expression to add to the pool.
58 public void add(String re, Object ret) throws REException {
59 add(re, ret, false);
66 * @param re The regular expression to be replaced in the pool.
74 public void replace(String re, Object ret) {
76 add(re, ret, true);
84 * @param re The regular expression to be deleted from the pool.
88 public Object delete(String re) {
92 int len = re.length() - 1;
96 if (!re.startsWith("*") ||
97 !re.endsWith("*"))
111 p = p.find(re.charAt(i));
121 p = p.find(re.charAt(i));
126 if (re.equals(best.re)) {
132 if (re.equals(best.re)) {
165 private void add(String re, Object ret, boolean replace) throws REException {
166 int len = re.length();
168 if (re.charAt(0) == '*') {
171 p = p.add(re.charAt(--len));
174 if (re.charAt(len - 1) == '*')
180 p = p.add(re.charAt(i));
185 throw new REException(re + " is a duplicate");
187 p.re = re;
268 String re = null;