MCPcopy Create free account
hub / github.com/apache/singa / FormatIntWidth2

Method FormatIntWidth2

test/gtest/gtest-all.cc:3120–3124  ·  view source on GitHub ↗

Formats an int value as "%02d".

Source from the content-addressed store, hash-verified

3118
3119// Formats an int value as "%02d".
3120std::string String::FormatIntWidth2(int value) {
3121 std::stringstream ss;
3122 ss << std::setfill('0') << std::setw(2) << value;
3123 return ss.str();
3124}
3125
3126// Formats an int value as "%X".
3127std::string String::FormatHexInt(int value) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected