| 16 | #endif |
| 17 | |
| 18 | size_t kwsysEncoding_mbstowcs(wchar_t* dest, char const* str, size_t n) |
| 19 | { |
| 20 | if (str == 0) { |
| 21 | return (size_t)-1; |
| 22 | } |
| 23 | #ifdef _WIN32 |
| 24 | return MultiByteToWideChar(KWSYS_ENCODING_DEFAULT_CODEPAGE, 0, str, -1, dest, |
| 25 | (int)n) - |
| 26 | 1; |
| 27 | #else |
| 28 | return mbstowcs(dest, str, n); |
| 29 | #endif |
| 30 | } |
| 31 | |
| 32 | wchar_t* kwsysEncoding_DupToWide(char const* str) |
| 33 | { |
no outgoing calls
no test coverage detected
searching dependent graphs…