xrootd
Loading...
Searching...
No Matches
XrdOucUri.hh
Go to the documentation of this file.
1#ifndef __XRDOUCURI__HH__
2#define __XRDOUCURI__HH__
3/******************************************************************************/
4/* */
5/* X r d O u c U r i . h h */
6/* */
7/******************************************************************************/
8
9/*
10This software is Copyright (c) 2016 by David Farrell.
11https://github.com/dnmfarrell/URI-Encode-C
12
13This is free software, licensed under:
14
15 The (two-clause) FreeBSD License
16
17The FreeBSD License
18
19Redistribution and use in source and binary forms, with or without
20modification, are permitted provided that the following conditions are
21met:
22
23 1. Redistributions of source code must retain the above copyright
24 notice, this list of conditions and the following disclaimer.
25
26 2. Redistributions in binary form must reproduce the above copyright
27 notice, this list of conditions and the following disclaimer in the
28 documentation and/or other materials provided with the
29 distribution.
30
31THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
32"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
33LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
34A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
35HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
36SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
37LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
38DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
39THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
40(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
41OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
42*/
43
45{
46public:
47
48//------------------------------------------------------------------------------
57//------------------------------------------------------------------------------
58
59static int Decode( const char *src, int len, char *dst);
60
61//------------------------------------------------------------------------------
71//------------------------------------------------------------------------------
72
73static int Encode( const char *src, int len, char **dst);
74
75//------------------------------------------------------------------------------
85//------------------------------------------------------------------------------
86
87static int Encode( const char *src, int len, char *dst);
88
89//------------------------------------------------------------------------------
96//------------------------------------------------------------------------------
97
98static int Encoded(const char *src, int len);
99
102};
103#endif
Definition XrdOucUri.hh:45
static int Encode(const char *src, int len, char **dst)
~XrdOucUri()
Definition XrdOucUri.hh:101
static int Encode(const char *src, int len, char *dst)
XrdOucUri()
Definition XrdOucUri.hh:100
static int Decode(const char *src, int len, char *dst)
static int Encoded(const char *src, int len)