stub_SBuf.cc
Go to the documentation of this file.
1/*
2 * Copyright (C) 1996-2023 The Squid Software Foundation and contributors
3 *
4 * Squid software is distributed under GPLv2+ license and includes
5 * contributions from numerous individuals and organizations.
6 * Please see the COPYING and CONTRIBUTORS files for details.
7 */
8
9#include "squid.h"
10
11#define STUB_API "SBuf.cc"
12#include "tests/STUB.h"
13
14#include "sbuf/SBuf.h"
15
17
21
24std::ostream& SBufStats::dump(std::ostream &os) const STUB_RETVAL(os)
26
27SBuf::SBuf() {}
28SBuf::SBuf(const SBuf &) {}
29SBuf::SBuf(const char *, size_type) {}
30SBuf::SBuf(const char *) {}
31SBuf::SBuf(const std::string &) {}
32SBuf::~SBuf() {}
33SBuf& SBuf::assign(const SBuf &) STUB_RETVAL(*this)
34SBuf& SBuf::assign(const char *, size_type) STUB_RETVAL(*this)
35void SBuf::clear() STUB
36SBuf& SBuf::append(const SBuf &) STUB_RETVAL(*this)
37SBuf& SBuf::append(const char *, size_type) STUB_RETVAL(*this)
38SBuf& SBuf::append(const char) STUB_RETVAL(*this)
39SBuf& SBuf::Printf(const char *, ...) STUB_RETVAL(*this)
40SBuf& SBuf::appendf(const char *, ...) STUB_RETVAL(*this)
41SBuf& SBuf::vappendf(const char *, va_list) STUB_RETVAL(*this)
42std::ostream& SBuf::print(std::ostream &os) const STUB_RETVAL(os)
43std::ostream& SBuf::dump(std::ostream &os) const STUB_RETVAL(os)
44void SBuf::setAt(size_type, char) STUB
45int SBuf::compare(const SBuf &, const SBufCaseSensitive, const size_type) const STUB_RETVAL(-1)
46int SBuf::compare(const char *, const SBufCaseSensitive, const size_type) const STUB_RETVAL(-1)
47bool SBuf::startsWith(const SBuf &, const SBufCaseSensitive) const STUB_RETVAL(false)
48bool SBuf::operator ==(const SBuf &) const STUB_RETVAL(false)
49bool SBuf::operator !=(const SBuf &) const STUB_RETVAL(false)
50SBuf SBuf::consume(size_type) STUB_RETVAL(*this)
51const SBufStats& SBuf::GetStats() STUB_RETVAL(SBuf::stats)
52SBuf::size_type SBuf::copy(char *, size_type) const STUB_RETVAL(0)
53const char* SBuf::rawContent() const STUB_RETVAL(nullptr)
54char *SBuf::rawAppendStart(size_type) STUB_RETVAL(nullptr)
55void SBuf::rawAppendFinish(const char *, size_type) STUB
56const char* SBuf::c_str() STUB_RETVAL("")
57void SBuf::reserveCapacity(size_type) STUB
58SBuf::size_type SBuf::reserve(const SBufReservationRequirements &) STUB_RETVAL(0)
59SBuf& SBuf::chop(size_type, size_type) STUB_RETVAL(*this)
60SBuf& SBuf::trim(const SBuf &, bool, bool) STUB_RETVAL(*this)
61SBuf SBuf::substr(size_type, size_type) const STUB_RETVAL(*this)
62SBuf::size_type SBuf::find(char, size_type) const STUB_RETVAL(SBuf::npos)
63SBuf::size_type SBuf::find(const SBuf &, size_type) const STUB_RETVAL(SBuf::npos)
64SBuf::size_type SBuf::rfind(char, size_type) const STUB_RETVAL(SBuf::npos)
65SBuf::size_type SBuf::rfind(const SBuf &, size_type) const STUB_RETVAL(SBuf::npos)
66SBuf::size_type SBuf::findFirstOf(const CharacterSet &, size_type) const STUB_RETVAL(SBuf::npos)
67SBuf::size_type SBuf::findLastOf(const CharacterSet &, size_type) const STUB_RETVAL(SBuf::npos)
68SBuf::size_type SBuf::findFirstNotOf(const CharacterSet &, size_type) const STUB_RETVAL(SBuf::npos)
69SBuf::size_type SBuf::findLastNotOf(const CharacterSet &, size_type) const STUB_RETVAL(SBuf::npos)
70void SBuf::toLower() STUB
71void SBuf::toUpper() STUB
72
static char const * trim(char const *s)
Definition: Expression.cc:674
SBufCaseSensitive
Definition: SBuf.h:36
#define STUB
macro to stub a void function.
Definition: STUB.h:33
#define STUB_RETVAL(x)
Definition: STUB.h:41
optimized set of C chars, with quick membership test and merge support
Definition: CharacterSet.h:18
Named SBuf::reserve() parameters. Defaults ask for and restrict nothing.
Definition: SBuf.h:697
std::ostream & dump(std::ostream &os) const
Dump statistics to an ostream.
Definition: Stats.cc:65
SBufStats & operator+=(const SBufStats &)
Definition: Stats.cc:34
static SizeRecorder SBufSizeAtDestructRecorder
collects statistics about SBuf sizes at SBuf destruction time
Definition: Stats.h:64
static SizeRecorder MemBlobSizeAtDestructRecorder
collects statistics about MemBlob capacity at MemBlob destruction time
Definition: Stats.h:66
void(*)(size_t) SizeRecorder
function for collecting detailed size-related statistics
Definition: Stats.h:62
Definition: SBuf.h:94
static const size_type npos
Definition: SBuf.h:99
~SBuf()
Definition: SBuf.cc:68
static SBufStats stats
class-wide statistics
Definition: SBuf.h:632
SBuf()
create an empty (zero-size) SBuf
Definition: SBuf.cc:28
MemBlob::size_type size_type
Definition: SBuf.h:96
SBuf & assign(const SBuf &S)
Definition: SBuf.cc:83
static const size_type maxSize
Maximum size of a SBuf. By design it MUST be < MAX(size_type)/2. Currently 256Mb.
Definition: SBuf.h:102
class Ping::pingStats_ stats
STL namespace.
InstanceIdDefinitions(SBuf, "SBuf")

 

Introduction

Documentation

Support

Miscellaneous

Web Site Translations

Mirrors