20 typedef wchar_t tchar;
21 typedef std::wstring file_name_t;
24 typedef std::string file_name_t;
34 size_t maxlen = (str.length() + 1) *
sizeof(
wchar_t) /
sizeof(char);
35 std::vector<char> mbstr(maxlen);
37 std::wcstombs(&mbstr[0], str.c_str(), maxlen);
38 std::string res = std::string(&mbstr[0]);
50 size_t maxlen = str.length() + 1;
51 std::vector<wchar_t> wcstr(maxlen);
53 std::mbstowcs(&wcstr[0], str.c_str(), maxlen);
54 file_name_t res = file_name_t(&wcstr[0]);
Inference Engine API.
Definition: ie_argmax_layer.hpp:11
file_name_t stringToFileName(const std::string &str)
Conversion from single-byte character string to a possibly-wide one.
Definition: ie_unicode.hpp:48
A header file for the main Inference Engine exception.
std::string fileNameToString(const file_name_t &str)
Conversion from possibly-wide character string to a single-byte chain.
Definition: ie_unicode.hpp:32