++stats.live;
}
+SBuf::SBuf(const char *S)
+ : store_(GetStorePrototype()), off_(0), len_(0)
+{
+ append(S,npos);
+ ++stats.alloc;
+ ++stats.allocFromCString;
+ ++stats.live;
+}
+
SBuf::~SBuf()
{
debugs(24, 8, id << " destructed");
* \note bounds is 0 <= pos < length(); caller must pay attention to signedness
*/
explicit SBuf(const char *S, size_type n);
- explicit SBuf(const char *S) : SBuf(S, npos) {}
+ explicit SBuf(const char *S);
/** Constructor: import SquidString, copying contents.
*
SBuf::SBuf() {}
SBuf::SBuf(const SBuf &S) {}
SBuf::SBuf(const char *S, size_type n) {}
+SBuf::SBuf(const char *S) {}
SBuf::SBuf(const String &S) {}
SBuf::SBuf(const std::string &s) {}
SBuf::~SBuf() {}