1 // Generated by gmmproc 2.64.2 -- DO NOT MODIFY!
2 
3 
4 #include <glibmm.h>
5 
6 #include <glibmm/uriutils.h>
7 #include <glibmm/private/uriutils_p.h>
8 
9 
10 /* Copyright (C) 2002 The gtkmm Development Team
11  *
12  * This library is free software; you can redistribute it and/or
13  * modify it under the terms of the GNU Lesser General Public
14  * License as published by the Free Software Foundation; either
15  * version 2.1 of the License, or (at your option) any later version.
16  *
17  * This library is distributed in the hope that it will be useful,
18  * but WITHOUT ANY WARRANTY; without even the implied warranty of
19  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
20  * Lesser General Public License for more details.
21  *
22  * You should have received a copy of the GNU Lesser General Public
23  * License along with this library.  If not, see <http://www.gnu.org/licenses/>.
24  */
25 
26 #include <glib.h>
27 #include <glibmm/utility.h>
28 
29 namespace Glib
30 {
31 
32 std::string
uri_unescape_string(const std::string & escaped_string,const std::string & illegal_characters)33 uri_unescape_string(const std::string& escaped_string, const std::string& illegal_characters)
34 {
35   gchar* cresult = g_uri_unescape_string(escaped_string.c_str(), illegal_characters.c_str());
36   return Glib::convert_return_gchar_ptr_to_stdstring(cresult);
37 }
38 
39 std::string
uri_parse_scheme(const std::string & uri)40 uri_parse_scheme(const std::string& uri)
41 {
42   return Glib::convert_return_gchar_ptr_to_stdstring(g_uri_parse_scheme(uri.c_str()));
43 }
44 
45 std::string
uri_escape_string(const std::string & unescaped,const std::string & reserved_chars_allowed,bool allow_utf8)46 uri_escape_string(
47   const std::string& unescaped, const std::string& reserved_chars_allowed, bool allow_utf8)
48 {
49   gchar* cresult =
50     g_uri_escape_string(unescaped.c_str(), reserved_chars_allowed.c_str(), allow_utf8);
51   return Glib::convert_return_gchar_ptr_to_stdstring(cresult);
52 }
53 
54 } // namespace Glib
55 
56 namespace
57 {
58 } // anonymous namespace
59 
60 
61