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
10 /** The apply(StringBufferLike sb,RegRes res) method of this derivation
\r
11 of ReplaceRule appends the contents of res.left() to the StringBuffer
\r
13 @see com.stevesoft.pat.ReplaceRule
\r
15 public class LeftRule extends ReplaceRule {
\r
16 public LeftRule() {}
\r
17 public void apply(StringBufferLike sb,RegRes res) {
\r
18 sb.append(res.left());
\r
20 public String toString1() { return "$`"; }
\r