20 if (src.data ==
nullptr || src.length == 0U) {
23 return {(
const char*)src.data, src.length};
32std::string
toString(
const char* format, va_list args);
35inline std::string
toString(
const char* format, ...) {
static UA_LogCategory const char va_list args
UA_String allocNativeString(std::string_view src)
Allocate UA_String from std::string_view.
UA_String toNativeString(std::string_view src) noexcept
Convert std::string_view to UA_String (no copy)
std::string_view toStringView(const UA_String &src) noexcept
Convert UA_String to std::string_view Can be marked noexcept: https://stackoverflow....
std::string toString(const UA_String &src)
Convert UA_String to std::string.