CARS
|
00001 00010 /* Copyright (C) 2011 Nicola Corti 00011 00012 This program is free software: you can redistribute it and/or modify 00013 it under the terms of the GNU General Public License as published by 00014 the Free Software Foundation, either version 3 of the License, or 00015 (at your option) any later version. 00016 00017 This program is distributed in the hope that it will be useful, 00018 but WITHOUT ANY WARRANTY; without even the implied warranty of 00019 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00020 GNU General Public License for more details. 00021 00022 You should have received a copy of the GNU General Public License 00023 along with this program. If not, see <http://www.gnu.org/licenses/>. 00024 00025 For further information, Nicola Corti - <cortin [at] cli.di.unipi.it> 00026 */ 00027 00028 00029 #ifndef __STRINGPARSER_H 00030 #define __STRINGPARSER_H 00031 00032 #include "dgraph.h" 00033 00043 #ifdef REG_EXPR_MODE 00044 #include <sys/types.h> 00045 #include <regex.h> 00051 #define REG_PARSER "^[A-Za-z0-9 ]\\{1,128\\}:[A-Za-z0-9 ]\\{1,128\\}:[0-9]\\{1,31\\}[.]\\{0,1\\}[0-9]*$\0" 00052 #endif 00053 00054 00055 00063 bool_t is_correct_labelarray(unsigned int array_size, char ** label_array); 00064 00065 00075 bool_t str_pars(char * e, char * origin, char * destin, double * km); 00076 00077 #endif