Opened 14 years ago
Closed 13 years ago
#2561 closed Feature Requests (fixed)
Command line string splitting in Unix
Reported by: | Owned by: | Sascha Ochsenknecht | |
---|---|---|---|
Milestone: | Boost 1.42.0 | Component: | program_options |
Version: | Boost 1.37.0 | Severity: | Problem |
Keywords: | Cc: |
Description
For now it is not possible to pass the whole command line as a string for Unix when 'argc,argv' are not available. The library does have a function split_winmain(str) but it is available only if _WIN32 macro is defined. Also it is useful to remove _WIN32 limitation for split_winmain because it can be used in UNIX for example in client/server applications
Change History (3)
comment:1 by , 13 years ago
Milestone: | Boost 1.38.0 → Boost 1.42.0 |
---|---|
Owner: | changed from | to
Status: | new → assigned |
comment:2 by , 13 years ago
comment:3 by , 13 years ago
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
Note:
See TracTickets
for help on using tickets.
I added a general split function which can split a given string at a defined set of character. The result is then stored in a vector of strings which is returned which can be passed to the command line option parser.
I also added a test case for it test/split_test.cpp which should describe from the user point of view how this function works.
For more complex spitting the user has to provide its own implementation.
Hope it is useful
Cheers, Sascha