2 * Copyright (C) 1996-2022 The Squid Software Foundation and contributors
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.
11 #define STUB_API "SBuf.cc"
12 #include "tests/STUB.h"
14 #include "sbuf/SBuf.h"
16 InstanceIdDefinitions(SBuf
, "SBuf");
18 SBufStats
SBuf::stats
;
19 const SBuf::size_type
SBuf::npos
;
20 const SBuf::size_type
SBuf::maxSize
;
22 SBufStats::SizeRecorder
SBufStats::SBufSizeAtDestructRecorder
= nullptr;
23 SBufStats::SizeRecorder
SBufStats::MemBlobSizeAtDestructRecorder
= nullptr;
24 std::ostream
& SBufStats::dump(std::ostream
&os
) const STUB_RETVAL(os
)
25 SBufStats
& SBufStats::operator +=(const SBufStats
&) STUB_RETVAL(*this)
28 SBuf::SBuf(const SBuf
&) {}
29 SBuf::SBuf(const char *, size_type
) {}
30 SBuf::SBuf(const char *) {}
31 SBuf::SBuf(const std::string
&) {}
33 SBuf
& SBuf::assign(const SBuf
&) STUB_RETVAL(*this)
34 SBuf
& SBuf::assign(const char *, size_type
) STUB_RETVAL(*this)
35 void SBuf::clear() STUB
36 SBuf
& SBuf::append(const SBuf
&) STUB_RETVAL(*this)
37 SBuf
& SBuf::append(const char *, size_type
) STUB_RETVAL(*this)
38 SBuf
& SBuf::append(const char) STUB_RETVAL(*this)
39 SBuf
& SBuf::Printf(const char *, ...) STUB_RETVAL(*this)
40 SBuf
& SBuf::appendf(const char *, ...) STUB_RETVAL(*this)
41 SBuf
& SBuf::vappendf(const char *, va_list) STUB_RETVAL(*this)
42 std::ostream
& SBuf::print(std::ostream
&os
) const STUB_RETVAL(os
)
43 std::ostream
& SBuf::dump(std::ostream
&os
) const STUB_RETVAL(os
)
44 void SBuf::setAt(size_type
, char) STUB
45 int SBuf::compare(const SBuf
&, const SBufCaseSensitive
, const size_type
) const STUB_RETVAL(-1)
46 int SBuf::compare(const char *, const SBufCaseSensitive
, const size_type
) const STUB_RETVAL(-1)
47 bool SBuf::startsWith(const SBuf
&, const SBufCaseSensitive
) const STUB_RETVAL(false)
48 bool SBuf::operator ==(const SBuf
&) const STUB_RETVAL(false)
49 bool SBuf::operator !=(const SBuf
&) const STUB_RETVAL(false)
50 SBuf
SBuf::consume(size_type
) STUB_RETVAL(*this)
51 const SBufStats
& SBuf::GetStats() STUB_RETVAL(SBuf::stats
)
52 SBuf::size_type
SBuf::copy(char *, size_type
) const STUB_RETVAL(0)
53 const char* SBuf::rawContent() const STUB_RETVAL(nullptr)
54 char *SBuf::rawAppendStart(size_type
) STUB_RETVAL(nullptr)
55 void SBuf::rawAppendFinish(const char *, size_type
) STUB
56 const char* SBuf::c_str() STUB_RETVAL("")
57 void SBuf::reserveCapacity(size_type
) STUB
58 SBuf::size_type
SBuf::reserve(const SBufReservationRequirements
&) STUB_RETVAL(0)
59 SBuf
& SBuf::chop(size_type
, size_type
) STUB_RETVAL(*this)
60 SBuf
& SBuf::trim(const SBuf
&, bool, bool) STUB_RETVAL(*this)
61 SBuf
SBuf::substr(size_type
, size_type
) const STUB_RETVAL(*this)
62 SBuf::size_type
SBuf::find(char, size_type
) const STUB_RETVAL(SBuf::npos
)
63 SBuf::size_type
SBuf::find(const SBuf
&, size_type
) const STUB_RETVAL(SBuf::npos
)
64 SBuf::size_type
SBuf::rfind(char, size_type
) const STUB_RETVAL(SBuf::npos
)
65 SBuf::size_type
SBuf::rfind(const SBuf
&, size_type
) const STUB_RETVAL(SBuf::npos
)
66 SBuf::size_type
SBuf::findFirstOf(const CharacterSet
&, size_type
) const STUB_RETVAL(SBuf::npos
)
67 SBuf::size_type
SBuf::findLastOf(const CharacterSet
&, size_type
) const STUB_RETVAL(SBuf::npos
)
68 SBuf::size_type
SBuf::findFirstNotOf(const CharacterSet
&, size_type
) const STUB_RETVAL(SBuf::npos
)
69 SBuf::size_type
SBuf::findLastNotOf(const CharacterSet
&, size_type
) const STUB_RETVAL(SBuf::npos
)
70 void SBuf::toLower() STUB
71 void SBuf::toUpper() STUB