Overload SplitString with a wide-char version to make it easier to test the string16 version with wide character literals.
| 24 | // Overload SplitString with a wide-char version to make it easier to |
| 25 | // test the string16 version with wide character literals. |
| 26 | void SplitString(const std::wstring& str, |
| 27 | wchar_t c, |
| 28 | std::vector<std::wstring>* result) { |
| 29 | std::vector<string16> result16; |
| 30 | SplitString(WideToUTF16(str), c, &result16); |
| 31 | for (size_t i = 0; i < result16.size(); ++i) |
| 32 | result->push_back(UTF16ToWide(result16[i])); |
| 33 | } |
| 34 | #endif |
| 35 | |
| 36 | } // anonymous namespace |
no test coverage detected