12#include "kmime_export.h"
35namespace HeaderParsing
52[[nodiscard]] KMIME_EXPORT
bool
53parseEncodedWord(
const char *&scursor,
const char *
const send,
QString &result,
64[[nodiscard]] KMIME_EXPORT
bool parseAtom(
const char *&scursor,
65 const char *
const send,
67 bool allow8Bit =
false);
69[[deprecated(
"Use the QByteArrayView overload")]] [[nodiscard]]
70inline bool parseAtom(
const char *&scursor,
const char *
const send,
QByteArray &result,
bool allow8Bit =
false)
73 const auto r = parseAtom(scursor, send, v, allow8Bit);
79[[nodiscard]] KMIME_EXPORT
bool
80parseGenericQuotedString(
const char *&scursor,
const char *
const send,
82 const char openChar =
'"',
const char closeChar =
'"');
85[[nodiscard]] KMIME_EXPORT
bool
86parseComment(
const char *&scursor,
const char *
const send,
QString &result,
87 bool isCRLF =
false,
bool reallySave =
true);
104[[nodiscard]] KMIME_EXPORT
bool parsePhrase(
const char *&scursor,
105 const char *
const send,
107 bool isCRLF =
false);
121[[nodiscard]] KMIME_EXPORT
bool parseDotAtom(
const char *&scursor,
122 const char *
const send,
124 bool isCRLF =
false);
140KMIME_EXPORT
void eatCFWS(
const char *&scursor,
const char *
const send,
143[[nodiscard]] KMIME_EXPORT
bool parseDomain(
const char *&scursor,
144 const char *
const send,
146 bool isCRLF =
false);
148[[nodiscard]] KMIME_EXPORT
bool
149parseObsRoute(
const char *&scursor,
const char *
const send,
QStringList &result,
150 bool isCRLF =
false,
bool save =
false);
152[[nodiscard]] KMIME_EXPORT
bool parseAddrSpec(
const char *&scursor,
153 const char *
const send,
154 Types::AddrSpec &result,
155 bool isCRLF =
false);
157[[nodiscard]] KMIME_EXPORT
bool parseAngleAddr(
const char *&scursor,
158 const char *
const send,
159 Types::AddrSpec &result,
160 bool isCRLF =
false);
178KMIME_EXPORT
bool parseMailbox(
const char *&scursor,
const char *
const send,
179 Types::Mailbox &result,
bool isCRLF =
false);
181[[nodiscard]] KMIME_EXPORT
bool parseGroup(
const char *&scursor,
182 const char *
const send,
183 Types::Address &result,
184 bool isCRLF =
false);
186[[nodiscard]] KMIME_EXPORT
bool parseAddress(
const char *&scursor,
187 const char *
const send,
188 Types::Address &result,
189 bool isCRLF =
false);
191[[nodiscard]] KMIME_EXPORT
bool parseAddressList(
const char *&scursor,
192 const char *
const send,
193 Types::AddressList &result,
194 bool isCRLF =
false);
203[[nodiscard]] KMIME_EXPORT
int parseDigits(
const char *&scursor,
204 const char *
const send,
int &result);
206[[nodiscard]] KMIME_EXPORT
bool
207parseTime(
const char *&scursor,
const char *
const send,
int &hour,
int &min,
208 int &sec,
long int &secsEastOfGMT,
bool &timeZoneKnown,
209 bool isCRLF =
false);
211[[nodiscard]] KMIME_EXPORT
bool parseDateTime(
const char *&scursor,
212 const char *
const send,
214 bool isCRLF =
false);
215[[nodiscard]] KMIME_EXPORT
bool parseQDateTime(
const char *&scursor,
216 const char *
const send,
218 bool isCRLF =
false);
226[[nodiscard]] KMIME_EXPORT std::unique_ptr<KMime::Headers::Base> parseNextHeader(
QByteArrayView &head);
238KMIME_EXPORT
void extractHeaderAndBody(
const QByteArray &content,
QByteArray toByteArray() const const
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Jul 26 2024 11:51:33 by
doxygen 1.11.0 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.