Tools.h++ Manual

21-76 104011 Tandem Computers Incorporated
21
RWCString& append(const RWCString& cstr,
size_t N);
Append the first
N
characters 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 characters 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 RWCString& str)
const;
int collate(const char* 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.
int compareTo(const RWCString& str,
caseCompare = exact) const;
int compareTo(const char* str,
caseCompare = 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
RWCString::ignoreCase
.
RWBoolean contains(const RWCString& cs,
caseCompare = exact) const;
RWBoolean contains(const char* str,
caseCompare = exact) const;
Pattern matching. Returns
TRUE
if
str
occurs in self. Case sensitivity is
according to the
caseCompare
argument, and may be
RWCString::exact
or
RWCString::ignoreCase
.