#include <string.h>
#include <stdlib.h>
#include <grass/dbmi.h>
Go to the source code of this file.
Functions | |
void | db_init_string (dbString *x) |
int | db_set_string (dbString *x, char *s) |
int | db_set_string_no_copy (dbString *x, char *s) |
unsigned int | db_sizeof_string (dbString *x) |
void | db_zero_string (dbString *x) |
int | db_enlarge_string (dbString *x, int len) |
char * | db_get_string (dbString *x) |
void | db_free_string (dbString *x) |
void | db_free_string_array (dbString *a, int n) |
dbString * | db_alloc_string_array (int count) |
int | db_append_string (dbString *x, char *s) |
int | db_copy_string (dbString *dst, dbString *src) |
void | db_double_quote_string (dbString *src) |
dbString* db_alloc_string_array | ( | int | count | ) |
Definition at line 190 of file string.c.
References db_calloc(), and db_init_string().
Referenced by db__recv_string_array(), and db_alloc_index_columns().
int db_append_string | ( | dbString * | x, | |
char * | s | |||
) |
Definition at line 213 of file string.c.
References db_enlarge_string(), and db_get_string().
Referenced by db__copy_table(), db_delete_table(), db_double_quote_string(), db_list_drivers(), db_select_CatValArray(), db_select_int(), db_select_value(), db_table_to_sql(), and main().
int db_copy_string | ( | dbString * | dst, | |
dbString * | src | |||
) |
Definition at line 234 of file string.c.
References db_get_string(), and db_set_string().
Referenced by db_copy_value().
void db_double_quote_string | ( | dbString * | src | ) |
Definition at line 247 of file string.c.
References db_append_string(), db_free_string(), db_get_string(), db_init_string(), and db_set_string().
Referenced by db__copy_table().
int db_enlarge_string | ( | dbString * | x, | |
int | len | |||
) |
Definition at line 126 of file string.c.
References db_realloc(), and db_store().
Referenced by db__recv_string(), and db_append_string().
void db_free_string | ( | dbString * | x | ) |
Definition at line 155 of file string.c.
References db_init_string().
Referenced by db__recv_return_code(), db_CatValArray_free(), db_column_sqltype(), db_d_add_column(), db_d_describe_table(), db_d_drop_column(), db_d_drop_index(), db_d_drop_table(), db_d_execute_immediate(), db_d_grant_on_table(), db_d_list_indexes(), db_d_open_select_cursor(), db_d_open_update_cursor(), db_double_quote_string(), db_free_column(), db_free_dirent_array(), db_free_handle(), db_free_index(), db_free_string_array(), db_free_table(), db_grant_on_table(), db_select_CatValArray(), db_select_int(), and db_select_value().
void db_free_string_array | ( | dbString * | a, | |
int | n | |||
) |
Definition at line 170 of file string.c.
References db_free_string().
Referenced by db__recv_string_array(), db_d_list_databases(), db_free_index(), and db_table_exists().
char* db_get_string | ( | dbString * | x | ) |
Definition at line 142 of file string.c.
Referenced by db__copy_table(), db__recv_return_code(), db__recv_string(), db__send_string(), db_append_string(), db_copy_string(), db_d_describe_table(), db_delete_table(), db_double_quote_string(), db_get_column_description(), db_get_column_name(), db_get_handle_dbname(), db_get_handle_dbschema(), db_get_index_column_name(), db_get_index_name(), db_get_index_table_name(), db_get_table_description(), db_get_table_name(), db_get_value_string(), db_list_drivers(), db_print_column_definition(), db_select_CatValArray(), db_table_exists(), db_table_to_sql(), db_zero_string(), and main().
void db_init_string | ( | dbString * | x | ) |
Definition at line 12 of file string.c.
Referenced by db__copy_table(), db__recv_return_code(), db__send_Cstring(), db_alloc_dirent_array(), db_alloc_string_array(), db_column_sqltype(), db_d_add_column(), db_d_describe_table(), db_d_drop_column(), db_d_drop_index(), db_d_drop_table(), db_d_execute_immediate(), db_d_grant_on_table(), db_d_list_indexes(), db_d_open_select_cursor(), db_d_open_update_cursor(), db_delete_table(), db_double_quote_string(), db_free_string(), db_get_column(), db_grant_on_table(), db_gversion(), db_init_column(), db_init_handle(), db_init_index(), db_init_table(), db_list_drivers(), db_print_column_definition(), db_select_CatValArray(), db_select_int(), db_select_value(), and main().
int db_set_string | ( | dbString * | x, | |
char * | s | |||
) |
Definition at line 36 of file string.c.
Referenced by db__copy_table(), db_column_sqltype(), db_convert_value_datetime_into_string(), db_convert_value_to_string(), db_copy_string(), db_delete_table(), db_dirent(), db_double_quote_string(), db_get_column(), db_grant_on_table(), db_gversion(), db_select_CatValArray(), db_set_column_description(), db_set_column_name(), db_set_handle(), db_set_index_column_name(), db_set_index_name(), db_set_index_table_name(), db_set_table_description(), db_set_table_name(), db_set_value_string(), and db_table_to_sql().
int db_set_string_no_copy | ( | dbString * | x, | |
char * | s | |||
) |
unsigned int db_sizeof_string | ( | dbString * | x | ) |
void db_zero_string | ( | dbString * | x | ) |
Definition at line 76 of file string.c.
References db_get_string(), db_sizeof_string(), and db_zero().
Referenced by main().