Go to the source code of this file.
#define __PARAM_PARSERS_H_931B1AE_9DFE_4E4C_8DCE_A9F2C60DD39D_INCLUDED |
#define MAKE_ONE_ENUM_ENTRY |
( |
|
entry_name) | |
entry_name, |
#define MAKE_PARSERS_ENUM |
( |
|
List) | |
|
Value:enum REGISTERED_PARSERS_TAG \
{ \
PARSERS_COUNT \
};
Definition at line 34 of file param_parsers.h.
#define MAKE_ONE_PROTOTYPE |
( |
|
param_name) | |
|
#define MAKE_ONE_PARSER_REGISTRATION |
( |
|
param_name) | |
|
Value:{ \
g_parsers[ind++] = param_name##_parser; \
}
Definition at line 51 of file param_parsers.h.
#define IMPLEMENT_PARSERS_REGISTER_FUNCTION |
( |
|
List) | |
|
#define PARSERS_LIST |
( |
|
_) | |
|
RESULT extract_string |
( |
const TCHAR * |
parameter_optipons, |
|
|
TCHAR ** |
extracted_value |
|
) |
| |
- Parameters
-
parameter_optipons | input string |
extracted_value | result value. Memory is allocated for it |
- Returns
- RESULT code (see error.h)
Exract the the data to the first space. If space is between " " it is ecraned. Allocate memory for result string
Definition at line 91 of file param_parsers.c.
97 while (parameter_optipons[start] &&
m_isspace(parameter_optipons[start]))
103 escape_spaces =
TRUE;
107 while (parameter_optipons[end] &&
109 (!escape_spaces &&
m_isspace(parameter_optipons[end]))))
112 return m_strndup(extracted_value, parameter_optipons + start, end - start);