Rogue Wave banner
Previous fileTop of DocumentContentsIndex pageNext file
Essential Tools Module User's Guide
Rogue Wave web site:  Home Page  |  Main Documentation Page

4.2 RWCString and RWWString

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 SourcePro C++ API Reference Guide. The rest of this chapter gives you some general examples of how RWCString works, followed by discussions of selected features of the string classes.


RWCString and RWWString are aliases for either a std::string-based implementation or a Copy-on-Write-designed string class, depending on the selection chosen while building the Tools library. For more information, see Section 4.11.



Previous fileTop of DocumentContentsNo linkNext file

Copyright © Rogue Wave Software, Inc. All Rights Reserved.

The Rogue Wave name and logo, and SourcePro, are registered trademarks of Rogue Wave Software. All other trademarks are the property of their respective owners.
Provide feedback to Rogue Wave about its documentation.