Static variables

@:value([" ".code, "(".code, ")".code, "%".code, "!".code, "^".code, "\"".code, "<".code, ">".code, "&".code, "|".code, "\n".code, "\r".code, ",".code, ";".code])staticfinalread onlywinMetaCharacters:ReadOnlyArray<Int> = [" ".code, "(".code, ")".code, "%".code, "!".code, "^".code, "\"".code, "<".code, ">".code, "&".code, "|".code, "\n".code, "\r".code, ",".code, ";".code]

Character codes of the characters that will be escaped by quoteWinArg(_, true).

Static methods

staticquoteUnixArg(argument:String):String

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

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"';