GRASS Programmer's Manual
6.5.svn(2014)-r66266
|
Vector library - Check if map name is legal vector map name. More...
#include <string.h>
#include <grass/gis.h>
#include <grass/Vect.h>
#include <grass/glocale.h>
Go to the source code of this file.
Functions | |
int | Vect_legal_filename (const char *s) |
Check if output is legal vector name. More... | |
int | Vect_check_input_output_name (const char *input, const char *output, int error) |
Check for input and output vector map name. More... | |
Vector library - Check if map name is legal vector map name.
(C) 2001-2008 by the GRASS Development Team
This program is free software under the GNU General Public License (>=v2). Read the file COPYING that comes with GRASS for details.
Definition in file legal_vname.c.
Check for input and output vector map name.
Check
[in] | input | input name |
[in] | output | output name |
[in] | error | error type GV_FATAL_EXIT, GV_FATAL_PRINT, GV_FATAL_RETURN |
Definition at line 94 of file legal_vname.c.
References G__name_is_fully_qualified(), G_fatal_error(), G_find_vector2(), G_mapset(), G_warning(), NULL, and Vect_legal_filename().
int Vect_legal_filename | ( | const char * | s | ) |
Check if output is legal vector name.
Rule: [A-Za-z][A-Za-z0-9_@]*
Check also for SQL keywords.
[in] | s | filename to be checked |
Definition at line 36 of file legal_vname.c.
References buf, G_strcasecmp(), G_warning(), NULL, dialogs::s, and sprintf().
Referenced by Vect_check_input_output_name(), Vect_copy(), Vect_open_new(), and Vect_rename().