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) |
| TQCString | lf2crlf (const TQCString &src) |
| TQByteArray | lf2crlf (const TQByteArray &src) |
| TQCString | CString (const DwString &str) |
| TQByteArray | ByteArray (const DwString &str) |
| DwString | dwString (const TQCString &str) |
| DwString | dwString (const TQByteArray &str) |
| void | setFromTQCString (TQByteArray &arr, const TQCString &cstr) |
| TQByteArray | byteArrayFromTQCStringNoDetach (TQCString &cstr) |
| void | restoreTQCString (TQCString &str) |
| void | setFromByteArray (TQCString &cstr, const TQByteArray &arr) |
| void | append (TQByteArray &that, const TQByteArray &str) |
| void | append (TQByteArray &that, const char *str) |
| void | append (TQByteArray &that, const TQCString &str) |
| void | insert (TQByteArray &that, uint index, const char *s) |
| bool | checkOverwrite (const KURL &url, TQWidget *w) |
Detailed Description
The Util namespace contains a collection of helper functions use in various places.
Function Documentation
| void KMail::Util::append | ( | TQByteArray & | that, |
| const TQByteArray & | str | ||
| ) |
| void KMail::Util::append | ( | TQByteArray & | that, |
| const char * | str | ||
| ) |
| void KMail::Util::append | ( | TQByteArray & | that, |
| const TQCString & | str | ||
| ) |
| TQByteArray KMail::Util::ByteArray | ( | const DwString & | str | ) |
| TQByteArray KMail::Util::byteArrayFromTQCStringNoDetach | ( | TQCString & | cstr | ) | [inline] |
| size_t KMail::Util::crlf2lf | ( | char * | str, |
| const size_t | strLen | ||
| ) |
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.
- Parameters:
-
str The string to convert. strLen The length of the string to convert.
- Returns:
- The new length of the converted string.
| TQCString KMail::Util::CString | ( | const DwString & | str | ) |
| DwString KMail::Util::dwString | ( | const TQCString & | str | ) |
| DwString KMail::Util::dwString | ( | const TQByteArray & | str | ) |
| TQCString KMail::Util::lf2crlf | ( | const TQCString & | src | ) |
| TQByteArray KMail::Util::lf2crlf | ( | const TQByteArray & | src | ) |
| void KMail::Util::restoreTQCString | ( | TQCString & | str | ) | [inline] |
| void KMail::Util::setFromByteArray | ( | TQCString & | cstr, |
| const TQByteArray & | arr | ||
| ) | [inline] |
| void KMail::Util::setFromTQCString | ( | TQByteArray & | arr, |
| const TQCString & | cstr | ||
| ) | [inline] |
