kmail
KMail::Util Namespace Reference
Detailed Description
The Util namespace contains a collection of helper functions use in various places.
Classes | |
class | LaterDeleter |
A LaterDeleter is intended to be used with the RAII ( Resource Acquisition is Initialization ) paradigm. More... | |
Functions | |
size_t | crlf2lf (char *str, const size_t strLen) |
QCString | lf2crlf (const QCString &src) |
QByteArray | lf2crlf (const QByteArray &src) |
QCString | CString (const DwString &str) |
QByteArray | ByteArray (const DwString &str) |
DwString | dwString (const QCString &str) |
DwString | dwString (const QByteArray &str) |
void | append (QByteArray &that, const QByteArray &str) |
void | append (QByteArray &that, const char *str) |
void | append (QByteArray &that, const QCString &str) |
void | insert (QByteArray &that, uint index, const char *s) |
void | setFromQCString (QByteArray &arr, const QCString &cstr) |
QByteArray | byteArrayFromQCStringNoDetach (QCString &cstr) |
void | restoreQCString (QCString &str) |
void | setFromByteArray (QCString &cstr, const QByteArray &arr) |
bool | checkOverwrite (const KURL &url, QWidget *w) |
Function Documentation
|
Append a QCString to a bytearray. Trailing nul not copied. |
|
Append a char* to a bytearray. Trailing nul not copied. |
|
Append a bytearray to a bytearray. No trailing nuls anywhere. |
|
Construct a QByteArray from a DwString.
|
|
Creates a QByteArray from a QCString without detaching (duplicating the data). Fast, but be careful, the QCString gets modified by this; this is only good for the case where the QCString is going to be thrown away afterwards anyway. |
|
Convert all sequences of "\r\n" (carriage return followed by a line feed) to a single "\n" (line feed). The conversion happens in place. Returns the length of the resulting string.
|
|
Construct a QCString from a DwString.
|
|
Construct a DwString from a QByteArray.
|
|
Construct a DwString from a QCString.
|
|
Convert "\n" line endings to "\r\n".
|
|
Convert "\n" line endings to "\r\n".
|
|
Restore the QCString after byteArrayFromQCStringNoDetach modified it.
|
|
Fills a QCString from a QByteArray - adding the trailing null.
|
|
Fills a QByteArray from a QCString - removing the trailing null.
|