* appendStringInfoSpaces * * Append the specified number of spaces to a buffer. */
| 219 | * Append the specified number of spaces to a buffer. |
| 220 | */ |
| 221 | void |
| 222 | appendStringInfoSpaces(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 |
no test coverage detected