![]() |
MOS Source Code
|
#include <mos/lib/cmdline.hpp>#include <mos/string.hpp>#include <mos/vector.hpp>#include <mos_stdlib.hpp>#include <mos_string.hpp>Go to the source code of this file.
Typedefs | |
| typedef const char **(* | cmdline_insert_fn_t) (const char **result, size_t result_capacity, char *cmdline, size_t *result_count) |
Functions | |
| static const char ** | cmdline_static_array_insert (const char **result, size_t result_capacity, char *cmdline, size_t *result_count) |
| static const char ** | cmdline_dynamic_array_insert (const char **argv, size_t result_capacity, char *cmdline, size_t *result_count) |
| static bool | cmdline_parse_generic (char *start, size_t length, size_t cmdline_max, size_t *out_count, const char ***argv_ptr, cmdline_insert_fn_t inserter) |
| bool | cmdline_parse_inplace (char *inbuf, size_t length, size_t cmdline_max, size_t *out_count, const char **out_cmdlines) |
| const char ** | cmdline_parse (char *inbuf, size_t length, const char **outargv, size_t *out_count) |
| mos::vector< mos::string > | cmdline_parse_vector (char *inbuf, size_t length) |
| void | string_unquote (char *str) |
| typedef const char **(* cmdline_insert_fn_t) (const char **result, size_t result_capacity, char *cmdline, size_t *result_count) |
Definition at line 10 of file cmdline.cpp.
|
static |
Definition at line 12 of file cmdline.cpp.
Referenced by cmdline_parse_inplace().
|
static |
Definition at line 22 of file cmdline.cpp.
Referenced by cmdline_parse().
|
static |
Definition at line 31 of file cmdline.cpp.
Referenced by cmdline_parse(), and cmdline_parse_inplace().
| bool cmdline_parse_inplace | ( | char * | inbuf, |
| size_t | length, | ||
| size_t | cmdline_max, | ||
| size_t * | out_count, | ||
| const char ** | out_cmdlines ) |
Definition at line 95 of file cmdline.cpp.
Referenced by __mos_test_wrapped_test_multi_args_with_multiple_options(), __mos_test_wrapped_test_one_arg_with_an_option(), __mos_test_wrapped_test_one_arg_with_multiple_options(), __mos_test_wrapped_test_quotation_with_escaped_quotation_marks(), __mos_test_wrapped_test_quoted_args(), __mos_test_wrapped_test_quoted_args_with_spaces(), __mos_test_wrapped_test_quoted_args_with_spaces_and_commas(), __mos_test_wrapped_test_quoted_args_with_spaces_and_commas_and_equals(), __mos_test_wrapped_test_simple_cmdline(), and mos_cmdline_init().
| const char ** cmdline_parse | ( | char * | inbuf, |
| size_t | length, | ||
| const char ** | outargv, | ||
| size_t * | out_count ) |
Definition at line 100 of file cmdline.cpp.
Referenced by cmdline_parse_vector().
| mos::vector< mos::string > cmdline_parse_vector | ( | char * | inbuf, |
| size_t | length ) |
Definition at line 107 of file cmdline.cpp.
Referenced by MOS_SETUP().
| void string_unquote | ( | char * | str | ) |
Definition at line 121 of file cmdline.cpp.
Referenced by MOS_SETUP().