Tools.h++ Class Reference

Table Of Contents
Static Public Member Functions
static unsigned
hash(const RWCString& str);
Returns the hash value of str as returned by str.hash(RWCString::exact).
static size_t
initialCapacity(size_t ic = 15);
Sets the minimum initial capacity of an RWCString, and returns the old value. The initial
setting is 15 bytes. Larger values will use more memory, but result in fewer resizes when
concatenating or reading strings. Smaller values will waste less memory, but result in
more resizes.
static size_t
maxWaste(size_t mw = 15);
Sets the maximum amount of unused space allowed in a string should it shrink, and
returns the old value. The initial setting is 15 bytes. If more than mw bytes are wasted,
then excess space will be reclaimed.
static size_t
resizeIncrement(size_t ri = 16);
Sets the resize increment when more memory is needed to grow a string. Returns the old
value. The initial setting is 16 bytes.
Related Global Operators
RWBoolean
operator==(const RWCString&, const char* );
RWBoolean
operator==(const char*, const RWCString&);
RWBoolean
operator==(const RWCString&, const RWCString&);
RWBoolean
operator!=(const RWCString&, const char* );
RWBoolean
operator!=(const char*, const RWCString&);
RWBoolean
operator!=(const RWCString&, const RWCString&);
Logical equality and inequality. Case sensitivity is exact. This function is incompatible
with const char* strings with embedded nulls. This function may be incompatible with
const char* MBCS strings.
RWBoolean
operator< (const RWCString&, const char* );
RWBoolean