MCPcopy Create free account
hub / github.com/EQEmu/EQEmu / table_entry

Function table_entry

tests/cppunit/htmloutput.cpp:220–234  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

218 enum ClassType { Title, Success, Error };
219
220 void
221 table_entry(ostream& os, ClassType type, const string& s,
222 int width = 0, const string& link = "")
223 {
224 static const char* class_types[] = { "title", "success", "error" };
225
226 os << " <td";
227 if (width)
228 os << " style=\"width:" << width << "%\"";
229 if (!link.empty())
230 os << " class=\"tablecell_" << class_types[type] << "\"><a href=\"#" << link << "\">" << escape(s) << "</a>";
231 else
232 os << " class=\"tablecell_" << class_types[type] << "\">" << escape(s);
233 os << "</td>\n";
234 }
235
236 } // anonymous namespace
237

Callers 5

operator()Method · 0.85
operator()Method · 0.85
operator()Method · 0.85
operator()Method · 0.85
generateMethod · 0.85

Calls 2

escapeFunction · 0.70
emptyMethod · 0.45

Tested by

no test coverage detected