Tools.h++ Class Reference

Table Of Contents
Indexing Operators
wchar_t
operator[](size_t i);
wchar_t&
operator[](size_t i) const;
Returns the ith character of the substring. The first variant can be used as an lvalue, the
second cannot. The index i must be between zero and the length of the substring less one.
Bounds checking is performed: if the index is out of range, then an exception of type
RWBoundsErr will be thrown.
wchar_t
operator()(size_t i);
wchar_t&
operator()(size_t i) const;
Returns the ith character of the substring. The first variant can be used as an lvalue, the
second cannot. The index i must be between zero and the length of the substring less one.
Bounds checking is enabled by defining the pre-processor macro RWBOUNDS_CHECK
before including <rw/wstring.h>. In that case, if the index is out of range, then an
exception of type RWBoundsErr will be thrown.
Public Member Functions
RWBoolean
isNull() const;
Returns TRUE if this is a null substring.
size_t
length() const;
Returns the extent (length) of the RWWSubString.
RWBoolean
operator!() const;
Returns TRUE if this is a null substring.
size_t
start() const;
Returns the starting element of the RWWSubString.
void
toLower();
Changes all upper-case letters in self to lower-case. Uses the C library function
towlower().