|
||
class TPtrC16 : public TDesC16;
16-bit non-modifiable pointer descriptor.
This is a descriptor class intended for instantiation and encapsulates a pointer to the 16-bit data that it represents. The data can live in ROM or RAM and this location is separate from the descriptor object itself.
The data is intended to be accessed, but not changed, through this descriptor. The base class provides the functions through which data is accessed.
TDesC16
-
Abstract base class for 16-bit descriptors.
TPtrC16
-
16-bit non-modifiable pointer descriptor.
Defined in TPtrC16
:
Set(const TDesC16 &)
Sets the 16-bit non-modifiable pointer descriptor from the specified descriptor.Set(const TPtrC16 &)
Set(const TUint16 *,TInt)
Sets the 16-bit non-modifiable pointer descriptor to point to the specified loca...TPtrC16()
Constructs an empty 16-bit non-modifiable pointer descriptor.TPtrC16(const TDesC16 &)
Constructs the 16-bit non-modifiable pointer descriptor from any existing descri...TPtrC16(const TUint16 *)
Constructs the 16-bit non-modifiable pointer descriptor to point to a zero termi...TPtrC16(const TUint16 *,TInt)
Constructs the 16-bit non-modifiable pointer descriptor to point to the specifie...iPtr
Inherited from TDesC16
:
Alloc()const
Creates a new 16-bit heap descriptor and initialises it with a copy of this desc...AllocL()const
Creates a new 16-bit heap descriptor and initialises it with a copy of this desc...AllocLC()const
Creates a new 16-bit heap descriptor, initialises it with a copy of this descrip...AtC(TInt)const
Compare(const TDesC16 &)const
Compares this descriptor's data with the specified descriptor's data.CompareC(const TDesC16 &)const
Compares this descriptor's data with the specified descriptor's data using the s...CompareC(const TDesC16 &,TInt,const TCollationMethod *)const
Compares this descriptor's data with the specified descriptor's data to the spec...CompareF(const TDesC16 &)const
Compares this descriptor's folded data with the specified descriptor's folded da...DoSetLength(TInt)
EIsNotPrefix
Indicates that a supplied prefix cannot be extended to be equivalent to the text...EIsPrefix
Indicates that a supplied prefix can be extended to be equivalent to the text at...EMightBePrefix
Indicates that a supplied prefix does not seem to be a prefix, but it is possibl...Find(const TDesC16 &)const
Searches for the first occurrence of the specified data sequence within this des...Find(const TUint16 *,TInt)const
Searches for the first occurrence of the specified data sequence within this des...FindC(const TDesC16 &)const
Searches for the first occurrence of the specified collated data sequence within...FindC(const TDesC16 &,TInt &,const TCollationMethod &,TInt)const
Searches for the first occurrence of the specified collated data sequence within...FindC(const TUint16 *,TInt)const
Searches for the first occurrence of the specified collated data sequence within...FindC(const TUint16 *,TInt,TInt)const
Searches for the first occurrence of the specified collated data sequence within...FindF(const TDesC16 &)const
Searches for the first occurrence of the specified folded data sequence within t...FindF(const TUint16 *,TInt)const
Searches for the first occurrence of the specified folded data sequence within t...HasPrefixC(const TDesC16 &,TInt,const TCollationMethod *)const
Compares aPossiblePrefix against the start of the descriptor, using a collated c...Left(TInt)const
Extracts the leftmost part of the data.Length()const
Gets the length of the data.Locate(TChar)const
Searches for the first occurrence of a character within this descriptor's data.LocateF(TChar)const
Searches for the first occurrence of a folded character within this descriptor's...LocateReverse(TChar)const
Searches for the first occurrence of a character within this descriptor's data, ...LocateReverseF(TChar)const
Searches for the first occurrence of a folded character within this descriptor's...Match(const TDesC16 &)const
Searches this descriptor's data for a match with the match pattern supplied in t...MatchC(const TDesC16 &)const
Searches this descriptor's collated data for a match with the collated match pat...MatchC(const TDesC16 &,TInt,TInt,TInt,TInt,const TCollationMethod *)const
Searches this descriptor's collated data for a match with the collated match pat...MatchC(const TDesC16 &,const TCollationMethod *,TInt,TInt,TInt,TInt)const
Searches this descriptor's collated data for a match with the collated match pat...MatchF(const TDesC16 &)const
Searches this descriptor's folded data for a match with the folded match pattern...Mid(TInt)const
Extracts a portion of the data.Mid(TInt,TInt)const
Extracts a portion of the data.Ptr()const
Gets a pointer to the data represented by the descriptor.Right(TInt)const
Extracts the rightmost part of the data.Size()const
Gets the size of the data.TDesC16(TInt,TInt)
TPrefix
A value returned by a call to TDesC16::HasPrefixC(const TDesC16 &,TInt,const...Type()const
operator!=(const TDesC16 &)const
Determines whether this descriptor's data is not equal to the specified descript...operator>(const TDesC16 &)const
Determines whether this descriptor's data is greater than the specified descript...operator>=(const TDesC16 &)const
Determines whether this descriptor's data is greater than or equal to the specif...operator<(const TDesC16 &)const
Determines whether this descriptor's data is less than the specified descriptor'...operator<=(const TDesC16 &)const
Determines whether this descriptor's data is less than or equal to the specified...operator==(const TDesC16 &)const
Determines whether this descriptor's data is equal to the specified descriptor's...operator[](TInt)const
Gets a reference to a single data item within this descriptor's data.TBuf16
A descriptor class which provides a buffer of fixed length for containing, acces...IMPORT_C TPtrC16();
Constructs an empty 16-bit non-modifiable pointer descriptor.
It represents no data and its length is zero.
The non-modifiable pointer descriptor can, subsequently, be set to represent data.
TPtrC16::Set(const TUint16 *,TInt)
Sets the 16-bit non-modifiable pointer descriptor to point to the specified loca...IMPORT_C TPtrC16(const TDesC16 &aDes);
Constructs the 16-bit non-modifiable pointer descriptor from any existing descriptor.
It is set to point to the same data and is given the same length as the source descriptor.
|
IMPORT_C TPtrC16(const TUint16 *aString);
Constructs the 16-bit non-modifiable pointer descriptor to point to a zero terminated string, whether in RAM or ROM.
The length of the descriptor is set to the length of the zero terminated string, excluding the zero terminator.
|
IMPORT_C TPtrC16(const TUint16 *aBuf, TInt aLength);
Constructs the 16-bit non-modifiable pointer descriptor to point to the specified location in memory, whether in RAM or ROM.
The length of the descriptor is set to the specified length.
|
|
inline void Set(const TUint16 *aBuf, TInt aLength);
Sets the 16-bit non-modifiable pointer descriptor to point to the specified location in memory, whether in RAM or ROM.
The length of the descriptor is set to the specified length.
|
|
inline void Set(const TDesC16 &aDes);
Sets the 16-bit non-modifiable pointer descriptor from the specified descriptor.
It is set to point to the same data and is given the same length.
|
protected: const TUint16 * iPtr;