MC Protocol Serial C++ 0.2.3
MC protocol serial library for MCU-oriented environments
Loading...
Searching...
No Matches
std::string_view Class Reference

#include <string_view_compat.hpp>

Public Types

using value_type = char
 
using size_type = size_t
 
using pointer = const char *
 
using const_pointer = const char *
 
using const_reference = const char &
 
using const_iterator = const char *
 

Public Member Functions

constexpr string_view () noexcept=default
 
constexpr string_view (const char *text, size_type size) noexcept
 
 string_view (const char *text) noexcept
 
constexpr const_iterator begin () const noexcept
 
constexpr const_iterator end () const noexcept
 
constexpr const_pointer data () const noexcept
 
constexpr size_type size () const noexcept
 
constexpr bool empty () const noexcept
 
constexpr const_reference front () const noexcept
 
constexpr const_reference operator[] (size_type index) const noexcept
 
constexpr string_view substr (size_type pos, size_type count=npos) const noexcept
 

Static Public Attributes

static constexpr size_type npos = static_cast<size_type>(-1)
 

Detailed Description

Definition at line 15 of file string_view_compat.hpp.

Member Typedef Documentation

◆ const_iterator

◆ const_pointer

◆ const_reference

◆ pointer

◆ size_type

◆ value_type

Constructor & Destructor Documentation

◆ string_view() [1/3]

constexpr std::string_view::string_view ( )
constexprdefaultnoexcept

◆ string_view() [2/3]

constexpr std::string_view::string_view ( const char text,
size_type  size 
)
inlineconstexprnoexcept

Definition at line 28 of file string_view_compat.hpp.

◆ string_view() [3/3]

std::string_view::string_view ( const char text)
inlinenoexcept

Definition at line 30 of file string_view_compat.hpp.

Member Function Documentation

◆ begin()

constexpr const_iterator std::string_view::begin ( ) const
inlineconstexprnoexcept

Definition at line 33 of file string_view_compat.hpp.

◆ data()

constexpr const_pointer std::string_view::data ( ) const
inlineconstexprnoexcept

Definition at line 35 of file string_view_compat.hpp.

◆ empty()

constexpr bool std::string_view::empty ( ) const
inlineconstexprnoexcept

Definition at line 37 of file string_view_compat.hpp.

◆ end()

constexpr const_iterator std::string_view::end ( ) const
inlineconstexprnoexcept

Definition at line 34 of file string_view_compat.hpp.

◆ front()

constexpr const_reference std::string_view::front ( ) const
inlineconstexprnoexcept

Definition at line 38 of file string_view_compat.hpp.

◆ operator[]()

constexpr const_reference std::string_view::operator[] ( size_type  index) const
inlineconstexprnoexcept

Definition at line 39 of file string_view_compat.hpp.

◆ size()

constexpr size_type std::string_view::size ( ) const
inlineconstexprnoexcept

Definition at line 36 of file string_view_compat.hpp.

◆ substr()

constexpr string_view std::string_view::substr ( size_type  pos,
size_type  count = npos 
) const
inlineconstexprnoexcept

Definition at line 43 of file string_view_compat.hpp.

Member Data Documentation

◆ npos

constexpr size_type std::string_view::npos = static_cast<size_type>(-1)
staticconstexpr

Definition at line 24 of file string_view_compat.hpp.


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