1 | public final class ArgumentDecoder {↵ | | 1 | public final class ArgumentEncoder {↵
|
2 | private static final Perl5Util util = new Perl5Util();↵ | | 2 | private static final Perl5Util util = new Perl5Util();↵
|
|
3 | private static final String expression = "s#[\\\\](.)#$1#g"; // $NON-NLS-1$↵ | | 3 | private static final String expression = "s#([${}(),\\\\])#\\$1#g";↵
|
|
4 | // TODO does not appear to be used↵ | | 4 | // TODO does not appear to be used↵
|
5 | public static String decode(String s) {↵ | | 5 | public static String encode(String s) {↵
|
6 | return util.substitute(expression, s);↵ | | 6 | return util.substitute(expression, s);↵
|
7 | }↵ | | 7 | }↵
|
|
8 | /**↵ | | 8 | /**↵
|
9 | * Prevent instantiation of utility class.↵ | | 9 | * Prevent instantiation of utility class.↵
|
10 | */↵ | | 10 | */↵
|
11 | private ArgumentDecoder() {↵ | | 11 | private ArgumentEncoder() {↵
|
12 | | | 12 |
|