MCPcopy Create free account
hub / github.com/bloomberg/comdb2 / has_delimiter

Function has_delimiter

tools/cdb2sql/cdb2sql.cpp:532–544  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

530}
531
532static bool has_delimiter(char *line, int len, char *delimiter, int dlen)
533{
534 if (dlen > len)
535 return false;
536 while (dlen > 0) {
537 if (delimiter[dlen - 1] != line[len - 1]) {
538 return false;
539 }
540 len--;
541 dlen--;
542 }
543 return true;
544}
545
546static char *read_line()
547{

Callers 1

read_lineFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected