|
|
|
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...iPtrInherited from TDesC16:
Alloc()constCreates a new 16-bit heap descriptor and initialises it with a copy of this desc...AllocL()constCreates a new 16-bit heap descriptor and initialises it with a copy of this desc...AllocLC()constCreates a new 16-bit heap descriptor, initialises it with a copy of this descrip...AtC(TInt)constCompare(const TDesC16 &)constCompares this descriptor's data with the specified descriptor's data.CompareC(const TDesC16 &)constCompares this descriptor's data with the specified descriptor's data using the s...CompareC(const TDesC16 &,TInt,const TCollationMethod *)constCompares this descriptor's data with the specified descriptor's data to the spec...CompareF(const TDesC16 &)constCompares this descriptor's folded data with the specified descriptor's folded da...DoSetLength(TInt)EIsNotPrefixIndicates that a supplied prefix cannot be extended to be equivalent to the text...EIsPrefixIndicates that a supplied prefix can be extended to be equivalent to the text at...EMightBePrefixIndicates that a supplied prefix does not seem to be a prefix, but it is possibl...Find(const TDesC16 &)constSearches for the first occurrence of the specified data sequence within this des...Find(const TUint16 *,TInt)constSearches for the first occurrence of the specified data sequence within this des...FindC(const TDesC16 &)constSearches for the first occurrence of the specified collated data sequence within...FindC(const TDesC16 &,TInt &,const TCollationMethod &,TInt)constSearches for the first occurrence of the specified collated data sequence within...FindC(const TUint16 *,TInt)constSearches for the first occurrence of the specified collated data sequence within...FindC(const TUint16 *,TInt,TInt)constSearches for the first occurrence of the specified collated data sequence within...FindF(const TDesC16 &)constSearches for the first occurrence of the specified folded data sequence within t...FindF(const TUint16 *,TInt)constSearches for the first occurrence of the specified folded data sequence within t...HasPrefixC(const TDesC16 &,TInt,const TCollationMethod *)constCompares aPossiblePrefix against the start of the descriptor, using a collated c...Left(TInt)constExtracts the leftmost part of the data.Length()constGets the length of the data.Locate(TChar)constSearches for the first occurrence of a character within this descriptor's data.LocateF(TChar)constSearches for the first occurrence of a folded character within this descriptor's...LocateReverse(TChar)constSearches for the first occurrence of a character within this descriptor's data, ...LocateReverseF(TChar)constSearches for the first occurrence of a folded character within this descriptor's...Match(const TDesC16 &)constSearches this descriptor's data for a match with the match pattern supplied in t...MatchC(const TDesC16 &)constSearches this descriptor's collated data for a match with the collated match pat...MatchC(const TDesC16 &,TInt,TInt,TInt,TInt,const TCollationMethod *)constSearches this descriptor's collated data for a match with the collated match pat...MatchC(const TDesC16 &,const TCollationMethod *,TInt,TInt,TInt,TInt)constSearches this descriptor's collated data for a match with the collated match pat...MatchF(const TDesC16 &)constSearches this descriptor's folded data for a match with the folded match pattern...Mid(TInt)constExtracts a portion of the data.Mid(TInt,TInt)constExtracts a portion of the data.Ptr()constGets a pointer to the data represented by the descriptor.Right(TInt)constExtracts the rightmost part of the data.Size()constGets the size of the data.TDesC16(TInt,TInt)TPrefixA value returned by a call to TDesC16::HasPrefixC(const TDesC16 &,TInt,const...Type()constoperator!=(const TDesC16 &)constDetermines whether this descriptor's data is not equal to the specified descript...operator>(const TDesC16 &)constDetermines whether this descriptor's data is greater than the specified descript...operator>=(const TDesC16 &)constDetermines whether this descriptor's data is greater than or equal to the specif...operator<(const TDesC16 &)constDetermines whether this descriptor's data is less than the specified descriptor'...operator<=(const TDesC16 &)constDetermines whether this descriptor's data is less than or equal to the specified...operator==(const TDesC16 &)constDetermines whether this descriptor's data is equal to the specified descriptor's...operator[](TInt)constGets a reference to a single data item within this descriptor's data.TBuf16A 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;