21 #ifndef GF_STRING_REF_H
22 #define GF_STRING_REF_H
28 #ifndef DOXYGEN_SHOULD_SKIP_THIS
61 constexpr StringRef(
const char *str, std::size_t size)
77 , m_size(std::strlen(str))
118 #ifndef DOXYGEN_SHOULD_SKIP_THIS
constexpr StringRef()
Default constructor.
Definition: StringRef.h:48
StringRef(const std::string &str)
Constructor from a std::string
Definition: StringRef.h:87
constexpr std::size_t getSize() const
Get the size of the string.
Definition: StringRef.h:108
A constant reference to a string and its size.
Definition: StringRef.h:41
constexpr const char * getData() const
Get a pointer to the string.
Definition: StringRef.h:99
StringRef(const char *str)
Constructor from a null-terminated string.
Definition: StringRef.h:75
constexpr StringRef(const char *str, std::size_t size)
Constructor from a pointer and a size.
Definition: StringRef.h:61