1
0
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:
Vicențiu Ciorbaru
2021-09-29 14:04:31 +03:00
parent cd873c8688
commit c115559b66
2 changed files with 17 additions and 12 deletions

View File

@@ -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);