21 typedef wchar_t tchar;
22 typedef std::wstring file_name_t;
25 typedef std::string file_name_t;
35 size_t maxlen = (str.length() + 1) *
sizeof(
wchar_t) /
sizeof(char);
36 std::vector<char> mbstr(maxlen);
38 std::wcstombs(&mbstr[0], str.c_str(), maxlen);
39 std::string res = std::string(&mbstr[0]);
51 size_t maxlen = str.length() + 1;
52 std::vector<wchar_t> wcstr(maxlen);
54 std::mbstowcs(&wcstr[0], str.c_str(), maxlen);
55 file_name_t res = file_name_t(&wcstr[0]);
Inference Engine API.
Definition: ie_argmax_layer.hpp:15
file_name_t stringToFileName(const std::string &str)
Conversion from single-byte character string to a possibly-wide one.
Definition: ie_unicode.hpp:49
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:33