Modificato leggermente il metodo blank (tolto isspace e messo is_space)
git-svn-id: svn://10.65.10.50/trunk@1024 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
parent
80f7a4ef54
commit
4aefec0909
@ -189,9 +189,8 @@ TString& TString::strip(const char* k)
|
|||||||
|
|
||||||
bool TString::blank() const
|
bool TString::blank() const
|
||||||
{
|
{
|
||||||
if (empty()) return TRUE;
|
|
||||||
for (int i = 0; _str[i]; i++)
|
for (int i = 0; _str[i]; i++)
|
||||||
if (!isspace(_str[i]))
|
if (!is_space(_str[i]))
|
||||||
return FALSE;
|
return FALSE;
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
@ -721,7 +720,7 @@ const TFilename& TFilename::tempdir()
|
|||||||
TString16 user(TApplication::user());
|
TString16 user(TApplication::user());
|
||||||
|
|
||||||
user.lower();
|
user.lower();
|
||||||
if (_tempdir.find(user) != _tempdir.len() - user.len())
|
if (user.not_empty() && _tempdir.find(user) != _tempdir.len() - user.len())
|
||||||
#if XVT_OS==XVT_OS_SCOUNIX
|
#if XVT_OS==XVT_OS_SCOUNIX
|
||||||
_tempdir << '/' << user;
|
_tempdir << '/' << user;
|
||||||
#else
|
#else
|
||||||
|
Loading…
x
Reference in New Issue
Block a user