Definition at line 273 of file liblwgeom/cunit/cu_misc.c.
280 memset(olist, 0,
sizeof(olist));
282 strcpy(input,
"key1=value1 key2=value2 ");
291 CU_ASSERT_EQUAL(NULL,
value);
294 CU_ASSERT_EQUAL(4, sz);
296 memset(olist, 0,
sizeof(olist));
300 CU_ASSERT_EQUAL(NULL,
value);
302 memset(olist, 0,
sizeof(olist));
303 strcpy(input,
" key3= ");
306 CU_ASSERT_EQUAL(2, sz);
308 strcpy(input,
" key1=value1 key2='value2 value3' ");
309 memset(olist, 0,
sizeof(olist));
312 CU_ASSERT_EQUAL(2, sz);
#define ASSERT_STRING_EQUAL(o, e)
void option_list_gdal_parse(char *input, char **olist)
size_t option_list_length(char **olist)
Returns the total number of keys and values in the list.
const char * option_list_search(char **olist, const char *key)
Returns null if the key cannot be found.
void option_list_parse(char *input, char **olist)
option_list is a null-terminated list of strings, where every odd string is a key and every even stri...
References ASSERT_STRING_EQUAL, option_list_gdal_parse(), option_list_length(), option_list_parse(), option_list_search(), OPTION_LIST_SIZE, and genraster::value.
Referenced by misc_suite_setup().