[Classes] [Prev] [Next] [Methods]

CStringRW

Methods Index

Heritage
Description
Usage
Public Methods
Constructor and Destructor Methods
Wide Character Support Methods

CStringRW


Heritage

Superclass: RWCString

Subclasses: CStringRWC


Description

CStringRW is a class that uses the Rogue Wave string access interface (derived from RWCString). However, the class is extended to allow you to create a string from an XVT resource ID, and to convert to and from XVT string structures.


Usage

Use this class as you would use RWCString. For more information
on RWCString, see the Tools.h++ manual.

Note: This class is not inherently collectable; for a collectable class,
use CStringRWC.


Public Methods

Constructor and Destructor Methods

CStringRW();
CStringRW(const char *theString);
CStringRW(const char *theString, size_t theSize);
CStringRW(RWSize_T theCapacity);
CStringRW(const RWCString& theString);
CStringRW(const RWCSubString& theString);
CStringRW(int theRID);
~CStringRW();

Wide Character Support Methods

int collate(const char* theString) const;
int collate(const CStringRW& theString) const;
int compareTo(const char *theString, 
caseCompare cmp = exact) const;
int compareTo(const CStringRW& theString,
caseCompare cmp = exact) const;
RWBoolean contains(const char* pat,
caseCompare cmp = exact) const;
RWBoolean contains(const CStringRW& pat,
caseCompare cmp = exact) const;
size_t first(char theChar) const; size_t first(const char *theString) const; size_t first(const CStringRW& theString) const; size_t index(const char *pat, size_t i=0,
caseCompare cmp = exact) const;
size_t index(const CStringRW& theString, size_t i=0,
caseCompare cmp = exact) const;
size_t index(const char *pat, size_t patlen, size_t i,
caseCompare cmp) const;
size_t index(const CStringRW& theString, size_t patlen,
size_t i, caseCompare cmp) const;
size_t index(const RWCRegexp& pat, size_t i=0) const; size_t index(const RWCRegexp& pat, size_t *ext,
size_t i=0) const;
size_t last(char theChar) const; size_t last(const char *theString) const; size_t last(const CStringRW& theString) const; size_t mbLength() const; // multibyte length, or
// RW_NPOS on error
void toLower(); // Change self to lower-case void toUpper(); // Change self to upper-case

Interface with XVT_WCHAR

int asWideChar(XVT_WCHAR& theWideChar, 
size_t theIndex = 0);
int asWideString(XVT_WCHAR *theWideCharString, 
size_t length);
static CStringRW fromWideChar(XVT_WCHAR theWideChar);
static CStringRW fromWideString(XVT_WCHAR *theWideCharString);
For the methods that are inherited from RWCString, see the
Tools.h manual.



[Classes] [Prev] [Next] [Methods]

support@xvt.com


Visit our online help desk for tech support

Copyright © 2009, Providence Software Solutions Inc. All rights reserved.