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

Function htmlify

tools/htmlify/htmlify.cpp:498–530  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

496// -------------------------------------------------------------------------------------------------
497
498void htmlify (
499 istream& in,
500 ostream& out,
501 const std::string& title,
502 bool colored,
503 bool number_lines,
504 cprinter& cp
505)
506{
507 if (colored)
508 {
509 if (number_lines)
510 {
511 cp.print_and_number(in,out,title);
512 }
513 else
514 {
515 cp.print(in,out,title);
516 }
517 }
518 else
519 {
520 static bprinter bp;
521 if (number_lines)
522 {
523 bp.print_and_number(in,out,title);
524 }
525 else
526 {
527 bp.print(in,out,title);
528 }
529 }
530}
531
532// -------------------------------------------------------------------------------------------------
533

Callers 3

mainFunction · 0.85
printMethod · 0.85
printMethod · 0.85

Calls 6

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

Tested by

no test coverage detected