mirror of
https://github.com/MariaDB/server.git
synced 2025-08-05 13:16:09 +03:00
Extend Binary_string::strstr to also take in a const char pointer
One shouldn't have to instantiate a Binary_string every time a strstr call is needed.
This commit is contained in:
@@ -330,6 +330,7 @@ public:
|
||||
|
||||
// Returns offset to substring or -1
|
||||
int strstr(const Binary_string &search, uint32 offset=0);
|
||||
int strstr(const char *search, uint32 search_length, uint32 offset=0);
|
||||
// Returns offset to substring or -1
|
||||
int strrstr(const Binary_string &search, uint32 offset=0);
|
||||
|
||||
|
Reference in New Issue
Block a user