00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
#ifndef APR_LIB_H
00017
#define APR_LIB_H
00018
00027
#include "apr.h"
00028
#include "apr_errno.h"
00029
00030
#if APR_HAVE_CTYPE_H
00031
#include <ctype.h>
00032
#endif
00033
#if APR_HAVE_STDARG_H
00034
#include <stdarg.h>
00035
#endif
00036
00037
#ifdef __cplusplus
00038
extern "C" {
00039
#endif
00040
00051 #define HUGE_STRING_LEN 8192
00052
00053
00054
00055
00056
00058 typedef struct apr_vformatter_buff_t apr_vformatter_buff_t;
00059
00063 struct apr_vformatter_buff_t {
00065 char *
curpos;
00067 char *
endpos;
00068 };
00069
00083
APR_DECLARE(
const char *) apr_filepath_name_get(const
char *pathname);
00084
00086 APR_DECLARE(const
char *) apr_filename_of_pathname(const
char *pathname);
00087
00094 #ifdef WIN32
00095 #define apr_killpg(x, y)
00096 #else
00097 #ifdef NO_KILLPG
00098 #define apr_killpg(x, y) (kill (-(x), (y)))
00099 #else
00100 #define apr_killpg(x, y) (killpg ((x), (y)))
00101 #endif
00102 #endif
00103
00165 APR_DECLARE(
int) apr_vformatter(
int (*flush_func)(apr_vformatter_buff_t *b),
00166 apr_vformatter_buff_t *c, const
char *fmt,
00167 va_list ap);
00168
00175 APR_DECLARE(apr_status_t) apr_password_get(const
char *prompt,
char *pwbuf,
00176 apr_size_t *bufsize);
00177
00189 #define apr_isalnum(c) (isalnum(((
unsigned char)(c))))
00191 #define apr_isalpha(c) (isalpha(((
unsigned char)(c))))
00193 #define apr_iscntrl(c) (iscntrl(((
unsigned char)(c))))
00195 #define apr_isdigit(c) (isdigit(((
unsigned char)(c))))
00197 #define apr_isgraph(c) (isgraph(((
unsigned char)(c))))
00199 #define apr_islower(c) (islower(((
unsigned char)(c))))
00201 #ifdef isascii
00202 #define apr_isascii(c) (isascii(((
unsigned char)(c))))
00203 #else
00204 #define apr_isascii(c) (((c) & ~0x7f)==0)
00205 #endif
00207 #define apr_isprint(c) (isprint(((
unsigned char)(c))))
00209 #define apr_ispunct(c) (ispunct(((
unsigned char)(c))))
00211 #define apr_isspace(c) (isspace(((
unsigned char)(c))))
00213 #define apr_isupper(c) (isupper(((
unsigned char)(c))))
00215 #define apr_isxdigit(c) (isxdigit(((
unsigned char)(c))))
00217 #define apr_tolower(c) (tolower(((
unsigned char)(c))))
00219 #define apr_toupper(c) (toupper(((
unsigned char)(c))))
00220
00223 #ifdef __cplusplus
00224 }
00225 #endif
00226
00227 #endif