NVIDIA NvNeural SDK
2022.2
GPU inference framework for NVIDIA Nsight Deep Learning Designer
|
Helper functions for working with wide-character APIs on Windows. More...
#include <string>
Go to the source code of this file.
Functions | |
const wchar_t * | nvneural::str::utf16Data (const std::u16string &stringUtf16) |
Returns the contents of a std::u16string as a wchar_t*. More... | |
std::u16string | nvneural::str::utf16FromUtf8 (const char *pStringUtf8) |
Converts a UTF-8 string to UTF-16. More... | |
std::string | nvneural::str::utf8FromUtf16 (const std::u16string &stringUtf16) |
Converts a UTF-16 string to UTF-8. More... | |
Helper functions for working with wide-character APIs on Windows.
const wchar_t * nvneural::str::utf16Data | ( | const std::u16string & | stringUtf16 | ) |
Returns the contents of a std::u16string as a wchar_t*.
Provided as a convenience function to reduce the amount of casting between char16_t and wchar_t when working with UTF-16 string types.
stringUtf16 | A UTF-16 string object |
std::u16string nvneural::str::utf16FromUtf8 | ( | const char * | pStringUtf8 | ) |
Converts a UTF-8 string to UTF-16.
Uses WideCharToMultiByte system APIs to avoid going through deprecated functions in <codecvt> or pulling in other string handling libraries.
pStringUtf8 | Pointer to a null-terminated UTF-8 string |
std::string nvneural::str::utf8FromUtf16 | ( | const std::u16string & | stringUtf16 | ) |
Converts a UTF-16 string to UTF-8.
Uses MultiByteToWideChar system APIs to avoid going through deprecated functions in <codecvt> or pulling in other string handling libraries.
stringUtf16 | A UTF-16 string object |