#include #include #include #include std::string mime_qp_decode(const std::string &bufcoded, bool convert_underscore) { std::string bufplain; int state=0; char qp_char1=0, qp_char2=0; bufplain.reserve(bufcoded.size()); for(unsigned i=0; i