SBuf.h
Go to the documentation of this file.
std::ostream & operator<<(std::ostream &os, const SBuf &S)
ostream output operator
Definition: SBuf.h:714
optimized set of C chars, with quick membership test and merge support
Definition: CharacterSet.h:18
Definition: MemBlob.h:46
size_type spaceSize() const
the number unused bytes at the end of the allocated blob
Definition: MemBlob.h:65
Definition: SBuf.h:49
Named SBuf::reserve() parameters. Defaults ask for and restrict nothing.
Definition: SBuf.h:697
Definition: SBuf.h:78
SBufReverseIterator(const SBuf &s, size_type sz)
Definition: SBuf.h:84
Definition: Stats.h:22
Definition: SBuf.h:616
int caseCmp(const SBuf &S, const size_type n) const
shorthand version for case-insensitive compare()
Definition: SBuf.h:283
int cmp(const char *S, const size_type n) const
Shorthand version for C-string compare().
Definition: SBuf.h:297
size_type reserve(const SBufReservationRequirements &requirements)
Definition: SBuf.cc:112
int cmp(const SBuf &S, const size_type n) const
shorthand version for compare()
Definition: SBuf.h:275
size_type findFirstNotOf(const CharacterSet &set, size_type startPos=0) const
Definition: SBuf.cc:746
SBuf & trim(const SBuf &toRemove, bool atBeginning=true, bool atEnd=true)
Definition: SBuf.cc:551
int compare(const SBuf &S, const SBufCaseSensitive isCaseSensitive) const
Definition: SBuf.h:270
size_type findFirstOf(const CharacterSet &set, size_type startPos=0) const
Definition: SBuf.cc:723
size_type findLastNotOf(const CharacterSet &set, size_type endPos=npos) const
Definition: SBuf.cc:790
int caseCmp(const char *S, const size_type n) const
Shorthand version for case-insensitive C-string compare().
Definition: SBuf.h:305
int compare(const char *s, const SBufCaseSensitive isCaseSensitive) const
Definition: SBuf.h:292
size_type findLastOf(const CharacterSet &set, size_type endPos=npos) const
Definition: SBuf.cc:769
bool startsWith(const SBuf &S, const SBufCaseSensitive isCaseSensitive=caseSensitive) const
Definition: SBuf.cc:442
std::ostream & print(std::ostream &os) const
print the SBuf contents to the supplied ostream
Definition: SBuf.cc:295
void rawAppendFinish(const char *start, size_type actualSize)
Definition: SBuf.cc:144
int compare(const SBuf &S, const SBufCaseSensitive isCaseSensitive, const size_type n) const
Definition: SBuf.cc:352
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
STL namespace.