mirror of
https://github.com/zeek/zeek.git
synced 2025-10-07 00:58:19 +00:00
Remove old string functions.
More specifically, this removes the functions: strcasecmp_n strchr_n strrchr_n and replaces the calls with the respective C-library calls that should be part of just about all operating systems by now.
This commit is contained in:
parent
611a8ab935
commit
446a44787a
7 changed files with 11 additions and 51 deletions
|
@ -143,11 +143,8 @@ extern char* get_word(char*& s);
|
|||
extern void get_word(int length, const char* s, int& pwlen, const char*& pw);
|
||||
extern void to_upper(char* s);
|
||||
extern std::string to_upper(const std::string& s);
|
||||
extern const char* strchr_n(const char* s, const char* end_of_s, char ch);
|
||||
extern const char* strrchr_n(const char* s, const char* end_of_s, char ch);
|
||||
extern int decode_hex(char ch);
|
||||
extern unsigned char encode_hex(int h);
|
||||
extern int strcasecmp_n(int s_len, const char* s, const char* t);
|
||||
#ifndef HAVE_STRCASESTR
|
||||
extern char* strcasestr(const char* s, const char* find);
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue