Codechange: add function to determine whether are string starts or ends with a given other string

This commit is contained in:
rubidium42
2021-05-30 11:20:00 +02:00
committed by rubidium42
parent 2d0abf5a76
commit fed3e3305f
2 changed files with 30 additions and 0 deletions

View File

@@ -51,6 +51,9 @@ bool strtolower(std::string &str, std::string::size_type offs = 0);
bool StrValid(const char *str, const char *last) NOACCESS(2);
void StrTrimInPlace(std::string &str);
bool StrStartsWith(const std::string_view str, const std::string_view prefix);
bool StrEndsWith(const std::string_view str, const std::string_view suffix);
/**
* Check if a string buffer is empty.
*