MCPcopy Create free account
hub / github.com/cinder/Cinder / print_cdata_node

Function print_cdata_node

include/rapidxml/rapidxml_print.hpp:169–188  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

167 // Print data node
168 template<class OutIt, class Ch>
169 inline OutIt print_cdata_node(OutIt out, const xml_node<Ch> *node, int flags, int indent)
170 {
171 assert(node->type() == node_cdata);
172 if (!(flags & print_no_indenting))
173 out = fill_chars(out, indent, Ch('\t'));
174 *out = Ch('<'); ++out;
175 *out = Ch('!'); ++out;
176 *out = Ch('['); ++out;
177 *out = Ch('C'); ++out;
178 *out = Ch('D'); ++out;
179 *out = Ch('A'); ++out;
180 *out = Ch('T'); ++out;
181 *out = Ch('A'); ++out;
182 *out = Ch('['); ++out;
183 out = copy_chars(node->value(), node->value() + node->value_size(), out);
184 *out = Ch(']'); ++out;
185 *out = Ch(']'); ++out;
186 *out = Ch('>'); ++out;
187 return out;
188 }
189
190 // Print element node
191 template<class OutIt, class Ch>

Callers 1

print_nodeFunction · 0.85

Calls 6

assertFunction · 0.85
fill_charsFunction · 0.85
copy_charsFunction · 0.85
value_sizeMethod · 0.80
typeMethod · 0.45
valueMethod · 0.45

Tested by

no test coverage detected