]>
git.ipfire.org Git - thirdparty/squid.git/blob - src/format/Quoting.h
9d10eed4169f30c74b251a3e03dd273f71dab44b
2 * Copyright (C) 1996-2016 The Squid Software Foundation and contributors
4 * Squid software is distributed under GPLv2+ license and includes
5 * contributions from numerous individuals and organizations.
6 * Please see the COPYING and CONTRIBUTORS files for details.
9 #ifndef _SQUID_FORMAT_QUOTING_H
10 #define _SQUID_FORMAT_QUOTING_H
15 /// Safely URL-encode a username.
16 /// Accepts NULL or empty strings.
17 char * QuoteUrlEncodeUsername(const char *name
);
19 /** URL-style encoding on a MIME headers blob.
20 * May accept NULL or empty strings.
21 * \return A dynamically allocated string. recipient is responsible for free()'ing
23 char *QuoteMimeBlob(const char *header
);
25 }; // namespace Format
27 #endif /* _SQUID_FORMAT_QUOTING_H */