Bash++
Bash++ compiler internal documentation
Public Member Functions | Public Attributes | List of all members
XGetOpt::Helpers::TextView Struct Reference

A simple view over a text string. More...

#include <xgetopt.h>

Public Member Functions

constexpr size_t length () const
 
constexpr const char * c_str () const
 
constexpr std::string_view view () const
 
constexpr operator std::string_view () const
 
constexpr std::string_view get_next_word (size_t pos) const
 

Public Attributes

const char * data = nullptr
 
size_t len = 0
 

Detailed Description

A simple view over a text string.

Member Function Documentation

◆ c_str()

constexpr const char * XGetOpt::Helpers::TextView::c_str ( ) const
inlineconstexpr

◆ get_next_word()

constexpr std::string_view XGetOpt::Helpers::TextView::get_next_word ( size_t  pos) const
inlineconstexpr

◆ length()

constexpr size_t XGetOpt::Helpers::TextView::length ( ) const
inlineconstexpr

◆ operator std::string_view()

constexpr XGetOpt::Helpers::TextView::operator std::string_view ( ) const
inlineconstexpr

◆ view()

constexpr std::string_view XGetOpt::Helpers::TextView::view ( ) const
inlineconstexpr

Member Data Documentation

◆ data

const char* XGetOpt::Helpers::TextView::data = nullptr

◆ len

size_t XGetOpt::Helpers::TextView::len = 0

The documentation for this struct was generated from the following file: