MCPcopy Create free account
hub / github.com/apache/cloudberry / appendStringInfoSpaces

Function appendStringInfoSpaces

src/common/stringinfo.c:221–234  ·  view source on GitHub ↗

* appendStringInfoSpaces * * Append the specified number of spaces to a buffer. */

Source from the content-addressed store, hash-verified

219 * Append the specified number of spaces to a buffer.
220 */
221void
222appendStringInfoSpaces(StringInfo str, int count)
223{
224 if (count > 0)
225 {
226 /* Make more room if needed */
227 enlargeStringInfo(str, count);
228
229 /* OK, append the spaces */
230 while (--count >= 0)
231 str->data[str->len++] = ' ';
232 str->data[str->len] = '\0';
233 }
234}
235
236/*
237 * appendBinaryStringInfo

Callers 15

make_val_with_blanksFunction · 0.85
log_line_prefixFunction · 0.85
appendContextKeywordFunction · 0.85
jsonPathFromCstringFunction · 0.85
flattenJsonPathParseItemFunction · 0.85
ExplainNodeFunction · 0.85
show_sort_infoFunction · 0.85
ExplainSubPlansFunction · 0.85
ExplainPropertyListFunction · 0.85

Calls 1

enlargeStringInfoFunction · 0.85

Tested by

no test coverage detected