~ubuntu-branches/ubuntu/hardy/php5/hardy-updates

« back to all changes in this revision

Viewing changes to ext/standard/url.h

  • Committer: Bazaar Package Importer
  • Author(s): Adam Conrad
  • Date: 2005-10-09 03:14:32 UTC
  • Revision ID: james.westby@ubuntu.com-20051009031432-kspik3lobxstafv9
Tags: upstream-5.0.5
ImportĀ upstreamĀ versionĀ 5.0.5

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
   +----------------------------------------------------------------------+
 
3
   | PHP Version 5                                                        |
 
4
   +----------------------------------------------------------------------+
 
5
   | Copyright (c) 1997-2004 The PHP Group                                |
 
6
   +----------------------------------------------------------------------+
 
7
   | This source file is subject to version 3.0 of the PHP license,       |
 
8
   | that is bundled with this package in the file LICENSE, and is        |
 
9
   | available through the world-wide-web at the following url:           |
 
10
   | http://www.php.net/license/3_0.txt.                                  |
 
11
   | If you did not receive a copy of the PHP license and are unable to   |
 
12
   | obtain it through the world-wide-web, please send a note to          |
 
13
   | license@php.net so we can mail you a copy immediately.               |
 
14
   +----------------------------------------------------------------------+
 
15
   | Author: Jim Winstead <jimw@php.net>                                  |
 
16
   +----------------------------------------------------------------------+
 
17
 */
 
18
/* $Id: url.h,v 1.18.2.1 2004/09/20 05:14:35 iliaa Exp $ */
 
19
 
 
20
#ifndef URL_H
 
21
#define URL_H
 
22
 
 
23
typedef struct php_url {
 
24
        char *scheme;
 
25
        char *user;
 
26
        char *pass;
 
27
        char *host;
 
28
        unsigned short port;
 
29
        char *path;
 
30
        char *query;
 
31
        char *fragment;
 
32
} php_url;
 
33
 
 
34
PHPAPI void php_url_free(php_url *theurl);
 
35
PHPAPI php_url *php_url_parse(char const *str);
 
36
PHPAPI php_url *php_url_parse_ex(char const *str, int length);
 
37
PHPAPI int php_url_decode(char *str, int len); /* return value: length of decoded string */
 
38
PHPAPI int php_raw_url_decode(char *str, int len); /* return value: length of decoded string */
 
39
PHPAPI char *php_url_encode(char const *s, int len, int *new_length);
 
40
PHPAPI char *php_raw_url_encode(char const *s, int len, int *new_length);
 
41
 
 
42
PHP_FUNCTION(parse_url);
 
43
PHP_FUNCTION(urlencode);
 
44
PHP_FUNCTION(urldecode);
 
45
PHP_FUNCTION(rawurlencode);
 
46
PHP_FUNCTION(rawurldecode);
 
47
PHP_FUNCTION(get_headers);
 
48
 
 
49
#endif /* URL_H */
 
50
 
 
51
/*
 
52
 * Local variables:
 
53
 * tab-width: 4
 
54
 * c-basic-offset: 4
 
55
 * End:
 
56
 */