Package com.google.gerrit.server.ioutil
Class StringUtil
java.lang.Object
com.google.gerrit.server.ioutil.StringUtil
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic String
escapeString
(String str) Escapes the input string so that all non-printable characters (0x00-0x1f) are represented as a hex escape (\x00, \x01, ...) or as a C-style escape sequence (\a, \b, \t, \n, \v, \f, or \r).
-
Constructor Details
-
StringUtil
public StringUtil()
-
-
Method Details
-
escapeString
Escapes the input string so that all non-printable characters (0x00-0x1f) are represented as a hex escape (\x00, \x01, ...) or as a C-style escape sequence (\a, \b, \t, \n, \v, \f, or \r). Backslashes in the input string are doubled (\\).
-