03.01.2013 Views

Chapter 1

Chapter 1

Chapter 1

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Class name Description<br />

storage. The array is modifiable; for instance, you can append,<br />

insert, and delete elements, but the elements are not modifiable.<br />

Supports uniqueness, searching, and sorting. To search and sort,<br />

you just need to specify the type of comparison to use.<br />

CDesC8ArrayFlat As CDesCArrayFlat, but stores 8-bit descriptors.<br />

CDesCArraySeg As CDesCArrayFlat, but implemented using a segmented buffer<br />

for storage.<br />

CDesC8ArraySeg As CDesCArraySeg, but stores 8-bit descriptors.<br />

CPtrCArray A dynamic array of 16-bit pointer descriptors using a flat buffer for<br />

storage. This is similar to CDesCArrayFlat but it stores an array<br />

of TPtrC16s rather than the actual data, so it can be used in<br />

preference to avoid duplicating memory. Searching and sorting is<br />

done in a similar way to the CArrayFix classes, using a key<br />

specification (with zero for the offset). Does not own the array<br />

elements.<br />

CPtrC8Array As CPtrCArray, but stores 8-bit pointer descriptors.<br />

Notes:<br />

� Descriptor arrays can be used to hold any type of descriptor. They can be used in APIs<br />

that require an MDesCArray, for instance, text list boxes.<br />

� CDesCArray classes make a copy of each element added to the array, so afterwards<br />

the original descriptor can safely be deleted.<br />

� CPtrCArray classes hold pointers to the descriptors, rather than the descriptors<br />

themselves, so they use less memory than CDesCArray classes, but care must be<br />

taken since they can hold invalid data if the descriptor pointed to is deleted.<br />

� The build-independent descriptor arrays (CDesCArrayFlat, CDes-CArraySeg and<br />

CPtrCArray) are defined as the 16-bit variants, so, when storing binary data rather<br />

than text, you need to explicitly specify the 8-bit variant.<br />

8.1.4 Locale<br />

e32std.h includes many locale-related classes, covering time zones, formatting for time,<br />

date, and currency, measurement units for short distances (inches vs. cm) and long<br />

distances (miles vs. km). In a complete Symbian OS platform, these values are usually set<br />

through the control panel and are used to prepare times, dates, currency values, and so on<br />

for display.<br />

Locale settings depend on:<br />

� The ROM locale: for instance, a German machine will include German resource files,<br />

aif files and spell check dictionaries.<br />

� The home city : controls the current time zone, and in UIQ can be set through the<br />

control panel or the Time application. The home city default is ROM-locale dependent.<br />

� Miscellaneous settings: other locale settings are entered by the user through the<br />

control panel, with ROM-locale dependent defaults.<br />

Language downgrade path

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!