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 Acquisiation is Initialization ) paradigm. More...

Functions

size_t crlf2lf (char *str, const size_t strLen)
QCString lf2crlf (const QCString &src)

Function Documentation

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.

Definition at line 43 of file util.cpp.

QCString KMail::Util::lf2crlf const QCString &  src  ) 
 

Convert "\n" line endings to "\r\n".

Parameters:
src The source string to convert.
Returns:
The result string.

Definition at line 73 of file util.cpp.

KDE Home | KDE Accessibility Home | Description of Access Keys