]> git.ipfire.org Git - thirdparty/squid.git/blame - src/format/Quoting.h
Source Format Enforcement (#532)
[thirdparty/squid.git] / src / format / Quoting.h
CommitLineData
bbc27441 1/*
77b1029d 2 * Copyright (C) 1996-2020 The Squid Software Foundation and contributors
bbc27441
AJ
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
38e16f92
AJ
9#ifndef _SQUID_FORMAT_QUOTING_H
10#define _SQUID_FORMAT_QUOTING_H
20efa1c2 11
38e16f92 12namespace Format
20efa1c2
AJ
13{
14
15/// Safely URL-encode a username.
16/// Accepts NULL or empty strings.
8a648e8d 17char * QuoteUrlEncodeUsername(const char *name);
20efa1c2
AJ
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 */
8a648e8d 23char *QuoteMimeBlob(const char *header);
20efa1c2 24
38e16f92 25}; // namespace Format
20efa1c2 26
38e16f92 27#endif /* _SQUID_FORMAT_QUOTING_H */
f53969cc 28