stub_SBuf.cc
Go to the documentation of this file.
1 /*
2  * Copyright (C) 1996-2017 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 
16 InstanceIdDefinitions(SBuf, "SBuf");
17 
21 
22 std::ostream& SBufStats::dump(std::ostream &os) const STUB_RETVAL(os)
23 SBufStats& SBufStats::operator +=(const SBufStats&) STUB_RETVAL(*this)
24 
25 SBuf::SBuf() {}
26 SBuf::SBuf(const SBuf &) {}
27 SBuf::SBuf(const char *, size_type) {}
28 SBuf::SBuf(const char *) {}
29 SBuf::SBuf(const std::string &) {}
30 SBuf::~SBuf() {}
31 SBuf& SBuf::assign(const SBuf &) STUB_RETVAL(*this)
32 SBuf& SBuf::assign(const char *, size_type) STUB_RETVAL(*this)
33 void clear() STUB
34 SBuf& SBuf::append(const SBuf &) STUB_RETVAL(*this)
35 SBuf& SBuf::append(const char *, size_type) STUB_RETVAL(*this)
36 SBuf& Printf(const char *, ...);
37 SBuf& SBuf::appendf(const char *, ...) STUB_RETVAL(*this)
38 SBuf& SBuf::vappendf(const char *, va_list) STUB_RETVAL(*this)
39 std::ostream& SBuf::print(std::ostream &os) const STUB_RETVAL(os)
40 std::ostream& SBuf::dump(std::ostream &os) const STUB_RETVAL(os)
41 void SBuf::setAt(size_type, char) STUB
42 int SBuf::compare(const SBuf &, const SBufCaseSensitive, const size_type) const STUB_RETVAL(-1)
43 int SBuf::compare(const char *, const SBufCaseSensitive, const size_type) const STUB_RETVAL(-1)
44 bool SBuf::startsWith(const SBuf &, const SBufCaseSensitive) const STUB_RETVAL(false)
45 bool SBuf::operator ==(const SBuf &) const STUB_RETVAL(false)
46 bool SBuf::operator !=(const SBuf &) const STUB_RETVAL(false)
47 SBuf SBuf::consume(size_type) STUB_RETVAL(*this)
48 const SBufStats& SBuf::GetStats() STUB_RETVAL(SBuf::stats)
49 SBuf::size_type SBuf::copy(char *, size_type) const STUB_RETVAL(0)
50 const char* SBuf::rawContent() const STUB_RETVAL(NULL)
51 char *SBuf::rawAppendStart(size_type) STUB_RETVAL(NULL)
52 void SBuf::rawAppendFinish(const char *, size_type) STUB
53 const char* SBuf::c_str() STUB_RETVAL("")
54 void SBuf::reserveCapacity(size_type) STUB
55 SBuf::size_type SBuf::reserve(const SBufReservationRequirements &) STUB_RETVAL(0)
56 SBuf& SBuf::chop(size_type, size_type) STUB_RETVAL(*this)
57 SBuf& SBuf::trim(const SBuf &, bool, bool) STUB_RETVAL(*this)
58 SBuf SBuf::substr(size_type, size_type) const STUB_RETVAL(*this)
59 SBuf::size_type SBuf::find(char, size_type) const STUB_RETVAL(SBuf::npos)
60 SBuf::size_type SBuf::find(const SBuf &, size_type) const STUB_RETVAL(SBuf::npos)
61 SBuf::size_type SBuf::rfind(char, size_type) const STUB_RETVAL(SBuf::npos)
62 SBuf::size_type SBuf::rfind(const SBuf &, size_type) const STUB_RETVAL(SBuf::npos)
63 SBuf::size_type SBuf::findFirstOf(const CharacterSet &, size_type) const STUB_RETVAL(SBuf::npos)
64 SBuf::size_type SBuf::findFirstNotOf(const CharacterSet &, size_type) const STUB_RETVAL(SBuf::npos)
65 void SBuf::toLower() STUB
66 void SBuf::toUpper() STUB
67 
~SBuf()
Definition: SBuf.cc:79
std::ostream & dump(std::ostream &os) const
Dump statistics to an ostream.
Definition: Stats.cc:46
static char const * trim(char const *s)
Definition: Expression.cc:657
SBuf & assign(const SBuf &S)
Definition: SBuf.cc:94
class Ping::pingStats_ stats
static const size_type maxSize
Maximum size of a SBuf. By design it MUST be < MAX(size_type)/2. Currently 256Mb. ...
Definition: SBuf.h:96
Named SBuf::reserve() parameters. Defaults ask for and restrict nothing.
Definition: SBuf.h:687
#define STUB_RETVAL(x)
Definition: STUB.h:41
#define STUB
macro to stub a void function.
Definition: STUB.h:33
InstanceIdDefinitions(SBuf,"SBuf")
static const size_type npos
Definition: SBuf.h:93
static SBufStats stats
class-wide statistics
Definition: SBuf.h:623
MemBlob::size_type size_type
Definition: SBuf.h:90
#define NULL
Definition: types.h:166
SBuf()
create an empty (zero-size) SBuf
Definition: SBuf.cc:39
#define false
Definition: GnuRegex.c:233

 

Introduction

Documentation

Support

Miscellaneous

Web Site Translations

Mirrors