|
||
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.
Defined in RStringBase
:
Close()
Closes a string.Copy()
Copies a string.DesC()const
Gets the content of the string.Index(const TStringTable &)const
Gets the enumeration value corresponding to this string.OriginalTableRef()const
Gets the table (if any) that first added the current string to the pool.Pool()const
Gets the string pool.RStringBase()
Default constructor. iPool
iVal
operator RStringTokenBase()const
Returns a compact string equivalent to the string RStringPool
String pool handle.IMPORT_C void Close();
Closes a string.
You must close every string you open. In other words, every call to RStringBase::Copy()
, RStringPool::OpenStringL(const TDesC8 &)const
and RStringPool::OpenFStringL(const TDesC8 &)const
must be matched by a close.
Strings created through RStringPool::String(RStringToken)const
or RStringPool::StringF(RStringTokenF)const
with an integer argument need not be closed (but closing is harmless).
Strings created through RStringPool::String(RStringToken)const
or RStringPool::StringF(RStringTokenF)const
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;
Gets the content of the string.
|
inline operator RStringTokenBase() const;
Returns a compact string equivalent to the string
|
IMPORT_C TInt Index(const TStringTable &aTable) const;
Gets the enumeration value corresponding to this string.
|
|
|
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.
|
inline RStringPool Pool() const;
Gets the string pool.
|
protected: TUint32 iVal;