GRASS Programmer's Manual
6.5.svn(2014)-r66266
|
#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, const 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, const 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 172 of file string.c.
References count, db_calloc(), and db_init_string().
Referenced by db__recv_string_array(), and db_alloc_index_columns().
int db_append_string | ( | dbString * | x, |
const char * | s | ||
) |
Definition at line 193 of file string.c.
References db_enlarge_string(), db_get_string(), and stat.
Referenced by db__copy_table(), db_delete_table(), db_double_quote_string(), db_list_drivers(), db_select_CatValArray(), db_table_to_sql(), wxdigit.IVDigit::DeleteSelectedLines(), F_generate(), G_sites_get_fields(), G_sites_open_old(), IL_check_at_points_2d(), and submit().
int db_copy_string | ( | dbString * | dst, |
dbString * | src | ||
) |
Definition at line 212 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 223 of file string.c.
References buf, db_append_string(), db_free_string(), db_get_string(), db_init_string(), db_set_string(), and NULL.
Referenced by db__copy_table(), and submit().
Definition at line 111 of file string.c.
References db_realloc(), db_store(), and NULL.
Referenced by db__recv_string(), and db_append_string().
void db_free_string | ( | dbString * | x | ) |
Definition at line 142 of file string.c.
References db_free(), and 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(), db_select_value(), and F_generate().
void db_free_string_array | ( | dbString * | a, |
int | n | ||
) |
Definition at line 155 of file string.c.
References db_free(), db_free_string(), and n.
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 131 of file string.c.
Referenced by wxdigit.IVDigit::CopyCats(), 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_table_number_of_rows(), db_get_value_string(), db_list_drivers(), db_print_column_definition(), db_select_CatValArray(), db_table_exists(), db_table_to_sql(), db_zero_string(), wxdigit.IVDigit::DeleteSelectedLines(), F_generate(), G_sites_open_old(), IL_check_at_points_2d(), NetA_init_distinct(), NetA_init_timetable_from_db(), and submit().
void db_init_string | ( | dbString * | x | ) |
Definition at line 11 of file string.c.
Referenced by wxdigit.IVDigit::CopyCats(), 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(), wxdigit.IVDigit::DeleteSelectedLines(), F_generate(), G_sites_get_fields(), G_sites_open_old(), IL_vector_input_data_2d(), NetA_init_timetable_from_db(), submit(), Vect_get_column_names(), Vect_get_column_names_types(), Vect_get_column_types(), Vect_net_build_graph(), and Vect_read_dblinks().
int db_set_string | ( | dbString * | x, |
const char * | s | ||
) |
Definition at line 33 of file string.c.
Referenced by wxdigit.IVDigit::CopyCats(), 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_select_int(), db_select_value(), 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(), db_table_to_sql(), wxdigit.IVDigit::DeleteSelectedLines(), F_generate(), G_sites_get_fields(), G_sites_open_old(), NetA_init_timetable_from_db(), submit(), Vect_get_column_names(), Vect_get_column_names_types(), Vect_get_column_types(), and Vect_read_dblinks().
int db_set_string_no_copy | ( | dbString * | x, |
char * | s | ||
) |
Definition at line 44 of file string.c.
Referenced by db__send_Cstring().
unsigned int db_sizeof_string | ( | dbString * | x | ) |
Definition at line 55 of file string.c.
Referenced by db_zero_string().
void db_zero_string | ( | dbString * | x | ) |
Definition at line 68 of file string.c.
References db_get_string(), db_sizeof_string(), and db_zero().
Referenced by IL_check_at_points_2d().