class RStringBase |
Base class for classes that represent a string in a string pool.
There are sub-classes for folded and non-folded strings. Use this class when you want to receive a string, but have no intention of comparing it with anything.
Public Member Functions | |
---|---|
RStringBase () | |
IMPORT_C void | Close () |
IMPORT_C RStringBase | Copy () |
IMPORT_C const TDesC8 & | DesC () |
IMPORT_C TInt | Index (const TStringTable &) |
IMPORT_C const TStringTable * | OriginalTableRef () |
RStringPool | Pool () |
operator RStringTokenBase () |
Protected Attributes | |
---|---|
RStringPool | iPool |
TUint32 | iVal |
IMPORT_C void | Close | ( | ) |
Closes a string.
You must close every string you open. In other words, every call to RStringBase::Copy() , RStringPool::OpenStringL() and RStringPool::OpenFStringL() must be matched by a close.
Strings created through RStringPool::String() or RStringPool::StringF() with an integer argument need not be closed (but closing is harmless).
Strings created through RStringPool::String() or RStringPool::StringF() with a StringToken or StringTokenF argument must not be closed, as they're just changing the external representation.
IMPORT_C RStringBase | Copy | ( | ) |
Copies a string.
Both the original and the copy string must be separately closed.
IMPORT_C const TDesC8 & | DesC | ( | ) | const |
Returns the content of the string Gets the content of the string.
IMPORT_C TInt | Index | ( | const TStringTable & | aTable | ) | const |
Gets the enumeration value corresponding to this string.
const TStringTable & aTable | String table to look in |
IMPORT_C const TStringTable * | OriginalTableRef | ( | ) | const |
Gets the table (if any) that first added the current string to the pool.
Note there multiple tables can contain the same string.
operator RStringTokenBase | ( | ) | const [inline] |
Returns a compact string equivalent to the string
Copyright ©2010 Nokia Corporation and/or its subsidiary(-ies).
All rights
reserved. Unless otherwise stated, these materials are provided under the terms of the Eclipse Public License
v1.0.