utilitylibraries/libutils/src/descriptor16tochar.cpp
branchRCL_3
changeset 57 2efc27d87e1c
parent 56 acd3cd4aaceb
equal deleted inserted replaced
56:acd3cd4aaceb 57:2efc27d87e1c
    26    *
    26    *
    27    * @param aSrc is the descriptor to be converted , aDes is the 
    27    * @param aSrc is the descriptor to be converted , aDes is the 
    28    * reference to the character sream where the result of conversion 
    28    * reference to the character sream where the result of conversion 
    29    * is stored , n_size specifies the conversion size of the string 
    29    * is stored , n_size specifies the conversion size of the string 
    30    * @return Status code (0 is ESuccess, -1 is EInsufficientMemory, 
    30    * @return Status code (0 is ESuccess, -1 is EInsufficientMemory, 
    31    * -2 is EInvalidSize , -4 is EInvalidPointer, -8 is EInvalidWCSSequence)
    31    * -2 is EInvalidSize , -4 is EInvalidPointer)
    32    */
    32    */
    33 EXPORT_C int Tbuf16ToChar(TDes16& aSrc, char* aDes, int& n_size)
    33 EXPORT_C int Tbuf16ToChar(TDes16& aSrc, char* aDes, int& n_size)
    34 {	
    34 {	
    35     unsigned int ilen = aSrc.Length();
    35     unsigned int ilen = aSrc.Length();
    36     int retval = ESuccess;
    36     int retval = ESuccess;
    79    *
    79    *
    80    * @param aSrc is the descriptor to be converted , aDes is the 
    80    * @param aSrc is the descriptor to be converted , aDes is the 
    81    * reference to the character sream where the result of conversion 
    81    * reference to the character sream where the result of conversion 
    82    * is stored , n_size specifies the conversion size of the string
    82    * is stored , n_size specifies the conversion size of the string
    83    * @return Status code (0 is ESuccess, -1 is EInsufficientMemory, 
    83    * @return Status code (0 is ESuccess, -1 is EInsufficientMemory, 
    84    * -2 is EInvalidSize , -4 is EInvalidPointer, -5 is EDescriptorNoData
    84    * -2 is EInvalidSize , -4 is EInvalidPointer)
    85    * -8 is EInvalidWCSSequence)
       
    86    */	
    85    */	
    87 EXPORT_C int Tbufc16ToChar(TDesC& aSrc, char* aDes, int& n_size)
    86 EXPORT_C int Tbufc16ToChar(TDesC& aSrc, char* aDes, int& n_size)
    88 {
    87 {
    89     int retval = ESuccess;
    88     int retval = ESuccess;
    90     unsigned int ilen = 0 ;
    89     unsigned int ilen = 0 ;
   133    *
   132    *
   134    * @param aSrc is the descriptor to be converted , aDes is the 
   133    * @param aSrc is the descriptor to be converted , aDes is the 
   135    * reference to the character sream where the result of conversion 
   134    * reference to the character sream where the result of conversion 
   136    * is stored , n_size specifies the  conversion size of the string
   135    * is stored , n_size specifies the  conversion size of the string
   137    * @return Status code (0 is ESuccess, -1 is EInsufficientMemory, -2 is EInvalidSize
   136    * @return Status code (0 is ESuccess, -1 is EInsufficientMemory, -2 is EInvalidSize
   138    * -3 is EDescriptorNoData , -4 is EInvalidPointer, -8 is EInvalidWCSSequence)
   137    * -3 is EDescriptorNoData , -4 is EInvalidPointer)
   139    */
   138    */
   140 
   139 
   141 EXPORT_C int Tlitc16ToChar(const TDesC16& aSrc, char* aDes, int& n_size)
   140 EXPORT_C int Tlitc16ToChar(const TDesC16& aSrc, char* aDes, int& n_size)
   142 {
   141 {
   143     unsigned int ilen = 0;
   142     unsigned int ilen = 0;
   188    *
   187    *
   189    * @param aSrc is the descriptor to be converted , aDes is the 
   188    * @param aSrc is the descriptor to be converted , aDes is the 
   190    * reference to the character sream where the result of conversion 
   189    * reference to the character sream where the result of conversion 
   191    * is stored , n_size specifies the conversion size of the string
   190    * is stored , n_size specifies the conversion size of the string
   192    * @return Status code (0 is ESuccess, -1 is EInsufficientMemory, 
   191    * @return Status code (0 is ESuccess, -1 is EInsufficientMemory, 
   193    * -2 is EInvalidSize , -4 is EInvalidPointer, -8 is EInvalidWCSSequence)
   192    * -2 is EInvalidSize , -4 is EInvalidPointer)
   194    */
   193    */
   195 
   194 
   196 EXPORT_C int Tptr16ToCharp (const TDes16& aSrc, char* aDes, int& n_size)
   195 EXPORT_C int Tptr16ToCharp (const TDes16& aSrc, char* aDes, int& n_size)
   197 {
   196 {
   198     unsigned int ilen = 0 ;
   197     unsigned int ilen = 0 ;