-
Notifications
You must be signed in to change notification settings - Fork 638
Expand file tree
/
Copy pathQuoting.h
More file actions
28 lines (21 loc) · 764 Bytes
/
Quoting.h
File metadata and controls
28 lines (21 loc) · 764 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
/*
* Copyright (C) 1996-2026 The Squid Software Foundation and contributors
*
* Squid software is distributed under GPLv2+ license and includes
* contributions from numerous individuals and organizations.
* Please see the COPYING and CONTRIBUTORS files for details.
*/
#ifndef SQUID_SRC_FORMAT_QUOTING_H
#define SQUID_SRC_FORMAT_QUOTING_H
namespace Format
{
/// Safely URL-encode a username.
/// Accepts NULL or empty strings.
char * QuoteUrlEncodeUsername(const char *name);
/** URL-style encoding on a MIME headers blob.
* May accept NULL or empty strings.
* \return A dynamically allocated string. recipient is responsible for free()'ing
*/
char *QuoteMimeBlob(const char *header);
}; // namespace Format
#endif /* SQUID_SRC_FORMAT_QUOTING_H */