[GSoC uni] Small increment.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/uni@12900 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
@@ -110,6 +110,23 @@ namespace StringUtils
|
||||
return filename;
|
||||
} // getExtension
|
||||
|
||||
//-------------------------------------------------------------------------
|
||||
/** Checks if the input string is not empty. ( = has characters different from a space)
|
||||
*/
|
||||
bool notEmpty(const irr::core::stringw& input)
|
||||
{
|
||||
const int size = input.size();
|
||||
int nonEmptyChars = 0;
|
||||
for (int n=0; n<size; n++)
|
||||
{
|
||||
if (input[n] != L' ')
|
||||
{
|
||||
nonEmptyChars++;
|
||||
}
|
||||
}
|
||||
return (nonEmptyChars > 0);
|
||||
} // getExtension
|
||||
|
||||
//-------------------------------------------------------------------------
|
||||
/** Returns a string converted to upper case.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user