MCPcopy Create free account
hub / github.com/c3d/tao3D / formatSyntax

Method formatSyntax

tao/documentation.cpp:297–317  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

295
296
297text ExtractDoc::formatSyntax(XL::Tree *t)
298// ----------------------------------------------------------------------------
299// Format the syntax documentation from the given tree
300// ----------------------------------------------------------------------------
301{
302 std::ostringstream oss;
303 XL::Renderer render(oss);
304 QFileInfo fi("system:nocomment.stylesheet");
305 render.SelectStyleSheet( text(fi.absoluteFilePath().toUtf8().constData()) );
306 render.RenderFile(t);
307
308 syntax = oss.str();
309 size_t begin;
310
311 while ((begin = syntax.find('\n')) != std::string::npos )
312 {
313 syntax.erase(begin, 1);
314 }
315
316 return syntax;
317}
318
319text ExtractDoc::addParam(XL::Name *name, XL::Name *ptype, text *comment)
320// ----------------------------------------------------------------------------

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected