KMIME Library
24#ifndef KMIME_WARNING_H
25#define KMIME_WARNING_H
27#ifndef KMIME_NO_WARNING
29# define KMIME_WARN kDebug() << "Tokenizer Warning:"
30# define KMIME_WARN_UNKNOWN(x,y) KMIME_WARN << "unknown " #x ": \"" \
32# define KMIME_WARN_UNKNOWN_ENCODING KMIME_WARN << "unknown encoding in " \
33 "RFC 2047 encoded-word (only know 'q' and 'b')";
34# define KMIME_WARN_UNKNOWN_CHARSET(c) KMIME_WARN << "unknown charset \"" \
35 << c << "\" in RFC 2047 encoded-word";
36# define KMIME_WARN_8BIT(ch) KMIME_WARN \
37 << "8Bit character '" << ch << "'"
38# define KMIME_WARN_IF_8BIT(ch) if ( (unsigned char)(ch) > 127 ) \
39 { KMIME_WARN_8BIT(ch); }
40# define KMIME_WARN_PREMATURE_END_OF(x) KMIME_WARN \
41 << "Premature end of " #x
42# define KMIME_WARN_LONE(x) KMIME_WARN << "Lonely " #x " character"
43# define KMIME_WARN_NON_FOLDING(x) KMIME_WARN << "Non-folding " #x
44# define KMIME_WARN_CTL_OUTSIDE_QS(x) KMIME_WARN << "Control character " \
45 #x " outside quoted-string"
46# define KMIME_WARN_INVALID_X_IN_Y(X,Y) KMIME_WARN << "Invalid character '" \
47 QString(QChar(X)) << "' in " #Y;
48# define KMIME_WARN_TOO_LONG(x) KMIME_WARN << #x \
49 " too long or missing delimiter";
51# define KMIME_NOP do {} while (0)
52# define KMIME_WARN_8BIT(ch) KMIME_NOP
53# define KMIME_WARN_IF_8BIT(ch) KMIME_NOP
54# define KMIME_WARN_PREMATURE_END_OF(x) KMIME_NOP
55# define KMIME_WARN_LONE(x) KMIME_NOP
56# define KMIME_WARN_NON_FOLDING(x) KMIME_NOP
57# define KMIME_WARN_CTL_OUTSIDE_QS(x) KMIME_NOP
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Wed Jan 24 2024 00:00:00 by
doxygen 1.10.0 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.