MIME encoding and decoding functions.
More...
#include <libppbase/base/MIME.h>
List of all members.
Static Public Member Functions |
static String | decodeBase64 (const String &in) |
| decodes base64 encoded data
|
static void | decodeBase64 (const String &in, String &out) |
| decodes base64 encoded data
|
static String | encodeBase64 (const char *str, size_t len, size_t linelen=0, const char *eoln=NULL) |
| Encodes data to base64.
|
static String | encodeBase64 (const String &str, size_t linelen=0, const char *eoln=NULL) |
| Encodes data to base64.
|
static void | encodeBase64 (const String &in, String &out, size_t linelen=0, const char *eoln=NULL) |
| Encodes data to base64.
|
static String | encodeEMailHeader (const String &header, const String &charset) |
| encodes an e-mail header according to the mime standard
|
static String | getEMailAddress (const String &s) |
| gets the contained e-mail address
|
Detailed Description
MIME encoding and decoding functions.
- Author:
- Christoph Schwarz
- Version:
- $Id: MIME.h 21 2010-09-05 04:18:17Z cschwarz1 $
Member Function Documentation
static String base::MIME::decodeBase64 |
( |
const String & |
in |
) |
[static] |
decodes base64 encoded data
- Parameters:
-
- Returns:
- decoded data
static void base::MIME::decodeBase64 |
( |
const String & |
in, |
|
|
String & |
out | |
|
) |
| | [static] |
decodes base64 encoded data
- Parameters:
-
| in | base64 encoded data |
| out | decoded data |
static String base::MIME::encodeBase64 |
( |
const String & |
str, |
|
|
size_t |
linelen = 0 , |
|
|
const char * |
eoln = NULL | |
|
) |
| | [static] |
Encodes data to base64.
- Parameters:
-
| str | the data to encode |
| linelen | maximum line length |
| eoln | the end-of-line marker |
- Returns:
- the encoded string
static void base::MIME::encodeBase64 |
( |
const String & |
in, |
|
|
String & |
out, |
|
|
size_t |
linelen = 0 , |
|
|
const char * |
eoln = NULL | |
|
) |
| | [static] |
Encodes data to base64.
- Parameters:
-
| in | the data to encode |
| out | the encoded string |
| linelen | maximum line length |
| eoln | the end-of-line marker |
static String base::MIME::encodeBase64 |
( |
const char * |
str, |
|
|
size_t |
len, |
|
|
size_t |
linelen = 0 , |
|
|
const char * |
eoln = NULL | |
|
) |
| | [static] |
Encodes data to base64.
- Parameters:
-
| str | the data to encode |
| len | the number of bytes to encode |
| linelen | maximum line length |
| eoln | the end-of-line marker |
- Returns:
- the encoded string
static String base::MIME::encodeEMailHeader |
( |
const String & |
header, |
|
|
const String & |
charset | |
|
) |
| | [static] |
encodes an e-mail header according to the mime standard
- Parameters:
-
| header | the header to encode |
| charset | the character set that the header is in |
- Returns:
- the encoded header
static String base::MIME::getEMailAddress |
( |
const String & |
s |
) |
[static] |
gets the contained e-mail address
- Parameters:
-
| s | the full address, e.g. "Christoph Schwarz <emil.meier@web.de>" |
- Returns:
- the e-mail address, e.g. "emil.meier@web.de"
The documentation for this class was generated from the following file: