MCPcopy Create free account
hub / github.com/F-Stack/f-stack / xo_buf_indent

Function xo_buf_indent

tools/libxo/libxo/libxo.c:720–733  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

718}
719
720static void
721xo_buf_indent (xo_handle_t *xop, int indent)
722{
723 xo_buffer_t *xbp = &xop->xo_data;
724
725 if (indent <= 0)
726 indent = xo_indent(xop);
727
728 if (!xo_buf_has_room(xbp, indent))
729 return;
730
731 memset(xbp->xb_curp, ' ', indent);
732 xbp->xb_curp += indent;
733}
734
735static char xo_xml_amp[] = "&amp;";
736static char xo_xml_lt[] = "&lt;";

Callers 4

xo_message_hcvFunction · 0.85
xo_buf_append_divFunction · 0.85
xo_format_titleFunction · 0.85
xo_format_valueFunction · 0.85

Calls 3

xo_indentFunction · 0.85
xo_buf_has_roomFunction · 0.85
memsetFunction · 0.85

Tested by

no test coverage detected