|
LibSWOC++ 1.5.14
Solid Wall of C++
|
For template deduction guides. More...
Namespaces | |
| namespace | ip |
| Internal IP address utilities. | |
| namespace | literals |
Classes | |
| class | ArenaWriter |
| class | BufferWriter |
| class | CharSet |
| class | DiscreteRange |
| class | DiscreteSpace |
| class | Errata |
| class | FixedArena |
| class | FixedBufferWriter |
| class | IntrusiveHashMap |
| class | IP4Addr |
| class | IP4Net |
| An IPv4 network. More... | |
| class | IP4Range |
| class | IP4Srv |
| An IPv4 address and host_order_port, modeled on an SRV type for DNS. More... | |
| class | IP6Addr |
| class | IP6Net |
| IPv6 network. More... | |
| class | IP6Range |
| Inclusive range of IPv6 addresses. More... | |
| class | IP6Srv |
| An IPv6 address and host_order_port, modeled on an SRV type for DNS. More... | |
| class | IPAddr |
| union | IPEndpoint |
| class | IPMask |
| class | IPNet |
| class | IPRange |
| class | IPRangeSet |
| class | IPRangeView |
| class | IPSpace |
| class | IPSrv |
| An IP address and host_order_port, modeled on an SRV type for DNS. More... | |
| class | Lexicon |
| class | LocalBufferWriter |
| class | MemArena |
| class | MemSpan |
| class | MemSpan< void > |
| class | MemSpan< void const > |
| class | Rv |
| class | Scalar |
| struct | Spec |
| class | string_view |
| STL class. More... | |
| class | TextView |
| class | TransformView |
| class | TransformView< void, V > |
| class | Vectray |
Typedefs | |
| template<typename T> | |
| using | unique_malloc = std::unique_ptr<T, detail::malloc_liberator> |
A variant of unique_ptr that handles memory from malloc. | |
Enumerations | |
| enum class | DiscreteRangeRelation : uint8_t { NONE , EQUAL , SUBSET , SUPERSET , OVERLAP , ADJACENT } |
| Relationship between two intervals. More... | |
| enum class | DiscreteRangeEdgeRelation : uint8_t { NONE , GAP , ADJ , OVLP } |
| Relationship between one edge of an interval and the "opposite" edge of another. More... | |
Functions | |
| BufferWriter & | bwformat (BufferWriter &w, bwf::Spec const &spec, std::string_view sv) |
| BufferWriter & | bwformat (BufferWriter &w, bwf::Spec const &spec, const void *ptr) |
| BufferWriter & | bwformat (BufferWriter &w, bwf::Spec const &spec, bwf::HexDump const &hex) |
| BufferWriter & | bwformat (BufferWriter &w, bwf::Spec const &spec, MemSpan< void const > const &span) |
| BufferWriter & | bwformat (BufferWriter &w, bwf::Spec const &spec, bwf::Errno const &e) |
| BufferWriter & | bwformat (BufferWriter &w, bwf::Spec const &spec, bwf::Date const &date) |
| BufferWriter & | bwformat (BufferWriter &w, bwf::Spec const &spec, bwf::Pattern const &pattern) |
| BufferWriter & | bwformat (BufferWriter &w, bwf::Spec const &spec, std::error_code const &ec) |
| BufferWriter & | bwformat (BufferWriter &w, bwf::Spec const &spec, bwf::UnHex const &obj) |
| BufferWriter & | bwformat (BufferWriter &w, Spec const &spec, in6_addr const &addr) |
| BufferWriter & | bwformat (BufferWriter &w, Spec const &spec, sockaddr const *addr) |
| BufferWriter & | bwformat (BufferWriter &w, Spec const &spec, IP4Addr const &addr) |
| BufferWriter & | bwformat (BufferWriter &w, Spec const &spec, IP6Addr const &addr) |
| BufferWriter & | bwformat (BufferWriter &w, Spec const &spec, IP4Srv const &srv) |
| BufferWriter & | bwformat (BufferWriter &w, Spec const &spec, IP6Srv const &srv) |
| BufferWriter & | bwformat (BufferWriter &w, Spec const &spec, IPSrv const &srv) |
| BufferWriter & | bwformat (BufferWriter &w, Spec const &spec, IPAddr const &addr) |
| BufferWriter & | bwformat (BufferWriter &w, Spec const &spec, IP4Range const &range) |
| BufferWriter & | bwformat (BufferWriter &w, Spec const &spec, IP6Range const &range) |
| BufferWriter & | bwformat (BufferWriter &w, Spec const &spec, IPRange const &range) |
| BufferWriter & | bwformat (BufferWriter &w, Spec const &spec, IPRangeView const &rv) |
| BufferWriter & | bwformat (BufferWriter &w, Spec const &spec, IP4Net const &net) |
| BufferWriter & | bwformat (BufferWriter &w, Spec const &spec, IP6Net const &net) |
| BufferWriter & | bwformat (BufferWriter &w, Spec const &spec, IPNet const &net) |
| BufferWriter & | bwformat (BufferWriter &w, Spec const &spec, IPMask const &mask) |
| BufferWriter & | bwformat (BufferWriter &bw, bwf::Spec const &spec, Errata::Severity level) |
| BufferWriter & | bwformat (BufferWriter &bw, bwf::Spec const &spec, Errata const &errata) |
| std::ostream & | operator<< (std::ostream &os, Errata const &err) |
| BufferWriter & | bwformat (BufferWriter &w, bwf::Spec const &spec, file::path const &p) |
| bool | operator== (IPAddr const &lhs, sockaddr const *rhs) |
| Equality. | |
| intmax_t | svtoi (TextView src, TextView *out, int base) |
| uintmax_t | svtou (TextView src, TextView *out, int base) |
| double | svtod (swoc::TextView text, swoc::TextView *parsed) |
| BufferWriter & | bwformat (BufferWriter &w, bwf::Spec const &spec, MemSpan< void > const &span) |
| template<typename T> | |
| BufferWriter & | bwformat (BufferWriter &w, bwf::Spec const &spec, MemSpan< T > const &span) |
| template<size_t N> | |
| BufferWriter & | bwformat (BufferWriter &w, bwf::Spec const &spec, const char(&a)[N]) |
| BufferWriter & | bwformat (BufferWriter &w, bwf::Spec const &spec, std::nullptr_t) |
| BufferWriter & | bwformat (BufferWriter &w, bwf::Spec const &spec, const char *v) |
| BufferWriter & | bwformat (BufferWriter &w, bwf::Spec const &spec, std::string const &s) |
| BufferWriter & | bwformat (BufferWriter &w, bwf::Spec const &spec, TextView tv) |
| template<typename X, typename V> | |
| BufferWriter & | bwformat (BufferWriter &w, bwf::Spec const &, TransformView< X, V > &&view) |
| template<typename F> | |
| auto | bwformat (BufferWriter &w, bwf::Spec const &spec, F &&f) -> typename std::enable_if< std::is_floating_point_v< typename std::remove_reference_t< F > >, BufferWriter & >::type |
| template<typename I> | |
| auto | bwformat (BufferWriter &w, bwf::Spec const &spec, I &&i) -> typename std::enable_if< std::is_unsigned< typename std::remove_reference< I >::type >::value &&std::is_integral< typename std::remove_reference< I >::type >::value, BufferWriter & >::type |
| BufferWriter & | bwformat (BufferWriter &w, bwf::Spec const &, char c) |
| BufferWriter & | bwformat (BufferWriter &w, bwf::Spec const &spec, bool f) |
| template<typename... Args> | |
| std::string & | bwprint_v (std::string &s, TextView fmt, std::tuple< Args... > const &args) |
| template<typename... Args> | |
| std::string & | bwprint (std::string &s, TextView fmt, Args &&...args) |
| template<typename... Args> | |
| std::string & | bwappend (std::string &s, TextView fmt, Args &&...args) |
| template<intmax_t N, typename C, typename T> | |
| BufferWriter & | bwformat (BufferWriter &w, bwf::Spec const &spec, Scalar< N, C, T > const &x) |
| template<typename V> | |
| BufferWriter & | operator<< (BufferWriter &w, V &&v) |
| BufferWriter & | bwformat (BufferWriter &w, bwf::Spec const &spec, BufferWriter const &ww) |
| template<typename... Args> | |
| BufferWriter & | bwformat (BufferWriter &w, bwf::Spec const &, bwf::SubText< Args... > const &subtext) |
| BufferWriter & | bwformat (BufferWriter &w, bwf::Spec const &spec, IPEndpoint const &addr) |
| template<typename T> | |
| BufferWriter & | bwformat (BufferWriter &w, bwf::Spec const &spec, std::atomic< T > const &v) |
| Format atomics by stripping the atomic and formatting the underlying type. | |
| template<size_t N> | |
| BufferWriter & | bwformat (BufferWriter &w, bwf::Spec const &, std::bitset< N > const &bits) |
| template<typename Rep, typename Period> | |
| BufferWriter & | bwformat (BufferWriter &w, bwf::Spec const &spec, std::chrono::duration< Rep, Period > const &d) |
| template<typename Clock, typename Duration> | |
| BufferWriter & | bwformat (BufferWriter &w, bwf::Spec const &spec, std::chrono::time_point< Clock, Duration > const &t) |
| BufferWriter & | bwformat (BufferWriter &w, bwf::Spec const &spec, std::exception const &e) |
| template<typename T> | |
| bool | operator== (DiscreteRange< T > const &lhs, DiscreteRange< T > const &rhs) |
| template<typename R> | |
| Rv< typename std::remove_reference< R >::type > | MakeRv (R &&r, Errata &&erratum) |
| BufferWriter & | bwformat (BufferWriter &w, bwf::Spec const &spec, Errata::Annotation const &) |
| bool | operator== (IP4Addr const &lhs, IP4Addr const &rhs) |
| Equality. | |
| bool | operator!= (IP4Addr const &lhs, IP4Addr const &rhs) |
| bool | operator< (IP4Addr const &lhs, IP4Addr const &rhs) |
| bool | operator<= (IP4Addr const &lhs, IP4Addr const &rhs) |
| bool | operator> (IP4Addr const &lhs, IP4Addr const &rhs) |
| bool | operator>= (IP4Addr const &lhs, IP4Addr const &rhs) |
| bool | operator== (IP6Addr const &lhs, IP6Addr const &rhs) |
| bool | operator!= (IP6Addr const &lhs, IP6Addr const &rhs) |
| bool | operator< (IP6Addr const &lhs, IP6Addr const &rhs) |
| bool | operator> (IP6Addr const &lhs, IP6Addr const &rhs) |
| bool | operator<= (IP6Addr const &lhs, IP6Addr const &rhs) |
| bool | operator>= (IP6Addr const &lhs, IP6Addr const &rhs) |
| bool | operator== (IPMask const &lhs, IPMask const &rhs) |
| bool | operator!= (IPMask const &lhs, IPMask const &rhs) |
| bool | operator< (IPMask const &lhs, IPMask const &rhs) |
| IP4Addr | operator& (IP4Addr const &addr, IPMask const &mask) |
| IP4Addr | operator| (IP4Addr const &addr, IPMask const &mask) |
| IP6Addr | operator& (IP6Addr const &addr, IPMask const &mask) |
| IP6Addr | operator| (IP6Addr const &addr, IPMask const &mask) |
| IPAddr | operator& (IPAddr const &addr, IPMask const &mask) |
| IPAddr | operator| (IPAddr const &addr, IPMask const &mask) |
| bool | operator== (sockaddr const *lhs, IPAddr const &rhs) |
| Equality. | |
| bool | operator!= (IPAddr const &lhs, sockaddr const *rhs) |
| Inequality. | |
| bool | operator!= (sockaddr const *lhs, IPAddr const &rhs) |
| Inequality. | |
| bool | operator== (IPAddr const &lhs, IP4Addr const &rhs) |
| bool | operator!= (IPAddr const &lhs, IP4Addr const &rhs) |
| bool | operator== (IP4Addr const &lhs, IPAddr const &rhs) |
| bool | operator!= (IP4Addr const &lhs, IPAddr const &rhs) |
| bool | operator== (IPAddr const &lhs, IP6Addr const &rhs) |
| bool | operator!= (IPAddr const &lhs, IP6Addr const &rhs) |
| bool | operator== (IP6Addr const &lhs, IPAddr const &rhs) |
| bool | operator!= (IP6Addr const &lhs, IPAddr const &rhs) |
| bool | operator== (IPNet const &lhs, IP4Net const &rhs) |
| bool | operator== (IP4Net const &lhs, IPNet const &rhs) |
| bool | operator== (IPNet const &lhs, IP6Net const &rhs) |
| bool | operator== (IP6Net const &lhs, IPNet const &rhs) |
| bool | operator== (IPSrv const &lhs, IP4Srv const &rhs) |
| bool | operator== (IP4Srv const &lhs, IPSrv const &rhs) |
| bool | operator!= (IPSrv const &lhs, IP4Srv const &rhs) |
| bool | operator!= (IP4Srv const &lhs, IPSrv const &rhs) |
| bool | operator< (IPSrv const &lhs, IP4Srv const &rhs) |
| bool | operator< (IP4Srv const &lhs, IPSrv const &rhs) |
| bool | operator<= (IPSrv const &lhs, IP4Srv const &rhs) |
| bool | operator<= (IP4Srv const &lhs, IPSrv const &rhs) |
| bool | operator> (IPSrv const &lhs, IP4Srv const &rhs) |
| bool | operator> (IP4Srv const &lhs, IPSrv const &rhs) |
| bool | operator>= (IPSrv const &lhs, IP4Srv const &rhs) |
| bool | operator>= (IP4Srv const &lhs, IPSrv const &rhs) |
| bool | operator== (IPSrv const &lhs, IP6Srv const &rhs) |
| bool | operator== (IP6Srv const &lhs, IPSrv const &rhs) |
| bool | operator!= (IPSrv const &lhs, IP6Srv const &rhs) |
| bool | operator!= (IP6Srv const &lhs, IPSrv const &rhs) |
| bool | operator< (IPSrv const &lhs, IP6Srv const &rhs) |
| bool | operator< (IP6Srv const &lhs, IPSrv const &rhs) |
| bool | operator<= (IPSrv const &lhs, IP6Srv const &rhs) |
| bool | operator<= (IP6Srv const &lhs, IPSrv const &rhs) |
| bool | operator> (IPSrv const &lhs, IP6Srv const &rhs) |
| bool | operator> (IP6Srv const &lhs, IPSrv const &rhs) |
| bool | operator>= (IPSrv const &lhs, IP6Srv const &rhs) |
| bool | operator>= (IP6Srv const &lhs, IPSrv const &rhs) |
| bool | operator== (IPSrv const &lhs, IP4Addr const &rhs) |
| bool | operator== (IP4Addr const &lhs, IPSrv const &rhs) |
| bool | operator!= (IPSrv const &lhs, IP4Addr const &rhs) |
| bool | operator!= (IP4Addr const &lhs, IPSrv const &rhs) |
| bool | operator== (IPSrv const &lhs, IP6Addr const &rhs) |
| bool | operator== (IP6Addr const &lhs, IPSrv const &rhs) |
| bool | operator!= (IPSrv const &lhs, IP6Addr const &rhs) |
| bool | operator!= (IP6Addr const &lhs, IPSrv const &rhs) |
| template<typename E> | |
| size_t | Lexicon_Hash (E e) |
| template<typename E> | |
| BufferWriter & | bwformat (BufferWriter &w, bwf::Spec const &spec, Lexicon< E > const &lex) |
| template<typename T> | |
| int | memcmp (MemSpan< T > const &lhs, MemSpan< T > const &rhs) |
| template<typename T> | |
| T * | memcpy (MemSpan< T > &dst, MemSpan< T > const &src) |
| template<typename T> | |
| T * | memcpy (MemSpan< T > &dst, T *src) |
| template<typename T> | |
| T * | memcpy (T *dst, MemSpan< T > &src) |
| char * | memcpy (MemSpan< char > &span, std::string_view view) |
| void * | memcpy (MemSpan< void > &span, std::string_view view) |
| template<typename T> | |
| MemSpan< T > const & | memset (MemSpan< T > const &dst, T const &value) |
| template<typename T, size_t N> | |
| MemSpan (std::array< T, N > &) -> MemSpan< T > | |
| Deduction guides. | |
| template<typename T, size_t N> | |
| MemSpan (std::array< T, N > const &) -> MemSpan< T const > | |
| template<size_t N> | |
| MemSpan (char(&)[N]) -> MemSpan< char > | |
| template<size_t N> | |
| MemSpan (char const (&)[N]) -> MemSpan< char const > | |
| template<typename T> | |
| MemSpan (std::vector< T > &) -> MemSpan< T > | |
| template<typename T> | |
| MemSpan (std::vector< T > const &) -> MemSpan< T const > | |
| MemSpan (std::string_view const &) -> MemSpan< char const > | |
| MemSpan (std::string &) -> MemSpan< char > | |
| MemSpan (std::string const &) -> MemSpan< char const > | |
| template<typename C> | |
| Scalar_INTERNAL constexpr detail::scalar_unit_round_up_t< C > | round_up (C n) |
| template<intmax_t N, typename C, typename T> | |
| constexpr detail::scalar_round_up_t< N, C, T > | round_up (Scalar< N, C, T > v) |
| template<typename C> | |
| constexpr detail::scalar_unit_round_down_t< C > | round_down (C n) |
| template<intmax_t N, typename C, typename T> | |
| constexpr detail::scalar_round_down_t< N, C, T > | round_down (Scalar< N, C, T > v) |
| template<intmax_t N, typename C1, intmax_t S, typename I, typename T> | |
| bool | operator< (Scalar< N, C1, T > const &lhs, Scalar< S, I, T > const &rhs) |
| template<intmax_t N, typename C1, intmax_t S, typename I, typename T> | |
| bool | operator== (Scalar< N, C1, T > const &lhs, Scalar< S, I, T > const &rhs) |
| template<intmax_t N, typename C1, intmax_t S, typename I, typename T> | |
| bool | operator<= (Scalar< N, C1, T > const &lhs, Scalar< S, I, T > const &rhs) |
| template<intmax_t N, typename C, intmax_t S, typename I, typename T> | |
| bool | operator> (Scalar< N, C, T > const &lhs, Scalar< S, I, T > const &rhs) |
| template<intmax_t N, typename C, intmax_t S, typename I, typename T> | |
| bool | operator>= (Scalar< N, C, T > const &lhs, Scalar< S, I, T > const &rhs) |
| template<intmax_t N, typename C, intmax_t S, typename I, typename T> | |
| auto | operator+ (Scalar< N, C, T > lhs, Scalar< S, I, T > const &rhs) -> typename std::common_type< Scalar< N, C, T >, Scalar< S, I, T > >::type |
| template<intmax_t N, typename C, typename T> | |
| Scalar< N, C, T > | operator+ (Scalar< N, C, T > const &lhs, Scalar< N, C, T > const &rhs) |
| template<intmax_t N, typename C, intmax_t S, typename I, typename T> | |
| auto | operator- (Scalar< N, C, T > lhs, Scalar< S, I, T > const &rhs) -> typename std::common_type< Scalar< N, C, T >, Scalar< S, I, T > >::type |
| template<intmax_t N, typename C, typename T> | |
| Scalar< N, C, T > | operator- (Scalar< N, C, T > const &lhs, Scalar< N, C, T > const &rhs) |
| template<intmax_t N, typename C, typename T> | |
| Scalar< N, C, T > | operator* (Scalar< N, C, T > const &lhs, C n) |
| template<intmax_t N, typename C, typename T> | |
| Scalar< N, C, T > | operator* (C n, Scalar< N, C, T > const &rhs) |
| template<intmax_t N, typename C, typename T> | |
| Scalar< N, C, T > | operator* (Scalar< N, C, T > const &lhs, int n) |
| template<intmax_t N, typename C, typename T> | |
| Scalar< N, C, T > | operator* (int n, Scalar< N, C, T > const &rhs) |
| template<intmax_t N> | |
| Scalar< N, int > | operator* (Scalar< N, int > const &lhs, int n) |
| template<intmax_t N> | |
| Scalar< N, int > | operator* (int n, Scalar< N, int > const &rhs) |
| template<intmax_t N, typename C, intmax_t S, typename I, typename T> | |
| auto | operator/ (Scalar< N, C, T > lhs, Scalar< S, I, T > rhs) -> typename std::common_type< C, I >::type |
| template<intmax_t N, typename C, typename T, typename I> | |
| Scalar< N, C, T > | operator/ (Scalar< N, C, T > lhs, I n) |
| template<intmax_t N, typename C> | |
| C | round_up (C value) |
| template<intmax_t N, typename C> | |
| C | round_down (C value) |
| bool | operator== (IPAddr const &lhs, IPEndpoint const &rhs) |
| bool | operator== (IPEndpoint const &lhs, IPAddr const &rhs) |
| Equality. | |
| bool | operator!= (IPAddr const &lhs, IPEndpoint const &rhs) |
| Inequality. | |
| bool | operator!= (IPEndpoint const &lhs, IPAddr const &rhs) |
| Inequality. | |
| template<int RADIX> | |
| uintmax_t | svto_radix (TextView &src) |
| template<int N> | |
| uintmax_t | svto_radix (TextView &&src) |
| template<typename X, typename V> | |
| TransformView< X, V > | transform_view_of (X const &xf, V const &src) |
| template<typename T> | |
| bool | operator!= (DiscreteRange< T > const &lhs, DiscreteRange< T > const &rhs) |
| template<typename T> | |
| bool | operator^ (DiscreteRange< T > const &lhs, DiscreteRange< T > const &rhs) |
| template<typename T> | |
| bool | operator< (DiscreteRange< T > const &lhs, DiscreteRange< T > const &rhs) |
| template<typename T> | |
| bool | operator<= (DiscreteRange< T > const &lhs, DiscreteRange< T > const &rhs) |
| template<typename T> | |
| bool | operator> (DiscreteRange< T > const &lhs, DiscreteRange< T > const &rhs) |
| template<typename T> | |
| bool | operator>= (DiscreteRange< T > const &lhs, DiscreteRange< T > const &rhs) |
| BufferWriter & | bwformat (BufferWriter &w, bwf::Spec const &spec, sockaddr_in const *addr) |
| BufferWriter & | bwformat (BufferWriter &w, bwf::Spec const &spec, sockaddr_in6 const *addr) |
Variables | |
| std::array< swoc::TextView, 3 > | Severity_Names |
| Default set of severity names. | |
| const int8_t | svtoi_convert [256] |
For template deduction guides.
| using swoc::unique_malloc = std::unique_ptr<T, detail::malloc_liberator> |
|
strong |
Relationship between one edge of an interval and the "opposite" edge of another.
| Enumerator | |
|---|---|
| NONE | Edge is on the opposite side of the relating edge. |
| GAP | There is a gap between the edges. |
| ADJ | The edges are adjacent. |
| OVLP | Edge is inside interval. |
Definition at line 115 of file DiscreteRange.h.
|
strong |
Relationship between two intervals.
Definition at line 105 of file DiscreteRange.h.
| std::string & swoc::bwappend | ( | std::string & | s, |
| TextView | fmt, | ||
| Args &&... | args ) |
Generate formatted output to a std::string s using format fmt with arguments args.
| Args | Format argument types. |
| s | Output string. |
| fmt | Format string. |
| args | Arguments for format string. |
The output is appended to s without resizing. If s does not have sufficient space for the output it is resized to be sufficient and the output formatted again. The result is that s will contain any previous text and the formatted output.
Definition at line 1203 of file bwf_base.h.
| BufferWriter & swoc::bwformat | ( | BufferWriter & | bw, |
| bwf::Spec const & | spec, | ||
| Errata const & | errata ) |
| BufferWriter & swoc::bwformat | ( | BufferWriter & | bw, |
| bwf::Spec const & | spec, | ||
| Errata::Severity | level ) |
| BufferWriter & swoc::bwformat | ( | BufferWriter & | w, |
| bwf::Spec const & | , | ||
| bwf::SubText< Args... > const & | subtext ) |
Output a nested formatted string.
| Args | Argument pack for subtext. |
| w | Output |
| subtext | Format string and arguments. |
This supports a nested format string and arguments inside another format string. This is most often useful if one of the formats is fixed or pre-compiled.
|
inline |
Definition at line 1120 of file bwf_base.h.
| BufferWriter & swoc::bwformat | ( | BufferWriter & | w, |
| bwf::Spec const & | , | ||
| std::bitset< N > const & | bits ) |
| BufferWriter & swoc::bwformat | ( | BufferWriter & | w, |
| bwf::Spec const & | , | ||
| TransformView< X, V > && | view ) |
Definition at line 1070 of file bwf_base.h.
|
inline |
Definition at line 1125 of file bwf_base.h.
|
inline |
Format a buffer writer.
| w | Output buffer, |
| spec | Format specifier. |
| ww | Input buffer |
This treats ww as a view and prints it as text.
Definition at line 1334 of file bwf_base.h.
| BufferWriter & swoc::bwformat | ( | BufferWriter & | w, |
| bwf::Spec const & | spec, | ||
| bwf::Date const & | date ) |
Format a timestamp wrapped in a Date.
| w | Output. |
| spec | Format specifier. |
| date | Timestamp. |
Definition at line 855 of file bw_format.cc.
| BufferWriter & swoc::bwformat | ( | BufferWriter & | w, |
| bwf::Spec const & | spec, | ||
| bwf::Errno const & | e ) |
Format an integer as an errno value.
| w | Output. |
| spec | Format specifier. |
| e | Error code. |
Definition at line 826 of file bw_format.cc.
| BufferWriter & swoc::bwformat | ( | BufferWriter & | w, |
| bwf::Spec const & | spec, | ||
| bwf::HexDump const & | hex ) |
Format a hex dump.
| w | The output. |
| spec | Format specifier. |
| hex | Hex dump wrapper. |
Definition at line 695 of file bw_format.cc.
| BufferWriter & swoc::bwformat | ( | BufferWriter & | w, |
| bwf::Spec const & | spec, | ||
| bwf::Pattern const & | pattern ) |
Repeatedly output a pattern.
| w | Output. |
| spec | Format specifier. |
| pattern | Output patterning. |
The pattern contains the count and text to output.
Definition at line 891 of file bw_format.cc.
| BufferWriter & swoc::bwformat | ( | BufferWriter & | w, |
| bwf::Spec const & | spec, | ||
| bwf::UnHex const & | obj ) |
Definition at line 926 of file bw_format.cc.
|
inline |
Definition at line 1046 of file bwf_base.h.
| BufferWriter & swoc::bwformat | ( | BufferWriter & | w, |
| bwf::Spec const & | spec, | ||
| const char(&) | a[N] ) |
Definition at line 1034 of file bwf_base.h.
| BufferWriter & swoc::bwformat | ( | BufferWriter & | w, |
| bwf::Spec const & | spec, | ||
| const void * | ptr ) |
Format non-specialized pointers.
| w | Output |
| spec | Format specifier. |
| ptr | Pointer to format. |
Non-specialized pointers are formatted simply as pointers, rather than the pointed to data.
Definition at line 670 of file bw_format.cc.
| auto swoc::bwformat | ( | BufferWriter & | w, |
| bwf::Spec const & | spec, | ||
| F && | f ) -> typename std::enable_if<std::is_floating_point_v<typename std::remove_reference_t<F>>, BufferWriter &>::type |
Definition at line 1078 of file bwf_base.h.
| BufferWriter & swoc::bwformat | ( | BufferWriter & | w, |
| bwf::Spec const & | spec, | ||
| file::path const & | p ) |
Definition at line 478 of file swoc_file.cc.
| auto swoc::bwformat | ( | BufferWriter & | w, |
| bwf::Spec const & | spec, | ||
| I && | i ) -> typename std::enable_if<std::is_unsigned<typename std::remove_reference<I>::type>::value && std::is_integral<typename std::remove_reference<I>::type>::value, BufferWriter &>::type |
Definition at line 1097 of file bwf_base.h.
|
inline |
| BufferWriter & swoc::bwformat | ( | BufferWriter & | w, |
| bwf::Spec const & | spec, | ||
| Lexicon< E > const & | lex ) |
| BufferWriter & swoc::bwformat | ( | BufferWriter & | w, |
| bwf::Spec const & | spec, | ||
| MemSpan< T > const & | span ) |
Definition at line 1022 of file bwf_base.h.
|
inline |
Format a generic (void) memory span.
| w | Output |
| spec | Format specifier. |
| span | Span to format. |
The format is by default "N:ptr" where N is the size and ptr is a hex formatter pointer. If the format is "x" or "X" the span content is dumped as contiguous hex.
Definition at line 1016 of file bwf_base.h.
| BufferWriter & swoc::bwformat | ( | BufferWriter & | w, |
| bwf::Spec const & | spec, | ||
| MemSpan< void const > const & | span ) |
Format a generic (void) memory span.
| w | Output |
| spec | Format specifier. |
| span | Span to format. |
The format is by default "N:ptr" where N is the size and ptr is a hex formatter pointer. If the format is "x" or "X" the span content is dumped as contiguous hex.
Definition at line 716 of file bw_format.cc.
| BufferWriter & swoc::bwformat | ( | BufferWriter & | w, |
| bwf::Spec const & | spec, | ||
| Scalar< N, C, T > const & | x ) |
Definition at line 1261 of file bwf_base.h.
|
inline |
|
inline |
| BufferWriter & swoc::bwformat | ( | BufferWriter & | w, |
| bwf::Spec const & | spec, | ||
| std::atomic< T > const & | v ) |
| BufferWriter & swoc::bwformat | ( | BufferWriter & | w, |
| bwf::Spec const & | spec, | ||
| std::chrono::duration< Rep, Period > const & | d ) |
| BufferWriter & swoc::bwformat | ( | BufferWriter & | w, |
| bwf::Spec const & | spec, | ||
| std::chrono::time_point< Clock, Duration > const & | t ) |
| BufferWriter & swoc::bwformat | ( | BufferWriter & | w, |
| bwf::Spec const & | spec, | ||
| std::error_code const & | ec ) |
Definition at line 904 of file bw_format.cc.
|
inline |
|
inline |
Definition at line 1040 of file bwf_base.h.
|
inline |
Definition at line 1059 of file bwf_base.h.
| BufferWriter & swoc::bwformat | ( | BufferWriter & | w, |
| bwf::Spec const & | spec, | ||
| std::string_view | sv ) |
Output a string_view.
| w | Output |
| spec | Format specifier |
| sv | View to format. |
Definition at line 649 of file bw_format.cc.
|
inline |
Definition at line 1064 of file bwf_base.h.
| BufferWriter & swoc::bwformat | ( | BufferWriter & | w, |
| Spec const & | spec, | ||
| in6_addr const & | addr ) |
Definition at line 17 of file bw_ip_format.cc.
| BufferWriter & swoc::bwformat | ( | BufferWriter & | w, |
| Spec const & | spec, | ||
| IP4Addr const & | addr ) |
Definition at line 176 of file bw_ip_format.cc.
| BufferWriter & swoc::bwformat | ( | BufferWriter & | w, |
| Spec const & | spec, | ||
| IP4Net const & | net ) |
Definition at line 361 of file bw_ip_format.cc.
| BufferWriter & swoc::bwformat | ( | BufferWriter & | w, |
| Spec const & | spec, | ||
| IP4Range const & | range ) |
Definition at line 299 of file bw_ip_format.cc.
| BufferWriter & swoc::bwformat | ( | BufferWriter & | w, |
| Spec const & | spec, | ||
| IP4Srv const & | srv ) |
Definition at line 214 of file bw_ip_format.cc.
| BufferWriter & swoc::bwformat | ( | BufferWriter & | w, |
| Spec const & | spec, | ||
| IP6Addr const & | addr ) |
Definition at line 209 of file bw_ip_format.cc.
| BufferWriter & swoc::bwformat | ( | BufferWriter & | w, |
| Spec const & | spec, | ||
| IP6Net const & | net ) |
Definition at line 369 of file bw_ip_format.cc.
| BufferWriter & swoc::bwformat | ( | BufferWriter & | w, |
| Spec const & | spec, | ||
| IP6Range const & | range ) |
Definition at line 324 of file bw_ip_format.cc.
| BufferWriter & swoc::bwformat | ( | BufferWriter & | w, |
| Spec const & | spec, | ||
| IP6Srv const & | srv ) |
Definition at line 223 of file bw_ip_format.cc.
| BufferWriter & swoc::bwformat | ( | BufferWriter & | w, |
| Spec const & | spec, | ||
| IPAddr const & | addr ) |
Definition at line 246 of file bw_ip_format.cc.
| BufferWriter & swoc::bwformat | ( | BufferWriter & | w, |
| Spec const & | spec, | ||
| IPMask const & | mask ) |
Definition at line 387 of file bw_ip_format.cc.
| BufferWriter & swoc::bwformat | ( | BufferWriter & | w, |
| Spec const & | spec, | ||
| IPNet const & | net ) |
Definition at line 377 of file bw_ip_format.cc.
| BufferWriter & swoc::bwformat | ( | BufferWriter & | w, |
| Spec const & | spec, | ||
| IPRange const & | range ) |
Definition at line 349 of file bw_ip_format.cc.
| BufferWriter & swoc::bwformat | ( | BufferWriter & | w, |
| Spec const & | spec, | ||
| IPRangeView const & | rv ) |
Definition at line 356 of file bw_ip_format.cc.
| BufferWriter & swoc::bwformat | ( | BufferWriter & | w, |
| Spec const & | spec, | ||
| IPSrv const & | srv ) |
Definition at line 236 of file bw_ip_format.cc.
| BufferWriter & swoc::bwformat | ( | BufferWriter & | w, |
| Spec const & | spec, | ||
| sockaddr const * | addr ) |
Definition at line 84 of file bw_ip_format.cc.
| std::string & swoc::bwprint | ( | std::string & | s, |
| TextView | fmt, | ||
| Args &&... | args ) |
Generate formatted output to a std::string s using format fmt with arguments args.
| Args | Format argument types. |
| s | Output string. |
| fmt | Format string. |
| args | Arguments for format string. |
The output is generated to s without resizing, completely replacing any existing text. If s does not have sufficient space for the output it is resized to be sufficient and the output formatted again. The result is that s will contain exactly the formatted output.
Definition at line 1185 of file bwf_base.h.
| std::string & swoc::bwprint_v | ( | std::string & | s, |
| TextView | fmt, | ||
| std::tuple< Args... > const & | args ) |
Generate formatted output to a std::string s using format fmt with arguments args.
| Args | Format argument types. |
| s | Output string. |
| fmt | Format string. |
| args | A tuple of the format arguments. |
The output is generated to s as is. If s does not have sufficient space for the output it is resized to be sufficient and the output formatted again. The result is that s will containing exactly the formatted output.
Definition at line 1156 of file bwf_base.h.
| size_t swoc::Lexicon_Hash | ( | E | e | ) |
|
inline |
| T * swoc::memcpy | ( | MemSpan< T > & | dst, |
| T * | src ) |
|
inline |
| T * swoc::memcpy | ( | T * | dst, |
| MemSpan< T > & | src ) |
|
inline |
|
inline |
|
inline |
|
inline |
| BufferWriter & swoc::operator<< | ( | BufferWriter & | w, |
| V && | v ) |
Definition at line 1271 of file bwf_base.h.
| std::ostream & swoc::operator<< | ( | std::ostream & | os, |
| Errata const & | err ) |
| bool swoc::operator== | ( | DiscreteRange< T > const & | lhs, |
| DiscreteRange< T > const & | rhs ) |
Definition at line 622 of file DiscreteRange.h.
|
inline |
| bool swoc::operator== | ( | IPAddr const & | lhs, |
| sockaddr const * | sa ) |
Equality.
Definition at line 650 of file swoc_ip.cc.
|
inline |
|
inline |
|
constexpr |
| C swoc::round_down | ( | C | value | ) |
Explicitly round value to a multiple of N.
| N | [explicit] Rounding unit. |
| C | [deduced] Base type of value. |
| value | Value to round. |
|
constexpr |
|
constexpr |
| C swoc::round_up | ( | C | value | ) |
Explicitly round value up to a multiple of N.
| N | [explicit] Rounding unit. |
| C | [deduced] Base type of value. |
| value | Value to round. |
|
constexpr |
| uintmax_t swoc::svto_radix | ( | TextView && | src | ) |
Convenience overload.
Definition at line 1081 of file TextView.h.
| uintmax_t swoc::svto_radix | ( | TextView & | src | ) |
Convert the text in src to an unsigned numeric value.
| N | The radix (must be 1..36) |
| src | The source text. Updated during parsing. |
This is a specialized function useful only where conversion performance is critical. It is used inside svtoi and svtou for the common cases of 8, 10, and 16, therefore normally this isn't much more performant in those cases than just svtoi. Because of this only positive values are parsed. If determining the radix from the text or signed value parsing is needed, used svtoi.
src is updated in place to indicate what characters were parsed by removing them from the view Parsing stops on the first invalid digit, so any leading non-digit characters (e.g. whitespace) must already be removed. For overflow, all valid digits are consumed and the maximum value returned.
Definition at line 1059 of file TextView.h.
Parse text as a floating point number.
| text | The input text. |
| parsed | Parsed text [out] |
If parsed is not nullptr then the span of characters parsed is put there. This can be used to check if the parse was scuccesful - on a failed parse, it will be empty.
Definition at line 154 of file TextView.cc.
Convert the text in TextView src to a signed numeric value.
If parsed is non-null then the part of the string actually parsed is placed there. base sets the conversion base. If not set base 10 is used with two special cases:
If base is explicitly set then any leading radix indicator is not supported.
Definition at line 45 of file TextView.cc.
Convert the text in TextView src to an unsigned numeric value.
If parsed is non-null then the part of the string actually parsed is placed there. base sets the conversion base. If not set base 10 is used with two special cases:
If base is explicitly set then any leading radix indicator is not supported.
Definition at line 81 of file TextView.cc.
| TransformView< X, V > swoc::transform_view_of | ( | X const & | xf, |
| V const & | src ) |
Create a transformed view of a source.
| X | The transform functor type. |
| V | The source type. |
| xf | The transform. |
| src | The view source. |
TransformView that applies xf to src. Definition at line 1933 of file TextView.h.
| std::array<swoc::TextView, 3> swoc::Severity_Names |
|
extern |
Internal table of digit values for characters. This is -1 for characters that are not valid digits.