Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

/ray/src/lib/lex/basicparse.h

Go to the documentation of this file.
00001 /*
00002  * lib/lex/basicparse.h
00003  * 
00004  * Basic integer / floating point parsing routines. 
00005  * 
00006  * Copyright (c) 2004 by Wolfgang Wieser ] wwieser (a) gmx <*> de [ 
00007  * 
00008  * This file may be distributed and/or modified under the terms of the 
00009  * GNU General Public License version 2 as published by the Free Software 
00010  * Foundation. (See COPYING.GPL for details.)
00011  * 
00012  * This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
00013  * WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
00014  * 
00015  */
00016 
00017 #ifndef _LIB_LEX_BASICPARSE_H_
00018 #define _LIB_LEX_BASICPARSE_H_ 1
00019 
00030 #include <lib/sconfig.h>    /* MUST be first */
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  /* _LIB_LEX_BASICPARSE_H_ */
00164 

Generated on Sat Feb 19 22:33:45 2005 for Ray by doxygen 1.3.5