|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--soot.util.StringTools
Utility methods for string manipulations commonly used in Soot.
Field Summary | |
static java.lang.String |
lineSeparator
Convenience field storing the system line separator. |
Constructor Summary | |
StringTools()
|
Method Summary | |
static char |
getCFormatChar(char c)
Returns the canonical C-string representation of c. |
static java.lang.String |
getEscapedStringOf(java.lang.String fromString)
Returns fromString, but with non-isalpha() characters printed as '\\unnnn' . |
static java.lang.String |
getQuotedStringOf(java.lang.String fromString)
Returns fromString, but with certain characters printed as if they were in a Java string literal. |
static java.lang.String |
getUnEscapedStringOf(java.lang.String str)
Returns a String de-escaping the \\unnnn
representation for any escaped characters in the string. |
static java.lang.String |
getUnicodeStringFromChar(char ch)
Returns a String containing the escaped \\unnnn
representation for ch . |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final java.lang.String lineSeparator
Constructor Detail |
public StringTools()
Method Detail |
public static java.lang.String getEscapedStringOf(java.lang.String fromString)
'\\unnnn'
. Used by SootClass to generate output.
public static java.lang.String getQuotedStringOf(java.lang.String fromString)
public static java.lang.String getUnicodeStringFromChar(char ch)
\\unnnn
representation for ch
.
public static java.lang.String getUnEscapedStringOf(java.lang.String str)
\\unnnn
representation for any escaped characters in the string.
public static char getCFormatChar(char c)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |