tinyows 1.2.2
list.c File Reference
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <limits.h>
#include <assert.h>
#include "../ows/ows.h"
Include dependency graph for list.c:

Go to the source code of this file.

Functions

listlist_init ()
 
void list_free (list *l)
 
void list_add (list *l, buffer *value)
 
void list_add_str (list *l, char *value)
 
void list_pop (list *l)
 
void list_add_list (list *l, list *l_to_add)
 
void list_add_by_copy (list *l, buffer *value)
 
list_nodelist_node_init ()
 
void list_node_free (list *l, list_node *ln)
 
bool in_list (const list *l, const buffer *value)
 
bool in_list_str (const list *l, const char *value)
 
listlist_explode (char separator, const buffer *value)
 
listlist_split (char separator, const buffer *value, bool reverse)
 
listlist_explode_start_end (char separator_start, char separator_end, buffer *value)
 
listlist_explode_str (char separator, const char *value)
 
listlist_explode_str_trim (char separator, const char *value)
 
void list_implode (buffer *buf, const char *separator, const list *l)
 

Function Documentation

◆ in_list()

bool in_list ( const list * l,
const buffer * value )

◆ in_list_str()

bool in_list_str ( const list * l,
const char * value )

◆ list_add()

◆ list_add_by_copy()

◆ list_add_list()

void list_add_list ( list * l,
list * l_to_add )

Definition at line 152 of file list.c.

References buffer_copy(), buffer_init(), List::first, in_list(), List::last, list_node_init(), List_node::next, List_node::prev, List::size, and List_node::value.

Referenced by ows_parse_config_layer().

Here is the call graph for this function:

◆ list_add_str()

void list_add_str ( list * l,
char * value )

◆ list_explode()

◆ list_explode_start_end()

list * list_explode_start_end ( char separator_start,
char separator_end,
buffer * value )

Definition at line 366 of file list.c.

References Buffer::buf, buffer_add(), buffer_init(), list_add(), list_add_by_copy(), list_init(), and Buffer::use.

Referenced by wfs_request_check_filter().

Here is the call graph for this function:

◆ list_explode_str()

list * list_explode_str ( char separator,
const char * value )

Definition at line 401 of file list.c.

References buffer_add(), buffer_init(), list_add(), and list_init().

Referenced by fe_envelope(), ows_parse_config_layer(), ows_parse_config_metadata(), and ows_psql_postgis_version().

Here is the call graph for this function:

◆ list_explode_str_trim()

list * list_explode_str_trim ( char separator,
const char * value )

Definition at line 430 of file list.c.

References buffer_add(), buffer_init(), list_add(), and list_init().

Referenced by ows_parse_config_layer().

Here is the call graph for this function:

◆ list_free()

◆ list_implode()

void list_implode ( buffer * buf,
const char * separator,
const list * l )

Definition at line 461 of file list.c.

References Buffer::buf, buffer_add_str(), List::first, List_node::next, and List_node::value.

Referenced by ows_layer_storage_fill().

Here is the call graph for this function:

◆ list_init()

◆ list_node_free()

void list_node_free ( list * l,
list_node * ln )

Definition at line 237 of file list.c.

References buffer_free(), List::first, List_node::next, List_node::prev, and List_node::value.

Referenced by list_free(), and list_pop().

Here is the call graph for this function:

◆ list_node_init()

list_node * list_node_init ( )

Definition at line 219 of file list.c.

References List_node::next, List_node::prev, and List_node::value.

Referenced by list_add(), list_add_by_copy(), list_add_list(), and list_add_str().

◆ list_pop()

void list_pop ( list * l)

Definition at line 129 of file list.c.

References List::first, List::last, list_node_free(), List_node::next, List_node::prev, and List::size.

Referenced by wfs_describe_feature_type().

Here is the call graph for this function:

◆ list_split()

list * list_split ( char separator,
const buffer * value,
bool reverse )

Definition at line 324 of file list.c.

References Buffer::buf, buffer_add_nstr(), buffer_chr(), buffer_copy(), buffer_init(), buffer_rchr(), buffer_shift(), list_add(), and list_init().

Referenced by wfs_request_check_fid().

Here is the call graph for this function:

Generated for tinyows by doxygen 1.12.0