100 * the complete conversion of the source string. |
98 * the complete conversion of the source string. |
101 */ |
99 */ |
102 int ConvertMultiByteToWideChar(const char* aSource, int aSourceLen, wchar_t* aTarget, int aTargetLen, TUint32 aCodePage = 0); |
100 int ConvertMultiByteToWideChar(const char* aSource, int aSourceLen, wchar_t* aTarget, int aTargetLen, TUint32 aCodePage = 0); |
103 |
101 |
104 /* |
102 /* |
105 * Copies an existing file to a new file. |
103 Copies an existing file to a new file. |
106 * |
104 @Parameters aSrc : The name of an existing file. |
107 * @Parameters aSrc The name of an existing file. |
105 @Parameters aDest : The name of the new file. |
108 * @Parameters aDest The name of the new file. |
106 @Parameters aFlag : (only for windows) If this parameter is TRUE and the new file specified by aDest already exists, the function fails. If this parameter is FALSE and the new file already exists, the function overwrites the existing file and succeeds. |
109 * @Parameters aFailIfExistsFlag If this parameter is TRUE and the new file specified by aDest already exists, |
107 |
110 * the function fails. If this parameter is FALSE and the new file already exists, |
108 Return Value |
111 * the function overwrites the existing file and succeeds. |
109 If the function succeeds, the return value is zero. |
112 * @return |
110 If the function fails, the return value is nonzero. |
113 * If the function succeeds, the return value is zero. |
111 */ |
114 * If the function fails, the return value is non-zero. |
112 |
115 */ |
113 int FileCopyA(const char* aSrc, const char* aDest, size_t aFlag); |
116 |
|
117 int FileCopyA(const char* aSrc, const char* aDest, bool aFailIfExistsFlag); |
|
118 |
114 |
119 |
115 |
120 /* |
116 /* |
121 * Moves an existing file or a directory, including its children. |
117 Moves an existing file or a directory, including its children |
122 * |
118 @Parameters aSrc : The current name of the file or directory on the local computer. |
123 * @Parameters aSrc The current name of the file or directory on the local computer. |
119 @Parameters aDest : The new name for the file or directory. The new name must not already exist. A new file may be on a different file system or drive. A new directory must be on the same drive. |
124 * @Parameters aDest The new name for the file or directory. The new name must not already exist. |
120 |
125 * A new file may be on a different file system or drive. A new directory must be |
121 Return Value |
126 * on the same drive. |
122 If the function succeeds, the return value is zero. |
127 * |
123 If the function fails, the return value is nonzero. |
128 * @return |
124 */ |
129 * If the function succeeds, the return value is zero. |
|
130 * If the function fails, the return value is non-zero. |
|
131 */ |
|
132 |
125 |
133 int FileMoveA(const char* aSrc, const char* aDest); |
126 int FileMoveA(const char* aSrc, const char* aDest); |
134 |
127 |
135 |
128 |
136 // interface for only Linux |
129 // interface for only Linux |