rapidyaml  0.16.0
parseandemitYAML,anddoitfast
span.hpp File Reference
#include "c4/language.hpp"
#include "c4/substr.hpp"
#include <span>

Go to the source code of this file.

Classes

struct  c4::is_string< T >
 a traits class to mark a type as a string type, meaning c4::to_csubstr() can be used directly instead of c4::to_chars() when formatting the string. More...
 
struct  c4::is_writeable_string< T >
 a traits class to mark a type as a writeable string type, meaning c4::to_substr() can be used directly instead of c4::from_chars() when reading the string. More...
 
struct  c4::is_string< std::span< const char > >
 
struct  c4::is_string< const std::span< const char > >
 
struct  c4::is_string< std::span< char > >
 
struct  c4::is_string< const std::span< char > >
 
struct  c4::is_writeable_string< std::span< char > >
 
struct  c4::is_writeable_string< const std::span< char > >
 

Namespaces

 c4
 

Functions

c4::csubstr c4::to_csubstr (std::span< const char > s) noexcept
 create a csubstr from an existing std::span<const char> More...
 
c4::csubstr c4::to_csubstr (std::span< char > s) noexcept
 create a csubstr from an existing std::span<char> More...
 
c4::substr c4::to_substr (std::span< char > s) noexcept
 create a substr from an existing std::span<char> More...
 
bool c4::operator== (c4::csubstr ss, std::span< char > s)
 
bool c4::operator!= (c4::csubstr ss, std::span< char > s)
 
bool c4::operator>= (c4::csubstr ss, std::span< char > s)
 
bool c4::operator> (c4::csubstr ss, std::span< char > s)
 
bool c4::operator<= (c4::csubstr ss, std::span< char > s)
 
bool c4::operator< (c4::csubstr ss, std::span< char > s)
 
bool c4::operator== (std::span< char > s, c4::csubstr ss)
 
bool c4::operator!= (std::span< char > s, c4::csubstr ss)
 
bool c4::operator<= (std::span< char > s, c4::csubstr ss)
 
bool c4::operator< (std::span< char > s, c4::csubstr ss)
 
bool c4::operator>= (std::span< char > s, c4::csubstr ss)
 
bool c4::operator> (std::span< char > s, c4::csubstr ss)
 
bool c4::operator== (c4::csubstr ss, std::span< const char > s)
 
bool c4::operator!= (c4::csubstr ss, std::span< const char > s)
 
bool c4::operator>= (c4::csubstr ss, std::span< const char > s)
 
bool c4::operator> (c4::csubstr ss, std::span< const char > s)
 
bool c4::operator<= (c4::csubstr ss, std::span< const char > s)
 
bool c4::operator< (c4::csubstr ss, std::span< const char > s)
 
bool c4::operator== (std::span< const char > s, c4::csubstr ss)
 
bool c4::operator!= (std::span< const char > s, c4::csubstr ss)
 
bool c4::operator<= (std::span< const char > s, c4::csubstr ss)
 
bool c4::operator< (std::span< const char > s, c4::csubstr ss)
 
bool c4::operator>= (std::span< const char > s, c4::csubstr ss)
 
bool c4::operator> (std::span< const char > s, c4::csubstr ss)
 
size_t c4::to_chars (c4::substr buf, std::span< const char > s)
 copy a std::span<const char> to a writeable substr More...
 
size_t c4::to_chars (c4::substr buf, std::span< char > s)
 copy a std::span<char> to a writeable substr More...
 
bool c4::from_chars (c4::csubstr buf, std::span< char > *s)
 copy a csubstr to an existing std::span<char> More...