Tools.h++ Class Reference

Table Of Contents
RWCString&
append(char c, size_t N);
Append N copies of the character c to self. Returns a reference to self.
RWCString&
append(const RWCString& cstr);
Append a copy of the string cstr to self. Returns a reference to self.
RWCString&
append(const RWCString& cstr, size_t N);
Append the first N bytes or the length of cstr (whichever is less) of cstr to self. Returns a
reference to self.
size_t
binaryStoreSize() const;
Returns the number of bytes necessary to store the object using the global function:
RWFile& operator<<(RWFile&, const RWCString&);
size_t
capacity() const;
Return the current capacity of self. This is the number of bytes the string can hold without
resizing.
size_t
capacity(size_t capac);
Hint to the implementation to change the capacity of self to capac. Returns the actual
capacity.
int
collate(const char* str) const;
int
collate(const RWCString& str) const;
Returns an int less then, greater than, or equal to zero, according to the result of calling the
standard C library function ::strcoll() on self and the argument str. This supports
locale-dependent collation. Provided only on platforms that provide ::strcoll(). This
function is incompatible with strings with embedded nulls.
int
compareTo(const char* str, caseCompare = RWCString::exact) const;
int
compareTo(const RWCString& str,
caseCompare = RWCString::exact) const;
Returns an int less than, greater than, or equal to zero, according to the result of calling the
standard C library function memcmp() on self and the argument str. Case sensitivity is
according to the caseCompare argument, and may be RWCString::exact or