]> git.ipfire.org Git - thirdparty/squid.git/blob - src/format/Quoting.h
SourceFormat Enforcement
[thirdparty/squid.git] / src / format / Quoting.h
1 /*
2 * Copyright (C) 1996-2016 The Squid Software Foundation and contributors
3 *
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.
7 */
8
9 #ifndef _SQUID_FORMAT_QUOTING_H
10 #define _SQUID_FORMAT_QUOTING_H
11
12 namespace Format
13 {
14
15 /// Safely URL-encode a username.
16 /// Accepts NULL or empty strings.
17 char * QuoteUrlEncodeUsername(const char *name);
18
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
22 */
23 char *QuoteMimeBlob(const char *header);
24
25 }; // namespace Format
26
27 #endif /* _SQUID_FORMAT_QUOTING_H */
28