17 return {str->
str, str->
len};
31 size_t len = view.size();
38 if (str.
str ==
nullptr || str.
len == 0) {
Definition raw_os_ostream.hpp:19
constexpr std::string_view to_string_view(const struct WPI_String *str)
Converts a WPI_String to a string_view.
Definition string.hpp:15
WPI_String copy_wpi_string(const WPI_String &str)
Allocates a copy of a WPI_String.
Definition string.hpp:37
constexpr WPI_String make_string(std::string_view view)
Converts a string_view to a WPI_String.
Definition string.hpp:24
WPI_String alloc_wpi_string(std::string_view view)
Allocates a copy of a string_view and stores the result into a WPI_String.
Definition string.hpp:29
char * WPI_AllocateString(struct WPI_String *wpiString, size_t length)
Allocates a WPI_String for the specified length.
A const UTF8 string.
Definition string.h:12
const char * str
Contents.
Definition string.h:14
size_t len
Length.
Definition string.h:16