12   const int wlen = MultiByteToWideChar(CP_EUCJP, 0,
 
   13                                        src.c_str(), src.size(),
 
   17   const int wret = MultiByteToWideChar(CP_EUCJP, 0,
 
   18                                        src.c_str(), src.size(),
 
   20   if (!wret || wlen != wret) {
 
   24   const int len = WideCharToMultiByte(CP_SJIS, 0,
 
   30   const int ret = WideCharToMultiByte(CP_SJIS, 0,
 
   34   if (!ret || len != ret) {
 
   38   return std::string(buf, ret);