mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-07-18 19:19:19 +02:00
Optimize substr_path implementation and change return type to sd::string
This commit is contained in:
@@ -214,7 +214,7 @@ void erase_leading_slashes(std::string &Filename);
|
||||
void replace_slashes(std::string &Filename);
|
||||
|
||||
// returns potential path part from provided file name
|
||||
std::string_view substr_path(std::string const &Filename);
|
||||
std::string substr_path(std::string const &Filename);
|
||||
|
||||
// returns common prefix of two provided strings
|
||||
std::ptrdiff_t len_common_prefix(std::string_view a, std::string_view b);
|
||||
|
||||
Reference in New Issue
Block a user