16
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-07-18 19:19:19 +02:00

Simplify len_common_prefix

This commit is contained in:
docentYT
2026-05-01 13:57:33 +02:00
parent 664c340d84
commit 9c27b54960
4 changed files with 6 additions and 9 deletions

View File

@@ -224,7 +224,7 @@ void replace_slashes(std::string &Filename);
std::string_view substr_path(std::string const &Filename);
// returns common prefix of two provided strings
std::ptrdiff_t len_common_prefix(std::string const &Left, std::string const &Right);
std::ptrdiff_t len_common_prefix(std::string_view a, std::string_view b);
// returns true if provided string ends with another provided string
bool ends_with(std::string_view String, std::string_view Suffix);