gets a string representation of given node
| 255 | |
| 256 | // gets a string representation of given node |
| 257 | void QGNode_ToString |
| 258 | ( |
| 259 | const QGNode *n, // target node |
| 260 | sds *buff // result buffer (concatenated) |
| 261 | ) { |
| 262 | ASSERT(n != NULL); |
| 263 | ASSERT(buff != NULL); |
| 264 | |
| 265 | *buff = sdscatprintf(*buff, "("); |
| 266 | |
| 267 | if(n->alias) *buff = sdscatprintf(*buff, "%s", n->alias); |
| 268 | |
| 269 | for(uint i = 0; i < QGNode_LabelCount(n); i++) { |
| 270 | *buff = sdscatprintf(*buff, ":%s", n->labels[i]); |
| 271 | } |
| 272 | |
| 273 | *buff = sdscatprintf(*buff, ")"); |
| 274 | } |
| 275 | |
| 276 | void QGNode_Free |
| 277 | ( |
nothing calls this directly
no test coverage detected