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

Function make_scope_string

tools/htmlify/to_xml.cpp:257–274  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

255// ----------------------------------------------------------------------------------------
256
257string make_scope_string (
258 const std::vector<string>& namespaces,
259 unsigned long exclude_last_num_scopes = 0
260)
261{
262 string temp;
263 for (unsigned long i = 0; i + exclude_last_num_scopes < namespaces.size(); ++i)
264 {
265 if (namespaces[i].size() == 0)
266 continue;
267
268 if (temp.size() == 0)
269 temp = namespaces[i];
270 else
271 temp += "::" + namespaces[i];
272 }
273 return temp;
274}
275
276// ----------------------------------------------------------------------------------------
277

Callers 1

process_fileFunction · 0.85

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected