fn new_parser(lp_cmd_line: &[u16]) -> VecDeque<OsString> {
    let out: VecDeque<OsString> = {
        windows_args::ArgsOs::parse_cmd(&OsString::from_wide(lp_cmd_line)).collect()
    };

    match lp_cmd_line[0] {
        0 => {
            // CommandLineToArgvW is defined to return the current exe on empty strings;
            // that doesn't make sense for us, so we treat it like a pure whitespace input.
            assert_eq!(out, VecDeque::from(vec!["".into()]));
            VecDeque::from(vec![unsafe { current_exe() }])
        },
        _ => out,
    }
}
// function that behaves identical to CommandLineToArgvW, implemented in terms of
// the windows_args crate
function that behaves identical to CommandLineToArgvW, implemented in terms of
the windows_args crate
function that behaves identical to CommandLineToArgvW implemented in terms of the windows_args crate
fn new_parser(lp_cmd_line: &[u16]) -> VecDeque<OsString> {
    let out: VecDeque<OsString> = {
        windows_args::ArgsOs::parse_cmd(&OsString::from_wide(lp_cmd_line)).collect()
    };
    match lp_cmd_line[0] {
        0 => {
            // CommandLineToArgvW is defined to return the current exe on empty strings;
            // that doesn't make sense for us, so we treat it like a pure whitespace input.
            assert_eq!(out, VecDeque::from(vec!["".into()]));
            VecDeque::from(vec![unsafe { current_exe() }])
        },
        _ => out,
    }
}
fn new_parser ( lp_cmd_line : & [ u16 ] ) -> VecDeque < OsString > { let out : VecDeque < OsString > = { windows_args :: ArgsOs :: parse_cmd ( & OsString :: from_wide ( lp_cmd_line ) ) . collect ( ) } ; match lp_cmd_line [ 0 ] { 0 => { // CommandLineToArgvW is defined to return the current exe on empty strings; // that doesn't make sense for us, so we treat it like a pure whitespace input. assert_eq ! ( out VecDeque from ( vec [ " " into ( ) ] ) ) ; VecDeque :: from ( vec ! [ unsafe { current_exe ( ) } ] ) } , _ => out , } }
function that behaves identical to CommandLineToArgvW, implemented in terms of
the windows_args crate
function that behaves identical to CommandLineToArgvW implemented in terms of the windows_args crate
lp_cmd_line
&[u16]
lp_cmd_line
&[u16]