LibSWOC++ 1.5.14
Solid Wall of C++
Loading...
Searching...
No Matches
TextView.cc File Reference
#include "swoc/TextView.h"
#include <cctype>
#include <sstream>
Include dependency graph for TextView.cc:

Go to the source code of this file.

Namespaces

namespace  swoc
 For template deduction guides.
 
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)
 
double swoc::svtod (swoc::TextView text, swoc::TextView *parsed)
 
ostream & std::operator<< (ostream &os, const swoc::TextView &view)
 Write the contents of view to the stream os.
 

Detailed Description

Class for handling "views" of a buffer. 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.

Definition in file TextView.cc.