dk.brics.misc
Class Chars

java.lang.Object
  extended by dk.brics.misc.Chars

public class Chars
extends Object

Character escaping.


Method Summary
static String escape(String s)
          Escapes special characters in the given string.
static String escape(String s, boolean dot)
          Escapes special characters in the given string.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

escape

public static String escape(String s)
Escapes special characters in the given string. Same as escape(s, true).


escape

public static String escape(String s,
                            boolean dot)
Escapes special characters in the given string.

Parameters:
dot - if true, use Graphviz dot mode


Copyright © 2005-2008 Anders Møller.