equal
deleted
inserted
replaced
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) |
31 * -2 is EInvalidSize , -4 is EInvalidPointer, -8 is EInvalidWCSSequence) |
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) |
84 * -2 is EInvalidSize , -4 is EInvalidPointer, -5 is EDescriptorNoData |
|
85 * -8 is EInvalidWCSSequence) |
85 */ |
86 */ |
86 EXPORT_C int Tbufc16ToChar(TDesC& aSrc, char* aDes, int& n_size) |
87 EXPORT_C int Tbufc16ToChar(TDesC& aSrc, char* aDes, int& n_size) |
87 { |
88 { |
88 int retval = ESuccess; |
89 int retval = ESuccess; |
89 unsigned int ilen = 0 ; |
90 unsigned int ilen = 0 ; |
132 * |
133 * |
133 * @param aSrc is the descriptor to be converted , aDes is the |
134 * @param aSrc is the descriptor to be converted , aDes is the |
134 * reference to the character sream where the result of conversion |
135 * reference to the character sream where the result of conversion |
135 * is stored , n_size specifies the conversion size of the string |
136 * is stored , n_size specifies the conversion size of the string |
136 * @return Status code (0 is ESuccess, -1 is EInsufficientMemory, -2 is EInvalidSize |
137 * @return Status code (0 is ESuccess, -1 is EInsufficientMemory, -2 is EInvalidSize |
137 * -3 is EDescriptorNoData , -4 is EInvalidPointer) |
138 * -3 is EDescriptorNoData , -4 is EInvalidPointer, -8 is EInvalidWCSSequence) |
138 */ |
139 */ |
139 |
140 |
140 EXPORT_C int Tlitc16ToChar(const TDesC16& aSrc, char* aDes, int& n_size) |
141 EXPORT_C int Tlitc16ToChar(const TDesC16& aSrc, char* aDes, int& n_size) |
141 { |
142 { |
142 unsigned int ilen = 0; |
143 unsigned int ilen = 0; |
187 * |
188 * |
188 * @param aSrc is the descriptor to be converted , aDes is the |
189 * @param aSrc is the descriptor to be converted , aDes is the |
189 * reference to the character sream where the result of conversion |
190 * reference to the character sream where the result of conversion |
190 * is stored , n_size specifies the conversion size of the string |
191 * is stored , n_size specifies the conversion size of the string |
191 * @return Status code (0 is ESuccess, -1 is EInsufficientMemory, |
192 * @return Status code (0 is ESuccess, -1 is EInsufficientMemory, |
192 * -2 is EInvalidSize , -4 is EInvalidPointer) |
193 * -2 is EInvalidSize , -4 is EInvalidPointer, -8 is EInvalidWCSSequence) |
193 */ |
194 */ |
194 |
195 |
195 EXPORT_C int Tptr16ToCharp (const TDes16& aSrc, char* aDes, int& n_size) |
196 EXPORT_C int Tptr16ToCharp (const TDes16& aSrc, char* aDes, int& n_size) |
196 { |
197 { |
197 unsigned int ilen = 0 ; |
198 unsigned int ilen = 0 ; |