WPILibC++ 2027.0.0-alpha-4
Loading...
Searching...
No Matches
string.hpp File Reference
#include <cstring>
#include <string_view>
#include "wpi/util/string.h"

Go to the source code of this file.

Namespaces

namespace  wpi
namespace  wpi::util

Functions

constexpr std::string_view wpi::util::to_string_view (const struct WPI_String *str)
 Converts a WPI_String to a string_view.
constexpr WPI_String wpi::util::make_string (std::string_view view)
 Converts a string_view to a WPI_String.
WPI_String wpi::util::alloc_wpi_string (std::string_view view)
 Allocates a copy of a string_view and stores the result into a WPI_String.
WPI_String wpi::util::copy_wpi_string (const WPI_String &str)
 Allocates a copy of a WPI_String.