Function rosidl_typesupport_fastrtps_cpp::wstring_to_u16string

Function Documentation

bool rosidl_typesupport_fastrtps_cpp::wstring_to_u16string(const std::wstring &wstr, std::u16string &u16str)

Convert a std::wstring into a std::u16string.

Parameters:
  • wstr[in] The std::wstring to copy from.

  • u16str[inout] The std::u16string to copy to.

Returns:

true if resizing u16str and assignment succeeded, otherwise false.