monotone

monotone Mtn Source Tree

Root/uri.hh

1#ifndef __URI_HH__
2#define __URI_HH__
3
4// Copyright (C) 2006 Graydon Hoare <graydon@pobox.com>
5//
6// This program is made available under the GNU GPL version 2.0 or
7// greater. See the accompanying file COPYING for details.
8//
9// This program is distributed WITHOUT ANY WARRANTY; without even the
10// implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
11// PURPOSE.
12
13#include <string>
14
15struct uri
16{
17 std::string scheme;
18 std::string user;
19 std::string host;
20 std::string port;
21 std::string path;
22 std::string query;
23 std::string fragment;
24};
25
26bool
27parse_uri(std::string const & in, uri & out);
28
29// Local Variables:
30// mode: C++
31// fill-column: 76
32// c-file-style: "gnu"
33// indent-tabs-mode: nil
34// End:
35// vim: et:sw=2:sts=2:ts=2:cino=>2s,{s,\:s,+s,t0,g0,^-2,e-2,n-2,p2s,(0,=s:
36
37#endif

Archive Download this file

Branches

Tags

Quick Links:     www.monotone.ca    -     Downloads    -     Documentation    -     Wiki    -     Code Forge    -     Build Status