MCPcopy Create free account
hub / github.com/Meituan-Dianping/SQLAdvisor / find_found

Function find_found

extra/replace.c:836–848  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

834*/
835
836static short find_found(FOUND_SET *found_set,uint table_offset,
837 int found_offset)
838{
839 int i;
840 for (i=0 ; (uint) i < found_sets ; i++)
841 if (found_set[i].table_offset == table_offset &&
842 found_set[i].found_offset == found_offset)
843 return (short) (-i-2);
844 found_set[i].table_offset=table_offset;
845 found_set[i].found_offset=found_offset;
846 found_sets++;
847 return (short) (-i-2); /* return new position */
848}
849
850 /* Return 1 if regexp starts with \b or ends with \b*/
851

Callers 1

init_replaceFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected