Package jnr.posix.util
Class WindowsHelpers
java.lang.Object
jnr.posix.util.WindowsHelpers
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final int
private static final String
private static Map
<String, WindowsHelpers.InternalType> (package private) static final jnr.ffi.Runtime
(package private) static final int
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic jnr.ffi.Pointer
createWideEnv
(String[] envp) static String
escapePath
(String path) private static int
firstNonWhitespaceIndex
(String value) private static boolean
hasBuiltinSpecialNeeds
(String value) static boolean
private static boolean
isCommandDotCom
(String command) private static boolean
isDirectorySeparator
(char value) static boolean
isDriveLetterPath
(String path) private static boolean
isFunnyChar
(char c) private static boolean
isInternalCommand
(String command, boolean hasCommandDotCom) static String
private static void
joinSingleArgv
(StringBuilder buffer, String arg, boolean quote, boolean escape) static String[]
processCommandArgs
(POSIX posix, String program, String[] argv, String path) static String[]
processCommandLine
(POSIX posix, String command, String program, String path) static boolean
static byte[]
static byte[]
-
Field Details
-
runtime
static final jnr.ffi.Runtime runtime -
WORDSIZE
static final int WORDSIZE -
COMMAND_DOT_COM
- See Also:
-
CDC_LENGTH
private static final int CDC_LENGTH -
INTERNAL_COMMANDS
-
-
Constructor Details
-
WindowsHelpers
public WindowsHelpers()
-
-
Method Details
-
toWPath
-
toWString
-
createWideEnv
-
joinSingleArgv
-
joinArgv
-
quotable
-
isBatch
-
processCommandLine
-
processCommandArgs
-
isFunnyChar
private static boolean isFunnyChar(char c) -
hasBuiltinSpecialNeeds
-
firstNonWhitespaceIndex
-
escapePath
-
isDirectorySeparator
private static boolean isDirectorySeparator(char value) -
isCommandDotCom
-
isInternalCommand
-
isDriveLetterPath
-