rapidyaml  0.16.0
parseandemitYAML,anddoitfast
Substring: read/write string views

Modules

 substr adapters
 c4::to_substr() and c4::to_csubstr() are used in generic code like c4::format().
 
 substr left-comparison operators
 

Classes

struct  c4::basic_substring< C >::first_of_any_result
 
struct  c4::basic_substring< C >::split_proxy_impl::split_iterator_impl
 
struct  c4::basic_substring< C >
 a non-owning string-view, consisting of a character pointer and a length. More...
 

Typedefs

using c4::substr = basic_substring< char >
 a mutable string view More...
 
using c4::csubstr = basic_substring< const char >
 an immutable string view More...
 

Functions

template<class OStream , class C >
OStream & c4::operator<< (OStream &os, basic_substring< C > s)
 output the string to an ostream-like type More...
 

Detailed Description

Typedef Documentation

using c4::substr = typedef basic_substring<char>

a mutable string view

Definition at line 2355 of file substr.hpp.

using c4::csubstr = typedef basic_substring<const char>

an immutable string view

Definition at line 2356 of file substr.hpp.

Function Documentation

template<class OStream , class C >
OStream& c4::operator<< ( OStream &  os,
basic_substring< C >  s 
)
inline

output the string to an ostream-like type

Definition at line 2480 of file substr.hpp.

2481 {
2482  C4_SUPPRESS_WARNING_GCC_CLANG_WITH_PUSH("-Wsign-conversion")
2483  os.write(s.str, s.len);
2484  C4_SUPPRESS_WARNING_GCC_CLANG_POP
2485  return os;
2486 }
const char * str
Definition: node_type.cpp:70
void write(NodeRef *n, T const &v)
Definition: node.hpp:2114