ReCodEx - Task Broker
ReCodEx is complex programmer testing solution, primary targeted to technical universities. It's highly customizable and based on modern technologies.
string_to_hex.cpp
1
#include "string_to_hex.h"
2
3
std::string helpers::string_to_hex(
const
std::string &
string
)
4
{
5
std::stringstream ss;
6
ss << std::hex << std::setfill(
'0'
) << std::nouppercase;
7
for
(
auto
&c :
string
) {
8
ss << std::setw(2) << static_cast<unsigned int>(c);
9
}
10
return
ss.str();
11
}
src
helpers
string_to_hex.cpp
Generated on Sat Nov 19 2016 15:15:48 for ReCodEx - Task Broker by
1.8.12