mirror of
https://github.com/zeek/zeek.git
synced 2025-10-05 16:18:19 +00:00
String/StringVal: Replace char*/string constructors with string_view
This commit is contained in:
parent
16ee942a8d
commit
4f470c24ed
4 changed files with 10 additions and 30 deletions
|
@ -43,8 +43,7 @@ public:
|
|||
|
||||
// Constructors creating internal copies of the data passed in.
|
||||
String(const u_char* str, int arg_n, bool add_NUL);
|
||||
explicit String(const char* str);
|
||||
explicit String(const std::string& str);
|
||||
String(std::string_view str);
|
||||
String(const String& bs);
|
||||
|
||||
// Constructor that takes owernship of the vector passed in.
|
||||
|
@ -72,8 +71,7 @@ public:
|
|||
// contents to a copy of the string given by the arguments.
|
||||
//
|
||||
void Set(const u_char* str, int len, bool add_NUL = true);
|
||||
void Set(const char* str);
|
||||
void Set(const std::string& str);
|
||||
void Set(std::string_view str);
|
||||
void Set(const String& str);
|
||||
|
||||
void SetUseFreeToDelete(int use_it) { use_free_to_delete = use_it; }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue