MCPcopy Create free account
hub / github.com/comaps/comaps / Decode

Function Decode

libs/coding/base64.cpp:26–32  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

24// From: http://stackoverflow.com/a/28471421
25
26std::string Decode(std::string const & val)
27{
28 using namespace boost::archive::iterators;
29 using It = transform_width<binary_from_base64<std::string::const_iterator>, 8, 6>;
30 return boost::algorithm::trim_right_copy_if(std::string(It(std::begin(val)), It(std::end(val))),
31 [](char c) { return c == '\0'; });
32}
33
34std::string Encode(std::string_view val)
35{

Callers 12

LoadOuterFunction · 0.70
DecodeMethod · 0.70
UNIT_TESTFunction · 0.50
TestCoderFunction · 0.50
SearchPlusCodeMethod · 0.50
DeserializeMethod · 0.50
LoadSizesMethod · 0.50
DeserializeMethod · 0.50
ReadDeltaFunction · 0.50
ReadGammaFunction · 0.50
DeserializeNotUTurnMethod · 0.50

Calls 2

beginFunction · 0.50
endFunction · 0.50

Tested by 2

UNIT_TESTFunction · 0.40
TestCoderFunction · 0.40