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

Function replace_len

extra/replace.c:866–877  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

864
865
866static uint replace_len(char * str)
867{
868 uint len=0;
869 while (*str)
870 {
871 if (str[0] == '\\' && str[1])
872 str++;
873 str++;
874 len++;
875 }
876 return len;
877}
878
879
880 /* The actual loop */

Callers 1

init_replaceFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected