xrootd
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
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 /*
10 This software is Copyright (c) 2016 by David Farrell.
11 https://github.com/dnmfarrell/URI-Encode-C
12 
13 This is free software, licensed under:
14 
15  The (two-clause) FreeBSD License
16 
17 The FreeBSD License
18 
19 Redistribution and use in source and binary forms, with or without
20 modification, are permitted provided that the following conditions are
21 met:
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 
31 THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
32 "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
33 LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
34 A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
35 HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
36 SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
37 LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
38 DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
39 THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
40 (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
41 OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
42 */
43 
44 class XrdOucUri
45 {
46 public:
47 
48 //------------------------------------------------------------------------------
57 //------------------------------------------------------------------------------
58 
59 static int Decode( const char *src, int len, char *dst);
60 
61 //------------------------------------------------------------------------------
71 //------------------------------------------------------------------------------
72 
73 static int Encode( const char *src, int len, char **dst);
74 
75 //------------------------------------------------------------------------------
85 //------------------------------------------------------------------------------
86 
87 static int Encode( const char *src, int len, char *dst);
88 
89 //------------------------------------------------------------------------------
96 //------------------------------------------------------------------------------
97 
98 static int Encoded(const char *src, int len);
99 
102 };
103 #endif
static int Encode(const char *src, int len, char **dst)
Definition: XrdOucUri.hh:44
static int Decode(const char *src, int len, char *dst)
~XrdOucUri()
Definition: XrdOucUri.hh:101
XrdOucUri()
Definition: XrdOucUri.hh:100
static int Encoded(const char *src, int len)