Formats an int value as "%02d".
| 3118 | |
| 3119 | // Formats an int value as "%02d". |
| 3120 | std::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". |
| 3127 | std::string String::FormatHexInt(int value) { |
nothing calls this directly
no outgoing calls
no test coverage detected