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))
    99     constexpr 
const char *
getData() const noexcept {
   108     constexpr std::size_t 
getSize() const noexcept {
   130     constexpr 
const char *
begin() const noexcept {
   141     constexpr 
const char *
end() const noexcept {
   142       return m_data + m_size;
   151 #ifndef DOXYGEN_SHOULD_SKIP_THIS   156 #endif // GF_STRING_REF_H constexpr StringRef()
Default constructor. 
Definition: StringRef.h:48
 
StringRef(const std::string &str)
Constructor from a std::string 
Definition: StringRef.h:87
 
constexpr const char * getData() const noexcept
Get a pointer to the string. 
Definition: StringRef.h:99
 
constexpr bool isEmpty() const noexcept
Check if the string is empty. 
Definition: StringRef.h:119
 
The namespace for gf classes. 
Definition: Action.h:34
 
constexpr const char * begin() const noexcept
Get an iterator to the beginning of the string. 
Definition: StringRef.h:130
 
constexpr const char * end() const noexcept
Get an iterator past the end of the string. 
Definition: StringRef.h:141
 
A constant reference to a string and its size. 
Definition: StringRef.h:41
 
constexpr std::size_t getSize() const noexcept
Get the size of the string. 
Definition: StringRef.h:108
 
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