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

Function appendStringInfoChar

src/common/stringinfo.c:203–214  ·  view source on GitHub ↗

* appendStringInfoChar * * Append a single byte to str. * Like appendStringInfo(str, "%c", ch) but much faster. */

Source from the content-addressed store, hash-verified

201 * Like appendStringInfo(str, "%c", ch) but much faster.
202 */
203void
204appendStringInfoChar(StringInfo str, char ch)
205{
206 /* Make more room if needed */
207 if (str->len + 1 >= str->maxlen)
208 enlargeStringInfo(str, 1);
209
210 /* OK, append the character */
211 str->data[str->len] = ch;
212 str->len++;
213 str->data[str->len] = '\0';
214}
215
216/*
217 * appendStringInfoSpaces

Callers 15

appendConditionsFunction · 0.85
deparseFromExprForRelFunction · 0.85
deparseRangeTblRefFunction · 0.85
deparseInsertSqlFunction · 0.85
rebuildInsertSqlFunction · 0.85
deparseColumnRefFunction · 0.85
deparseStringLiteralFunction · 0.85
deparseSubscriptingRefFunction · 0.85
deparseFuncExprFunction · 0.85
deparseOpExprFunction · 0.85
deparseDistinctExprFunction · 0.85
deparseScalarArrayOpExprFunction · 0.85

Calls 1

enlargeStringInfoFunction · 0.85

Tested by 4

print_literalFunction · 0.68
tuple_to_stringinfoFunction · 0.68
pg_decode_changeFunction · 0.68
create_text_stringinfoFunction · 0.68