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

Function pad_int_with_zeros

dlib/string/string.h:264–272  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

262// ----------------------------------------------------------------------------------------
263
264 inline std::string pad_int_with_zeros (
265 int i,
266 unsigned long width = 6
267 )
268 {
269 std::ostringstream sout;
270 sout << std::setw(width) << std::setfill('0') << i;
271 return sout.str();
272 }
273
274// ----------------------------------------------------------------------------------------
275

Callers 1

cluster_datasetFunction · 0.85

Calls 1

strMethod · 0.45

Tested by

no test coverage detected