Tools.h++ Class Reference

Table Of Contents
sensitive (exact) or case-insensitive (ignoreCase) semantics.
enum RWCString::scopeType { one, all }
Used to specify whether regular expression replace replaces the first one substring
matched by the regular expression or replaces all substrings matched by the regular
expression.
Public Constructors
RWCString();
Creates a string of length zero (the null string).
RWCString(const char* cs);
Conversion from the null-terminated character string cs. The created string will copy the
data pointed to by cs, up to the first terminating null. This function is incompatible with cs
strings with embedded nulls. This function may be incompatible with cs MBCS strings.
RWCString(const char* cs, size_t N);
Constructs a string from the character string cs. The created string will copy the data
pointed to by cs. Exactly N bytes are copied, including any embedded nulls. Hence, the
buffer pointed to by cs must be at least N bytes long.
RWCString(RWSize_T ic);
Creates a string of length zero (the null string). The string's capacity (that is, the size it can
grow to without resizing) is given by the parameter ic. We recommend creating an
RWSize_T value from a numerical constant to pass into this constructor. While
RWSize_T knows how to convert size_t's to itself, conforming compilers will chose the
conversion to char instead.
RWCString(const RWCString& str);
Copy constructor. The created string will copy str's data.
RWCString(const RWCSubString& ss);
Conversion from sub-string. The created string will copy the substring represented by ss.
RWCString(char c);
Constructs a string containing the single character c.
RWCString(char c, size_t N);
Constructs a string containing the character c repeated N times.
Type Conversion
operator
const char*() const;