Static variables
staticfinalread onlywinMetaCharacters:ReadOnlyArray<Int> = [" ".code, "(".code, ")".code, "%".code, "!".code, "^".code, "\"".code, "<".code, ">".code, "&".code, "|".code, "\n".code, "\r".code, ",".code, ";".code]
Available on unity
Character codes of the characters that will be escaped by quoteWinArg(_, true)
.
Static methods
staticquoteUnixArg(argument:String):String
Available on headless
Returns a String that can be used as a single command line argument on Unix. The input will be quoted, or escaped if necessary.
staticquoteWinArg(argument:String, escapeMetaCharacters:Bool):String
Available on unity
Returns a String that can be used as a single command line argument on Windows. The input will be quoted, or escaped if necessary, such that the output will be parsed as a single argument using the rule specified in http://msdn.microsoft.com/en-us/library/ms880421
Examples:
quoteWinArg("abc") == "abc";
quoteWinArg("ab c") == '"ab c"';