16   const int wlen = MultiByteToWideChar(CP_EUCJP, 0,
 
   17                                        src.c_str(), src.size(),
 
   21   const int wret = MultiByteToWideChar(CP_EUCJP, 0,
 
   22                                        src.c_str(), src.size(),
 
   24   if (!wret || wlen != wret) {
 
   28   const int len = WideCharToMultiByte(CP_SJIS, 0,
 
   34   const int ret = WideCharToMultiByte(CP_SJIS, 0,
 
   38   if (!ret || len != ret) {
 
   42   return std::string(buf, ret);