String routines to complement <string> && <cstring>:
|
Go to the documentation of this file.
53 while ( *p != 0 ) { ++p; }
54 while ( *p !=
'/' && *p !=
'\\' && *p !=
':' ) {
55 if ( p == str ) {
return str; }
63 template <
class T>
inline
64 void uUnit_testThis(
bool cond,
const T* label,
const T* fname,
long lineno );
67 bool cond,
const char* label,
const char* fname,
long lineno
70 std::cout <<
"=\\_fail: " << label <<
" \n=/ (";
78 int cond,
const char* label,
const char* fname,
long lineno
81 printf(
"%s%s%s",
"=\\_fail: " , label ,
" \n=/ (" );
89 #define assertTrue(x) ((void)0)
90 #define assertFalse(x) ((void)0)
93 #define assertTrue(cond) uUnit_testThis(!!(cond), #cond, __FILE__,__LINE__ )
95 #define assertFalse(cond) uUnit_testThis( !(cond),"!(" #cond ")", __FILE__,__LINE__ )
const T * remove_dir_name(const T *str)
"C:/DIR/SubDir/file_name.ext" ==> "file_name.ext"
void uUnit_testThis< char >(bool cond, const char *label, const char *fname, long lineno)
const char * remove_dir_name< char >(const char *str)
"C:/DIR/SubDir/file_name.ext" ==> "file_name.ext"
void uUnit_testThis(bool cond, const T *label, const T *fname, long lineno)