public class StringTools extends Object
Modifier and Type | Field and Description |
---|---|
static String |
lineSeparator
Convenience field storing the system line separator.
|
Constructor and Description |
---|
StringTools() |
Modifier and Type | Method and Description |
---|---|
static char |
getCFormatChar(char c)
Returns the canonical C-string representation of c.
|
static String |
getEscapedStringOf(String fromString)
Returns fromString, but with non-isalpha() characters printed as
'\\unnnn' . |
static String |
getQuotedStringOf(String fromString)
Returns fromString, but with certain characters printed as if they were in a Java string literal.
|
static String |
getUnEscapedStringOf(String str)
Returns a String de-escaping the
\\unnnn representation for any escaped characters in the string. |
static String |
getUnicodeStringFromChar(char ch)
Returns a String containing the escaped
\\unnnn representation for ch . |
public static final String lineSeparator
public static String getEscapedStringOf(String fromString)
'\\unnnn'
. Used by SootClass to generate
output.public static String getQuotedStringOf(String fromString)
public static String getUnicodeStringFromChar(char ch)
\\unnnn
representation for ch
.public static String getUnEscapedStringOf(String str)
\\unnnn
representation for any escaped characters in the string.public static char getCFormatChar(char c)
Copyright © 2019 Sable. All rights reserved.