PostGIS 3.7.0dev-r@@SVN_REVISION@@
Loading...
Searching...
No Matches
optionlist.h
Go to the documentation of this file.
1/**********************************************************************
2 *
3 * PostGIS - Spatial Types for PostgreSQL
4 * http://postgis.net
5 *
6 * PostGIS is free software: you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation, either version 2 of the License, or
9 * (at your option) any later version.
10 *
11 * PostGIS is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
15 *
16 * You should have received a copy of the GNU General Public License
17 * along with PostGIS. If not, see <http://www.gnu.org/licenses/>.
18 *
19 **********************************************************************
20 *
21 * Copyright 2021 Paul Ramsey <pramsey@cleverelephant.ca>
22 *
23 **********************************************************************/
24
25
26#ifndef _OPTIONLIST_H
27#define _OPTIONLIST_H 1
28
29#include "liblwgeom_internal.h"
30
31#define OPTION_LIST_SIZE 128
32
54extern void option_list_parse(char* input, char **olist);
55
61extern const char* option_list_search(char** olist, const char* key);
62
66extern size_t option_list_length(char **olist);
67
68
69extern void option_list_gdal_parse(char* input, char** olist);
70
71
72#endif
73
const char * option_list_search(char **olist, const char *key)
Returns null if the key cannot be found.
Definition optionlist.c:54
void option_list_gdal_parse(char *input, char **olist)
Definition optionlist.c:121
size_t option_list_length(char **olist)
Returns the total number of keys and values in the list.
Definition optionlist.c:73
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...
Definition optionlist.c:86