MCPcopy Create free account
hub / github.com/RedisGraph/RedisGraph / SIValue_StringJoin

Function SIValue_StringJoin

src/value.c:428–435  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

426}
427
428void SIValue_StringJoin(SIValue *strings, unsigned int string_count, const char *delimiter,
429 char **buf, size_t *buf_len, size_t *bytesWritten) {
430
431 for(int i = 0; i < string_count; i ++) {
432 SIValue_ToString(strings[i], buf, buf_len, bytesWritten);
433 if(i < string_count - 1) *bytesWritten += snprintf(*buf + *bytesWritten, *buf_len, "%s", delimiter);
434 }
435}
436
437// assumption: either a or b is a string
438static SIValue SIValue_ConcatString(const SIValue a, const SIValue b) {

Callers 2

SIValue_ConcatStringFunction · 0.85
Record_ToStringFunction · 0.85

Calls 1

SIValue_ToStringFunction · 0.85

Tested by

no test coverage detected