mirror of
https://github.com/zeek/zeek.git
synced 2025-10-06 16:48:19 +00:00
Making plugin names case-insensitive for some internal comparisions.
Makes the plugin system a bit more tolerant against spelling inconsistencies that would be hard to catch otherwise.
This commit is contained in:
parent
ab3cdf494a
commit
0f96d06252
3 changed files with 22 additions and 10 deletions
|
@ -159,6 +159,9 @@ int strstr_n(const int big_len, const unsigned char* big,
|
|||
extern int fputs(int len, const char* s, FILE* fp);
|
||||
extern bool is_printable(const char* s, int len);
|
||||
|
||||
// Return a lower-cased version of the string.
|
||||
extern std::string strtolower(const std::string& s);
|
||||
|
||||
extern const char* fmt_bytes(const char* data, int len);
|
||||
|
||||
// Note: returns a pointer into a shared buffer.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue