Add starts_with()/ends_with() to zeek::util namespace

This commit is contained in:
Jon Siwek 2021-02-26 14:43:55 -08:00
parent b8ec65ccf7
commit 9ced370b48
2 changed files with 32 additions and 30 deletions

View file

@ -311,6 +311,8 @@ std::vector<std::string_view> tokenize_string(std::string_view input, const char
extern char* copy_string(const char* s);
extern int streq(const char* s1, const char* s2);
extern bool starts_with(std::string_view s, std::string_view beginning);
extern bool ends_with(std::string_view s, std::string_view ending);
extern char* skip_whitespace(char* s);
extern const char* skip_whitespace(const char* s);