26 return {str->
str, str->
len};
69 const char* utf8String,
size_t length);
Foonathan namespace.
Definition ntcore_cpp.h:26
constexpr std::string_view to_string_view(const struct WPI_String *str)
Converts a WPI_String to a string_view.
Definition string.h:24
constexpr WPI_String make_string(std::string_view view)
Converts a string_view to a WPI_String.
Definition string.h:33
char * WPI_AllocateString(struct WPI_String *wpiString, size_t length)
Allocates a WPI_String for the specified length.
struct WPI_String * WPI_AllocateStringArray(size_t length)
Allocates an array of WPI_Strings.
void WPI_InitStringWithLength(struct WPI_String *wpiString, const char *utf8String, size_t length)
Initializes a WPI_String from a UTF-8 string and length.
void WPI_InitString(struct WPI_String *wpiString, const char *utf8String)
Initializes a WPI_String from a null terminated UTF-8 string.
void WPI_FreeString(const struct WPI_String *wpiString)
Frees a WPI_String that was allocated with WPI_AllocateString()
void WPI_FreeStringArray(const struct WPI_String *wpiStringArray, size_t length)
Frees a WPI_String array returned by WPI_AllocateStringArray().
A const UTF8 string.
Definition string.h:14
const char * str
Contents.
Definition string.h:16
size_t len
Length.
Definition string.h:18