mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
core: turn existing_filename into std::string
Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
parent
37f2207f94
commit
41cb916060
10 changed files with 59 additions and 55 deletions
|
@ -76,5 +76,11 @@ std::string format_string_std(const char *fmt, Args&&... args)
|
|||
return res;
|
||||
}
|
||||
|
||||
// Sadly, starts_with only with C++20!
|
||||
inline bool starts_with(const std::string &s, const char *s2)
|
||||
{
|
||||
return s.rfind(s2, 0) == 0;
|
||||
}
|
||||
|
||||
#endif
|
||||
#endif // SUBSURFACE_STRING_H
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue