mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 03:07:43 +00:00
FileManager: Open PNG files with QuickShow when activated.
This commit is contained in:
parent
d563dc0565
commit
5ca62f356b
3 changed files with 23 additions and 0 deletions
|
@ -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());
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue