strings.c File Reference

#include <string.h>
#include <stdlib.h>
#include <ctype.h>
#include <sys/types.h>
#include <grass/gis.h>

Include dependency graph for strings.c:

Go to the source code of this file.

Defines

#define NULL   0

Functions

char * G_strcpy (char *T, const char *F)
char * G_chrcpy (char *T, const char *F, int n)
char * G_strncpy (char *T, const char *F, int n)
char * G_strmov (char *T, const char *F)
char * G_chrmov (char *T, const char *F, int n)
char * G_strcat (char *T, const char *F)
char * G_chrcat (char *T, const char *F, int n)
int G_strcasecmp (const char *x, const char *y)
char * G_strstr (char *mainString, const char *subString)
char * G_strdup (const char *string)
char * G_strchg (char *bug, char character, char new)
char * G_str_replace (char *buffer, const char *old_str, const char *new_str)
int G_strip (register char *buf)
char * G_chop (char *line)
 Chop leading and trailing white spaces: space, ,
, , , - returns pointer to string.
void G_str_to_upper (char *str)
 Convert string to upper case.
void G_str_to_lower (char *str)
 Convert string to lower case.


Define Documentation

#define NULL   0

Definition at line 69 of file strings.c.

Referenced by G__check_fp_type(), G__color_free_rules(), G__create_alt_env(), G__env_name(), G__get_window(), G__lookup_colors(), G__make_location(), G__mapset_name(), G__open(), G__open_cell_old(), G__projection_name(), G__quant_get_rule_for_d_raster_val(), G__read_Cell_head_array(), G__set_gisrc_file(), G__temp_element(), G__unit_name(), G__write_cats(), G_adjust_Cell_head(), G_adjust_Cell_head3(), G_ask_any(), G_ask_datum_name(), G_ask_ellipse_name(), G_ask_in_mapset(), G_ask_new(), G_ask_new_file(), G_ask_old(), G_ask_old_file(), G_ask_proj_name(), G_asprintf(), G_available_mapsets(), G_calloc(), G_check_input_output_name(), G_color_name(), G_compare_projections(), G_create_key_value(), G_database_datum_name(), G_database_units_to_meters_factor(), G_datum_description(), G_datum_ellipsoid(), G_datum_name(), G_debug(), G_define_flag(), G_define_option(), G_ellipsoid_description(), G_ellipsoid_name(), G_find_key_value(), G_fread_key_value(), G_free_histogram(), G_free_raster_cats(), G_free_tokens(), G_get_3dview(), G_get_ask_return_msg(), G_get_cellhd(), G_get_datumparams_from_projinfo(), G_get_ellipsoid_parameters(), G_get_next_marked_d_raster_cat(), G_get_projinfo(), G_get_projunits(), G_get_raster_cat(), G_get_reclass(), G_getenv(), G_getenv2(), G_gishelp(), G_index(), G_init_colors(), G_init_histogram(), G_init_raster_cats(), G_is_reclass(), G_is_reclassed_to(), G_list(), G_malloc(), G_mapset(), G_number_of_tokens(), G_parser(), G_percent2(), G_plot_area(), G_popen(), G_put_3dview(), G_put_reclass(), G_putenv(), G_raster_map_is_fp(), G_raster_map_type(), G_rc_path(), G_read_histogram(), G_read_history(), G_read_key_value_file(), G_read_range(), G_realloc(), G_recreate_command(), G_rindex(), G_set_d_raster_cat(), G_set_key_value(), G_set_raster_cats_title(), G_sock_bind(), G_sock_exists(), G_sock_get_fname(), G_spawn(), G_spawn_ex(), G_str_replace(), G_strdup(), G_strstr(), G_system(), G_tokenize(), G_usage(), G_whoami(), G_write_histogram(), G_write_histogram_cs(), and G_write_key_value_file().


Function Documentation

char* G_chop ( char *  line  ) 

Chop leading and trailing white spaces: space, ,
, , , - returns pointer to string.

Parameters:
s 
Returns:
char *

Definition at line 349 of file strings.c.

Referenced by G_str_to_color().

char* G_chrcat ( char *  T,
const char *  F,
int  n 
)

Definition at line 132 of file strings.c.

References G_chrcpy().

char* G_chrcpy ( char *  T,
const char *  F,
int  n 
)

Definition at line 88 of file strings.c.

Referenced by G_chrcat().

char* G_chrmov ( char *  T,
const char *  F,
int  n 
)

Definition at line 117 of file strings.c.

char* G_str_replace ( char *  buffer,
const char *  old_str,
const char *  new_str 
)

Definition at line 229 of file strings.c.

References G_malloc(), G_strdup(), G_strstr(), and NULL.

void G_str_to_lower ( char *  str  ) 

Convert string to lower case.

Parameters:
str pointer to string

Definition at line 400 of file strings.c.

void G_str_to_upper ( char *  str  ) 

Convert string to upper case.

Parameters:
str pointer to string

Definition at line 381 of file strings.c.

int G_strcasecmp ( const char *  x,
const char *  y 
)

char* G_strcat ( char *  T,
const char *  F 
)

Definition at line 126 of file strings.c.

References G_strcpy().

char* G_strchg ( char *  bug,
char  character,
char  new 
)

Definition at line 202 of file strings.c.

char* G_strcpy ( char *  T,
const char *  F 
)

Definition at line 79 of file strings.c.

Referenced by G_str_to_color(), and G_strcat().

char* G_strdup ( const char *  string  ) 

Definition at line 188 of file strings.c.

References G_malloc(), and NULL.

Referenced by G_str_replace().

int G_strip ( register char *  buf  ) 

char* G_strmov ( char *  T,
const char *  F 
)

Definition at line 108 of file strings.c.

char* G_strncpy ( char *  T,
const char *  F,
int  n 
)

Definition at line 98 of file strings.c.

char* G_strstr ( char *  mainString,
const char *  subString 
)

Definition at line 163 of file strings.c.

References NULL.

Referenced by G_str_replace().


Generated on Sun Apr 6 17:32:26 2008 for GRASS by  doxygen 1.5.5