MCPcopy Create free account
hub / github.com/davisking/dlib / htmlify

Function htmlify

tools/htmlify/htmlify.cpp:404–436  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

402// -------------------------------------------------------------------------------------------------
403
404void htmlify (
405 istream& in,
406 ostream& out,
407 const std::string& title,
408 bool colored,
409 bool number_lines
410)
411{
412 if (colored)
413 {
414 static cprinter cp;
415 if (number_lines)
416 {
417 cp.print_and_number(in,out,title);
418 }
419 else
420 {
421 cp.print(in,out,title);
422 }
423 }
424 else
425 {
426 static bprinter bp;
427 if (number_lines)
428 {
429 bp.print_and_number(in,out,title);
430 }
431 else
432 {
433 bp.print(in,out,title);
434 }
435 }
436}
437
438// -------------------------------------------------------------------------------------------------
439

Callers 3

mainFunction · 0.85
printMethod · 0.85
printMethod · 0.85

Calls 5

errorClass · 0.85
valueMethod · 0.80
printMethod · 0.45
resetMethod · 0.45
move_nextMethod · 0.45

Tested by

no test coverage detected