Package gg.xp.util
Class ArgParser
java.lang.Object
gg.xp.util.ArgParser
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected static String
Inserts backslashes before any occurrences of a backslash or quote in the given string.Tokenizes the given String into String tokensTokenizes the given String into String tokens.
-
Constructor Details
-
ArgParser
public ArgParser()
-
-
Method Details
-
tokenize
Tokenizes the given String into String tokens- Parameters:
arguments
- A String containing one or more command-line style arguments to be tokenized.- Returns:
- A list of parsed and properly escaped arguments.
-
tokenize
Tokenizes the given String into String tokens.- Parameters:
arguments
- A String containing one or more command-line style arguments to be tokenized.stringify
- whether or not to include escape special characters- Returns:
- A list of parsed and properly escaped arguments.
-
_escapeQuotesAndBackslashes
Inserts backslashes before any occurrences of a backslash or quote in the given string. Also converts any special characters appropriately.
-