|
LibSWOC++ 1.5.14
Solid Wall of C++
|
#include <bitset>#include <cstdint>#include <iosfwd>#include <memory.h>#include <string>#include <string_view>#include <limits>#include <type_traits>#include "swoc/swoc_version.h"#include "swoc/string_view_util.h"

Go to the source code of this file.
Classes | |
| class | swoc::CharSet |
| class | swoc::TextView |
| struct | swoc::TextView::LessThan |
| Ordering functor, lexicographic comparison. More... | |
| struct | swoc::TextView::LessThanNoCase |
| Ordering functor, case ignoring lexicographic comparison. More... | |
| struct | swoc::TextView::CaselessEqual |
| Support for containers that need case insensitive comparisons between views. More... | |
| class | swoc::TransformView< X, V > |
| class | swoc::TransformView< void, V > |
Namespaces | |
| namespace | swoc |
| For template deduction guides. | |
| namespace | swoc::literals |
| namespace | std |
| STL namespace. | |
Functions | |
| intmax_t | swoc::svtoi (TextView src, TextView *out, int base) |
| uintmax_t | swoc::svtou (TextView src, TextView *out, int base) |
| template<int RADIX> | |
| uintmax_t | swoc::svto_radix (TextView &src) |
| template<int N> | |
| uintmax_t | swoc::svto_radix (TextView &&src) |
| double | swoc::svtod (swoc::TextView text, swoc::TextView *parsed) |
| template<typename X, typename V> | |
| TransformView< X, V > | swoc::transform_view_of (X const &xf, V const &src) |
| constexpr std::string_view | swoc::literals::operator""_sv (const char *s, size_t n) |
| constexpr swoc::TextView | swoc::literals::operator""_tv (const char *s, size_t n) |
| ostream & | std::operator<< (ostream &os, const swoc::TextView &view) |
| Write the contents of view to the stream os. | |
Variables | |
| const int8_t | swoc::svtoi_convert [256] |
Class for handling "views" of text. Views presume the memory for the buffer is managed elsewhere and allow efficient access to segments of the buffer without copies. Views are read only as the view doesn't own the memory. Along with generic buffer methods are specialized methods to support better string parsing, particularly token based parsing.
This class is based on std::string_view and is easily and cheaply converted to and from that class.
Definition in file TextView.h.