|
rapidyaml 0.14.0
parse and emit YAML, and do it fast
|
read+write string views More...
#include <string.h>#include <ctype.h>#include <type_traits>#include "c4/export.hpp"#include "c4/language.hpp"#include "c4/error.hpp"#include "c4/substr_fwd.hpp"Go to the source code of this file.
Namespaces | |
| namespace | c4 |
| (Undefined by default) Use shorter error message from checks/asserts: do not show the check condition in the error message. | |
Macros | |
| #define | _c4append(first, last) |
Typedefs | |
| using | c4::substr = basic_substring<char> |
| a mutable string view | |
| using | c4::csubstr = basic_substring<const char> |
| an immutable string view | |
Functions | |
| template<size_t N> | |
| substr | c4::to_substr (char(&s)[N]) noexcept |
| template<size_t N> | |
| csubstr | c4::to_csubstr (const char(&s)[N]) noexcept |
| template<class U> | |
| auto | c4::to_substr (U s) noexcept -> typename std::enable_if< is_compatible_char_ptr< U, char >::value, substr >::type |
| Create a substring from a C-string (char*-like pointer). | |
| template<class U> | |
| auto | c4::to_csubstr (U s) noexcept -> typename std::enable_if< is_compatible_char_ptr< U, const char >::value, csubstr >::type |
| Create a substring from a const char*-like pointer. | |
| substr | c4::to_substr (substr s) noexcept |
| csubstr | c4::to_csubstr (substr s) noexcept |
| csubstr | c4::to_csubstr (csubstr s) noexcept |
| template<typename C> | |
| bool | c4::operator== (const char c, basic_substring< C > const that) noexcept |
| template<typename C> | |
| bool | c4::operator!= (const char c, basic_substring< C > const that) noexcept |
| template<typename C> | |
| bool | c4::operator< (const char c, basic_substring< C > const that) noexcept |
| template<typename C> | |
| bool | c4::operator> (const char c, basic_substring< C > const that) noexcept |
| template<typename C> | |
| bool | c4::operator<= (const char c, basic_substring< C > const that) noexcept |
| template<typename C> | |
| bool | c4::operator>= (const char c, basic_substring< C > const that) noexcept |
| template<typename C, size_t N> | |
| bool | c4::operator== (const char(&arr)[N], basic_substring< C > const that) noexcept |
| template<typename C, size_t N> | |
| bool | c4::operator!= (const char(&arr)[N], basic_substring< C > const that) noexcept |
| template<typename C, size_t N> | |
| bool | c4::operator< (const char(&arr)[N], basic_substring< C > const that) noexcept |
| template<typename C, size_t N> | |
| bool | c4::operator> (const char(&arr)[N], basic_substring< C > const that) noexcept |
| template<typename C, size_t N> | |
| bool | c4::operator<= (const char(&arr)[N], basic_substring< C > const that) noexcept |
| template<typename C, size_t N> | |
| bool | c4::operator>= (const char(&arr)[N], basic_substring< C > const that) noexcept |
| template<typename U, typename C> | |
| auto | c4::operator== (U c_str, basic_substring< C > const that) noexcept -> typename std::enable_if< is_compatible_char_ptr< U, C >::value, bool >::type |
| template<typename U, typename C> | |
| auto | c4::operator!= (U c_str, basic_substring< C > const that) noexcept -> typename std::enable_if< is_compatible_char_ptr< U, C >::value, bool >::type |
| template<typename U, typename C> | |
| auto | c4::operator< (U c_str, basic_substring< C > const that) noexcept -> typename std::enable_if< is_compatible_char_ptr< U, C >::value, bool >::type |
| template<typename U, typename C> | |
| auto | c4::operator> (U c_str, basic_substring< C > const that) noexcept -> typename std::enable_if< is_compatible_char_ptr< U, C >::value, bool >::type |
| template<typename U, typename C> | |
| auto | c4::operator<= (U c_str, basic_substring< C > const that) noexcept -> typename std::enable_if< is_compatible_char_ptr< U, C >::value, bool >::type |
| template<typename U, typename C> | |
| auto | c4::operator>= (U c_str, basic_substring< C > const that) noexcept -> typename std::enable_if< is_compatible_char_ptr< U, C >::value, bool >::type |
| template<class OStream, class C> | |
| OStream & | c4::operator<< (OStream &os, basic_substring< C > s) |
| output the string to an ostream-like type | |
read+write string views
Definition in file substr.hpp.
| #define _c4append | ( | first, | |
| last ) |