java.lang.Object
com.lutris.util.QuotedString
- public final class QuotedString
- extends java.lang.Object
Static convenience class for parsing various types of quoted strings.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
QuotedString
public QuotedString()
parseCString
public static final java.lang.String parseCString(java.lang.String s)
- Parse a C style quoted string. If the first character is a quote,
then all characters up to a closing quote or end-of-string are
gathered into a new String. The '\' character has the same
semantics as in C. That is, it literally quotes the next
character. Also, the four character sequence "\
ddd" is
converted to the character represented by the octal value
ddd.
parseCString
public static final java.lang.String parseCString(java.lang.String s,
int offset)
- Parse a C style quoted string. If the first character is a quote,
then all characters up to a closing quote or end-of-string are
gathered into a new String. The '\' character has the same
semantics as in C. That is, it literally quotes the next
character. Also, the four character sequence "\
ddd" is
converted to the character represented by the octal value
ddd.
parseCString
public static final java.lang.String parseCString(char[] c)
- Parse a C style quoted string. If the first character is a quote,
then all characters up to a closing quote or end-of-string are
gathered into a new String. The '\' character has the same
semantics as in C. That is, it literally quotes the next
character. Also, the four character sequence "\
ddd" is
converted to the character represented by the octal value
ddd.
parseCString
public static final java.lang.String parseCString(char[] c,
int offset)
- Parse a C style quoted string. If the first character is a quote,
then all characters up to a closing quote or end-of-string are
gathered into a new String. The '\' character has the same
semantics as in C. That is, it literally quotes the next
character. Also, the four character sequence "\
ddd" is
converted to the character represented by the octal value
ddd.