---------------------------------------------------------------------------
| 100 | |
| 101 | //--------------------------------------------------------------------------- |
| 102 | std::wstring ToFullWidth(const std::wstring& input) |
| 103 | { |
| 104 | std::wstring result; |
| 105 | for (wchar_t ch : input) { |
| 106 | if (ch >= 0x20 && ch <= 0x7E) { |
| 107 | if (ch == 0x20) |
| 108 | result += 0x3000; |
| 109 | else |
| 110 | result += ch + 0xFEE0; |
| 111 | } |
| 112 | else |
| 113 | result += ch; |
| 114 | } |
| 115 | return result; |
| 116 | } |
| 117 | |
| 118 | //--------------------------------------------------------------------------- |
| 119 | std::string URL_Encoded_Encode(const std::string& URL); |