Crossfire JXClient, Trunk
R20561
|
Utility class for string manipulation. More...
Static Public Member Functions | |
static String [] | splitFields (@NotNull final String line) throws UnterminatedTokenException |
Splits a line into tokens. More... | |
static String | trimLeading (@NotNull final CharSequence str) |
Removes leading whitespace from a string. More... | |
Private Member Functions | |
StringUtils () | |
Private constructor to prevent instantiation. More... | |
Static Private Attributes | |
static final Pattern | PATTERN_LEADING_WHITESPACE = Pattern.compile("^[ \t]+") |
A pattern matching leading whitespace. More... | |
Utility class for string manipulation.
Definition at line 33 of file StringUtils.java.
|
private |
Private constructor to prevent instantiation.
Definition at line 44 of file StringUtils.java.
|
static |
Splits a line into tokens.
Handles quoting ("...").
line | the line |
UnterminatedTokenException | if a quoted token is unterminated |
Definition at line 64 of file StringUtils.java.
Referenced by com.realtime.crossfire.jxclient.skin.io.JXCSkinLoader.load(), and com.realtime.crossfire.jxclient.skin.io.JXCSkinLoader.parseBegin().
|
static |
Removes leading whitespace from a string.
str | the string |
Definition at line 53 of file StringUtils.java.
Referenced by com.realtime.crossfire.jxclient.gui.textinput.GUICommandFactoryImpl.createCommand(), and com.realtime.crossfire.jxclient.commands.BindCommand.execute().
|
staticprivate |
A pattern matching leading whitespace.
Definition at line 39 of file StringUtils.java.