Subversion Repositories heating

Rev

Rev 3 | Rev 5 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 3 Rev 4
Line 243... Line 243...
243
	memset(p, 0, len+1);
243
	memset(p, 0, len+1);
244
	strncpy(p, str.c_str(), len);
244
	strncpy(p, str.c_str(), len);
245
	return p;
245
	return p;
246
}
246
}
247
 
247
 
-
 
248
bool helper::ToBool (char* str)
-
 
249
{
-
 
250
	if (!strcasestr(str, "true") || !strcasestr(str, "yes") || !strcasestr(str, "1") || !strcasestr(str, "on"))
-
 
251
		return true;
-
 
252
 
-
 
253
	return false;
-
 
254
}
-
 
255
 
-
 
256
bool helper::ToBool (string s)
-
 
257
{
-
 
258
	if (!compcase(s, "true") || !compcase(s, "yes") || !compcase(s, "1") || !compcase(s, "on"))
-
 
259
		return true;
-
 
260
 
-
 
261
	return false;
-
 
262
}
-
 
263
 
-
 
264
bool helper::ToBool (int i)
-
 
265
{
-
 
266
	if (i != 0)
-
 
267
		return true;
-
 
268
 
-
 
269
	return false;
-
 
270
}
-
 
271
 
248
bool helper::isArm()
272
bool helper::isArm()
249
{
273
{
250
struct utsname uts;
274
struct utsname uts;
251
std::string str;
275
std::string str;
252
 
276