00001
00008
00009
00010
00011
00012
00013 #ifndef BASE_MISC_HH
00014 #define BASE_MISC_HH 1
00015
00016 #include "base_common.hh"
00017
00018 namespace base {
00019
00020 int
00021 Argi( int idx, int argc_, char** argv_ );
00022
00023 float
00024 Argf( int idx, int argc_, char** argv_ );
00025
00026 string
00027 Argstr( int idx, int argc_, char** argv_ );
00028
00029 void
00030 CmdargDone( int i, int n = 1 );
00031
00032 bool
00033 IfCmdargDone( int i );
00034
00035 #if OS_CYGWIN
00036 char* STRCASESTR( const char *s, const char* find );
00037 #else
00038 #define STRCASESTR strcasestr
00039 #endif
00040
00041 }
00042
00043 #endif // BASE_MISC_HH