Apache HTTPD
Classes | Macros | Typedefs | Functions | Variables
apr_uri.c File Reference
#include <stdlib.h>
#include "apu.h"
#include "apr.h"
#include "apr_general.h"
#include "apr_strings.h"
#include "apr_want.h"
#include "apr_uri.h"

Go to the source code of this file.

Classes

struct  schemes_t
 

Macros

#define APR_WANT_STRFUNC
 
#define T_SLASH   0x01 /* '/' */
 
#define T_QUESTION   0x02 /* '?' */
 
#define T_HASH   0x04 /* '#' */
 
#define T_ALPHA   0x08 /* 'A' ... 'Z', 'a' ... 'z' */
 
#define T_SCHEME
 
#define T_NUL   0x80 /* '\0' */
 
#define NOTEND_HOSTINFO   (T_SLASH | T_QUESTION | T_HASH | T_NUL)
 
#define NOTEND_PATH   (T_QUESTION | T_HASH | T_NUL)
 

Typedefs

typedef struct schemes_t schemes_t
 

Functions

 APU_DECLARE (apr_port_t)
 
 APU_DECLARE (char *)
 
 APU_DECLARE (apr_status_t)
 

Variables

static schemes_t schemes []
 
static const unsigned char uri_delims [256]
 

Macro Definition Documentation

◆ APR_WANT_STRFUNC

#define APR_WANT_STRFUNC

Definition at line 29 of file apr_uri.c.

◆ NOTEND_HOSTINFO

#define NOTEND_HOSTINFO   (T_SLASH | T_QUESTION | T_HASH | T_NUL)

Definition at line 709 of file apr_uri.c.

◆ NOTEND_PATH

#define NOTEND_PATH   (T_QUESTION | T_HASH | T_NUL)

Definition at line 710 of file apr_uri.c.

◆ T_ALPHA

#define T_ALPHA   0x08 /* 'A' ... 'Z', 'a' ... 'z' */

Definition at line 176 of file apr_uri.c.

◆ T_HASH

#define T_HASH   0x04 /* '#' */

Definition at line 175 of file apr_uri.c.

◆ T_NUL

#define T_NUL   0x80 /* '\0' */

Definition at line 178 of file apr_uri.c.

◆ T_QUESTION

#define T_QUESTION   0x02 /* '?' */

Definition at line 174 of file apr_uri.c.

◆ T_SCHEME

#define T_SCHEME
Value:
0x10 /* '0' ... '9', '-', '+', '.'
* (allowed in scheme except first char)
*/

Definition at line 177 of file apr_uri.c.

◆ T_SLASH

#define T_SLASH   0x01 /* '/' */

Definition at line 173 of file apr_uri.c.

Typedef Documentation

◆ schemes_t

Definition at line 34 of file apr_uri.c.

Function Documentation

◆ APU_DECLARE() [1/2]

APU_DECLARE ( apr_port_t  )

Definition at line 73 of file apr_uri.c.

◆ APU_DECLARE() [2/2]

APU_DECLARE ( char )

Definition at line 90 of file apr_uri.c.

Variable Documentation

◆ schemes

schemes_t schemes[]
static
Initial value:
=
{
{"http", 80 },
{"ftp", 21 },
{"https", 443 },
{"gopher", 70 },
{"ldap", 389 },
{"nntp", 119 },
{"snews", 563 },
{"imap", 143 },
{"pop", 110 },
{"sip", 5060 },
{"rtsp", 554 },
{"wais", 210 },
{"z39.50r", 210 },
{"z39.50s", 210 },
{"prospero", 191 },
{"nfs", 2049 },
{"tip", 3372 },
{"acap", 674 },
{"telnet", 23 },
{"ssh", 22 },
{ NULL, 0xFFFF }
}
return NULL
Definition mod_so.c:359

Definition at line 48 of file apr_uri.c.

◆ uri_delims

const unsigned char uri_delims[256]
static

Definition at line 442 of file apr_uri.c.