15 result.reserve(str.size());
17 while (index < str.size())
19 unsigned char c1 = str[index++];
20 if (0xa1 <= c1 && c1 <= 0xdf)
28 assert(index < str.size());
29 if (index >= str.size())
31 unsigned char c2 = str[index++];
std::string sjis2euc(const std::string &str)
Convert character encoding from Shift_JIS to EUC-JP.