Chapter 3: using the string classes, Through 5 – HP Integrity NonStop J-Series User Manual
Page 46

Click on the banner to return to the user guide home page.
©Copyright 1996 Rogue Wave Software
Chapter 3: Using the String Classes
Manipulating strings is probably one of your most common tasks. Many developers say it is
also the most error-prone. The Tools.h++ classes
RWCString
and
RWWString
give you the
constructors, operators, and member functions you need to create, manipulate, and delete strings
easily.
The member functions of class
RWCString
read, compare, store, restore, concatenate, prepend,
and append RWCString objects and char*s. Its operators allow access to individual characters,
with or without bounds checking. And the class automatically takes care of memory
management: you never need to create or delete storage for the string's characters.
Class
RWWString
is similar to
RWCString
, except that RWWString works with wide
characters. Since the interfaces of the two classes are similar, they can be easily interchanged.
Details of these classes are described in the Class Reference. This section gives you some
general examples of how
RWCString
works, followed by discussions of selected features of the
string classes.