diff -r 80ef3a206772 -r 48780e181b38 Symbian3/SDK/Source/GUID-80F2DEC8-152F-4681-A9D0-8EB776131313.dita --- a/Symbian3/SDK/Source/GUID-80F2DEC8-152F-4681-A9D0-8EB776131313.dita Fri Jul 16 17:23:46 2010 +0100 +++ b/Symbian3/SDK/Source/GUID-80F2DEC8-152F-4681-A9D0-8EB776131313.dita Tue Jul 20 12:00:49 2010 +0100 @@ -14,7 +14,7 @@ functionality is called from a Symbian/S60 application, the need for conversions between Symbian descriptors and different string types provided by P.I.P.S. is needed. -
Symbian +<section id="GUID-A6479BB3-0176-4321-8D33-1465DCCAB049-GENID-1-10-1-13-1-1-5-1-3-1-7-1-10-1-3-1"> <title>Symbian descriptors and C strings compared

The main difference between Symbian descriptors and C strings is that the Symbian descriptors know how many characters are in a data array. A C string does not know its length, @@ -110,7 +110,7 @@

-
How +<section id="GUID-A6479BB3-0176-4321-8D33-1465DCCAB049-GENID-1-10-1-13-1-1-5-1-3-1-7-1-10-1-3-2"> <title>How to convert <codeph>TBuf16</codeph> to a <codeph>char</codeph> buffer

A TBuf16 buffer can be converted to a char buffer using the wcstombs API. The example below illustrates how @@ -135,7 +135,7 @@ return (1); }

-
How +<section id="GUID-A6479BB3-0176-4321-8D33-1465DCCAB049-GENID-1-10-1-13-1-1-5-1-3-1-7-1-10-1-3-3"> <title>How to convert <codeph>TBuf8</codeph> to <codeph>wchar_t</codeph>

A TBuf8 buffer can be converted to wchar_t using the mbstowcs API.

#include <e32base.h> @@ -159,7 +159,7 @@ return (1); }
-
How +<section id="GUID-A6479BB3-0176-4321-8D33-1465DCCAB049-GENID-1-10-1-13-1-1-5-1-3-1-7-1-10-1-3-4"> <title>How to convert <codeph>TText16</codeph> to <codeph>char</codeph>

The wcstombs API can be used to convert a TText16 buffer to a char buffer. This is one of the examples of converting @@ -184,7 +184,7 @@ return (1); }

-
How +<section id="GUID-A6479BB3-0176-4321-8D33-1465DCCAB049-GENID-1-10-1-13-1-1-5-1-3-1-7-1-10-1-3-5"> <title>How to convert a <codeph>char</codeph> array and a <codeph>wide char</codeph> array

To use both char and wide char pointers or array in the program, the user must convert buffers from a char to @@ -231,7 +231,7 @@ return (1); }

-
How +<section id="GUID-A6479BB3-0176-4321-8D33-1465DCCAB049-GENID-1-10-1-13-1-1-5-1-3-1-7-1-10-1-3-6"> <title>How to declare a <codeph>wide-char</codeph> string

To declare a wide-char string, prefix the string with 'L' [Capital L].

#include <wchar.h>