00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017 #ifndef _LIB_LEX_BASICPARSE_H_
00018 #define _LIB_LEX_BASICPARSE_H_ 1
00019
00030 #include <lib/sconfig.h>
00031
00032 #include <lib/serror.h>
00033
00034
00062 extern char *ParseInt(int32 *val,const char *str,SError &error,
00063 bool may_continue=0);
00064
00071 extern char *ParseInt(int8 *val,const char *str,SError &error,
00072 bool may_continue=0);
00073
00080 extern char *ParseInt(int16 *val,const char *str,SError &error,
00081 bool may_continue=0);
00082
00089 extern char *ParseInt(int64 *val,const char *str,SError &error,
00090 bool may_continue=0);
00091
00102 extern char *ParseInt(uint32 *val,const char *str,SError &error,
00103 bool may_continue=0);
00104
00111 extern char *ParseInt(uint8 *val,const char *str,SError &error,
00112 bool may_continue=0);
00113
00120 extern char *ParseInt(uint16 *val,const char *str,SError &error,
00121 bool may_continue=0);
00122
00129 extern char *ParseInt(uint64 *val,const char *str,SError &error,
00130 bool may_continue=0);
00131
00132
00151 extern char *ParseFloat(dbl *val,const char *str,SError &error,
00152 bool may_continue=0);
00153
00160 extern char *ParseFloat(flt *val,const char *str,SError &error,
00161 bool may_continue=0);
00162
00163 #endif
00164