FileManager: Open PNG files with QuickShow when activated.

This commit is contained in:
Andreas Kling 2019-03-22 12:43:29 +01:00
commit 5ca62f356b
Notes: sideshowbarker 2024-07-19 14:58:19 +09:00
3 changed files with 23 additions and 0 deletions

View file

@ -126,4 +126,15 @@ String String::format(const char* fmt, ...)
return builder.to_string();
}
bool String::ends_with(const String& str) const
{
if (str.is_empty())
return true;
if (is_empty())
return false;
if (str.length() > length())
return false;
return !memcmp(characters() + (length() - str.length()), str.characters(), str.length());
}
}