35 #ifdef HAVE_SYS_STAT_H 36 # include <sys/stat.h> 44 for(
int i = 0; str[i] !=
'\0'; i++)
45 str[i] = tolower (str[i]);
56 for(std::string::iterator i = str.begin();
69 std::string lowstr = str;
70 for(std::string::iterator i = lowstr.begin();
84 std::string upstr = str;
85 for(std::string::iterator i = upstr.begin();
111 char* workingStr =
new char[strlen (str) + 1];
112 strcpy (workingStr, str);
115 if( lowstr ==
"true" ||
132 char* workingStr =
new char[strlen(str) + 1];
133 strcpy (workingStr, str);
136 if( lowstr ==
"false" ||
151 return isTrue( str.c_str() );
189 char* workingStr =
new char[strlen(str) + 1];
190 strcpy (workingStr, str);
193 if( lowstr ==
"yes" ||
212 char* workingStr =
new char[strlen(str) + 1];
213 strcpy (workingStr, str);
216 if( lowstr ==
"no" ||
243 return isYes (str.c_str());
252 return isNo (str.c_str());
260 return atof(str.c_str());
268 return atoi(str.c_str());
279 std::string::size_type pos = filepath.find_last_of (
"\\/");
280 if (std::string::npos != pos) {
281 result = filepath.substr (0, pos);
295 std::string::size_type pos = filepath.find_last_of (
"\\/");
296 if (std::string::npos != pos) {
297 result = filepath.substr (pos + 1);
311 dp = opendir (dir.c_str());
332 #ifdef HAVE_SYS_STAT_H static int toInt(const std::string)
static std::string strtoupper(const std::string &)
static bool isYesNo(const char *)
static void create_directory(const std::string &dir)
static double toDouble(const std::string)
static char * strtolower(char *)
static bool isFalse(const char *)
static bool isNo(const char *)
static bool isYes(const char *)
static bool isTrueFalse(const char *)
static bool isTrue(const char *)
static std::string dirname(const std::string &)
static std::string filename(const std::string &)
static bool is_directory_usable(const std::string &dir)