KMime
12#include "kmime_export.h"
27namespace HeaderParsing
37[[nodiscard]] KMIME_EXPORT
bool parseAtom(
const char *&scursor,
38 const char *
const send,
39 QByteArrayView &result,
40 bool allow8Bit =
false);
42[[deprecated(
"Use the QByteArrayView overload")]] [[nodiscard]]
43inline bool parseAtom(
const char *&scursor,
const char *
const send, QByteArray &result,
bool allow8Bit =
false)
46 const auto r = parseAtom(scursor, send, v, allow8Bit);
65KMIME_EXPORT
void eatCFWS(
const char *&scursor,
const char *
const send,
84KMIME_EXPORT
bool parseMailbox(
const char *&scursor,
const char *
const send,
85 Types::Mailbox &result,
bool isCRLF =
false);
87[[nodiscard]] KMIME_EXPORT
bool parseGroup(
const char *&scursor,
88 const char *
const send,
89 Types::Address &result,
92[[nodiscard]] KMIME_EXPORT
bool parseAddress(
const char *&scursor,
93 const char *
const send,
94 Types::Address &result,
97[[nodiscard]] KMIME_EXPORT
bool parseAddressList(
const char *&scursor,
98 const char *
const send,
99 Types::AddressList &result,
100 bool isCRLF =
false);
108[[nodiscard]] KMIME_EXPORT std::unique_ptr<KMime::Headers::Base> parseNextHeader(QByteArrayView &head);
120KMIME_EXPORT
void extractHeaderAndBody(
const QByteArray &content,
121 QByteArray &header, QByteArray &body);
QByteArray toByteArray() const const
This file is part of the KDE documentation.
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Jan 24 2025 11:47:20 by
doxygen 1.13.2 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.