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

/ray/src/lib/lex/fastval2str.h

Go to the documentation of this file.
00001 /*
00002  * lib/lex/fastval2str.h
00003  * 
00004  * Fast integer / floating point string writing 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_FASTVAL2STRING_H_
00018 #define _LIB_LEX_FASTVAL2STRING_H_ 1
00019 
00029 #include <lib/sconfig.h>    /* MUST be first */
00030 
00031 #include <lib/serror.h>
00032 
00074 // Here is the same table in plaintext: 
00075 // 
00076 //  type    oct dec hex  |  type   oct dec hex 
00077 // ----------------------|----------------------
00078 //  uint8     4   3   4  |  int8     5   4   5 
00079 //  uint16    7   5   6  |  int16    8   6   7 
00080 //  uint32   12  10  10  |  int32   13  11  11 
00081 //  uint64   23  20  18  |  int64   24  20  19 
00082 // ---------------------------------------------
00084 extern char *FastInt2String(char *dest,int8 val,char base=16);
00085 extern char *FastInt2String(char *dest,int16 val,char base=16);
00086 extern char *FastInt2String(char *dest,int32 val,char base=16);
00087 extern char *FastInt2String(char *dest,int64 val,char base=16);
00088 extern char *FastInt2String(char *dest,uint8 val,char base=16);
00089 extern char *FastInt2String(char *dest,uint16 val,char base=16);
00090 extern char *FastInt2String(char *dest,uint32 val,char base=16);
00091 extern char *FastInt2String(char *dest,uint64 val,char base=16);
00093 
00094 
00111 
00112 extern char *FastFloat2String(char *dest,flt val);
00113 extern char *FastFloat2String(char *dest,dbl val);
00115 
00116 #endif  /* _LIB_LEX_FASTVAL2STRING_H_ */

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