Removed StringUtils::notEmpty (#4208)
This commit is contained in:
parent
08d1a2df4a
commit
8ce0def43d
@ -121,24 +121,6 @@ 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.
|
||||
*/
|
||||
|
@ -47,7 +47,6 @@ namespace StringUtils
|
||||
std::string removeExtension(const std::string& filename);
|
||||
std::string getExtension(const std::string& filename);
|
||||
|
||||
bool notEmpty(const irr::core::stringw& input);
|
||||
std::string ticksTimeToString(int time);
|
||||
std::string timeToString(float time, unsigned int precision=2,
|
||||
bool display_minutes_if_zero = true, bool display_hours = false);
|
||||
|
Loading…
x
Reference in New Issue
Block a user