00001
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027 #ifndef miscH
00028 #define miscH
00029
00030 #include "global.h"
00031 #include <string>
00032
00033 #define dblue lightgray
00034
00035
00036
00038 extern int getFirstBit(int i);
00039
00040
00041 extern const char* digit[] ;
00042 extern const char* letter[] ;
00043
00047 extern char* strrr ( int a ) ;
00048
00049
00053 extern char* strrr ( double a ) ;
00054
00055 extern int crc32buf( const void *vbuf, int len);
00056
00057 extern int atoi ( const std::string& s );
00058 extern double atof ( const std::string& s );
00059
00060 #ifdef min
00061 #undef min
00062 #endif
00063
00064 #ifdef max
00065 #undef max
00066 #endif
00067
00068
00069
00070
00071
00072
00073
00074
00075
00076
00077
00078
00079 template<typename T>
00080 const T& min ( const T& a, const T& b, const T& c )
00081 {
00082 return min ( a, min ( b, c ));
00083 }
00084
00085
00086
00087
00088
00089
00090
00091
00092
00093
00094
00095
00096 template<typename T>
00097 const T& max ( const T& a, const T& b, const T& c )
00098 {
00099 return max ( a, max ( b, c ));
00100 }
00101
00102
00103 extern char *strupr (const char *a);
00104
00105 #ifndef HAVE_ITOA
00106 extern char* itoa ( int a, char* b, int c);
00107 #endif
00108
00109 #endif