Changeset View
Changeset View
Standalone View
Standalone View
src/kcodecs.h
Show First 20 Lines • Show All 133 Lines • ▼ Show 20 Line(s) | |||||
134 | * | 134 | * | ||
135 | * The output is split into lines starting with the number of | 135 | * The output is split into lines starting with the number of | ||
136 | * encoded octets in the line and ending with a newline. No | 136 | * encoded octets in the line and ending with a newline. No | ||
137 | * line is longer than 45 octets (60 characters), excluding the | 137 | * line is longer than 45 octets (60 characters), excluding the | ||
138 | * line terminator. | 138 | * line terminator. | ||
139 | * | 139 | * | ||
140 | * @param in data to be uuencoded | 140 | * @param in data to be uuencoded | ||
141 | * @return uuencoded string. | 141 | * @return uuencoded string. | ||
142 | * @deprecated Always returns an empty bytearray. | ||||
142 | */ | 143 | */ | ||
143 | KCODECS_EXPORT QByteArray uuencode(const QByteArray &in); | 144 | // TODO KF6 Remove? Or Make uuencode work? | ||
145 | KCODECS_DEPRECATED_EXPORT QByteArray uuencode(const QByteArray &in); | ||||
144 | 146 | | |||
145 | /** | 147 | /** | ||
146 | * Encodes the given data using the uuencode algorithm. | 148 | * Encodes the given data using the uuencode algorithm. | ||
147 | * | 149 | * | ||
148 | * Use this function if you want the result of the encoding | 150 | * Use this function if you want the result of the encoding | ||
149 | * to be placed in another array and cut down the number of | 151 | * to be placed in another array and cut down the number of | ||
150 | * copy operation that have to be performed in the process. | 152 | * copy operation that have to be performed in the process. | ||
151 | * This is the preffered method for encoding binary data. | 153 | * This is the preffered method for encoding binary data. | ||
152 | * | 154 | * | ||
153 | * NOTE: the output array is first reset and then resized | 155 | * NOTE: the output array is first reset and then resized | ||
154 | * appropriately before use, hence, all data stored in the | 156 | * appropriately before use, hence, all data stored in the | ||
155 | * output array will be lost. | 157 | * output array will be lost. | ||
156 | * | 158 | * | ||
157 | * @param in data to be uuencoded. | 159 | * @param in data to be uuencoded. | ||
158 | * @param out uudecoded data. | 160 | * @param out an empty byte array | ||
159 | */ | 161 | */ | ||
160 | KCODECS_EXPORT void uuencode(const QByteArray &in, QByteArray &out); | 162 | // TODO KF6 Remove? Or Make uuencode work? | ||
163 | KCODECS_DEPRECATED_EXPORT void uuencode(const QByteArray &in, QByteArray &out); | ||||
161 | 164 | | |||
162 | /** | 165 | /** | ||
163 | * Decodes the given data using the uudecode algorithm. | 166 | * Decodes the given data using the uudecode algorithm. | ||
164 | * | 167 | * | ||
165 | * Any 'begin' and 'end' lines like those generated by | 168 | * Any 'begin' and 'end' lines like those generated by | ||
166 | * the utilities in unix and unix-like OS will be | 169 | * the utilities in unix and unix-like OS will be | ||
167 | * automatically ignored. | 170 | * automatically ignored. | ||
168 | * | 171 | * | ||
▲ Show 20 Lines • Show All 611 Lines • Show Last 20 Lines |