MCPcopy Create free account
hub / github.com/boostorg/filesystem / do_cell

Function do_cell

doc/path_table.cpp:104–129  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

102 // do_cell ---------------------------------------------------------------//
103
104 void do_cell( const string & test_case, int i )
105 {
106 string temp = column[i]->cell_value(path(test_case));
107 string value;
108 outfile << "<td>";
109 if (temp.empty())
110 value = "<font size=\"-1\"><i>empty</i></font>";
111 else
112 value = string("<code>") + temp + "</code>";
113
114 if (posix)
115 posix_outfile << value << '\n';
116 else
117 {
118 std::getline(posix_infile, temp);
119 if (value != temp) // POSIX and Windows differ
120 {
121 value.insert(0, "<br>");
122 value.insert(0, temp);
123 value.insert(0, "<span style=\"background-color: #CCFFCC\">");
124 value += "</span>";
125 }
126 outfile << value;
127 }
128 outfile << "</td>\n";
129 }
130
131// do_row ------------------------------------------------------------------//
132

Callers 1

do_rowFunction · 0.85

Calls 3

pathFunction · 0.50
stringFunction · 0.50
cell_valueMethod · 0.45

Tested by

no test coverage detected