MCPcopy Create free account
hub / github.com/MariaDB/server / find_string_in_array

Function find_string_in_array

sql/strfunc.cc:393–404  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

391*/
392
393int find_string_in_array(LEX_CSTRING * const haystack, LEX_CSTRING * const needle,
394 CHARSET_INFO * const cs)
395{
396 const LEX_CSTRING *pos;
397 for (pos= haystack; pos->str; pos++)
398 if (!cs->strnncollsp(pos->str, pos->length,
399 needle->str, needle->length))
400 {
401 return (int)(pos - haystack);
402 }
403 return -1;
404}
405
406
407const char *set_to_string(THD *thd, LEX_CSTRING *result, ulonglong set,

Callers 1

load_from_rowMethod · 0.85

Calls 1

strnncollspMethod · 0.80

Tested by

no test coverage detected