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

Method FormatHexInt

test/gtest/gtest-all.cc:3127–3131  ·  view source on GitHub ↗

Formats an int value as "%X".

Source from the content-addressed store, hash-verified

3125
3126// Formats an int value as "%X".
3127std::string String::FormatHexInt(int value) {
3128 std::stringstream ss;
3129 ss << std::hex << std::uppercase << value;
3130 return ss.str();
3131}
3132
3133// Formats a byte as "%02X".
3134std::string String::FormatByte(unsigned char value) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected