Apache2
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
apr_lib.h
Go to the documentation of this file.
1 /* Licensed to the Apache Software Foundation (ASF) under one or more
2  * contributor license agreements. See the NOTICE file distributed with
3  * this work for additional information regarding copyright ownership.
4  * The ASF licenses this file to You under the Apache License, Version 2.0
5  * (the "License"); you may not use this file except in compliance with
6  * the License. You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16 
17 #ifndef APR_LIB_H
18 #define APR_LIB_H
19 
28 #include "apr.h"
29 #include "apr_errno.h"
30 
31 #if APR_HAVE_CTYPE_H
32 #include <ctype.h>
33 #endif
34 #if APR_HAVE_STDARG_H
35 #include <stdarg.h>
36 #endif
37 
38 #ifdef __cplusplus
39 extern "C" {
40 #endif /* __cplusplus */
41 
52 #define HUGE_STRING_LEN 8192
53 
54 /*
55  * Define the structures used by the APR general-purpose library.
56  */
57 
60 
66  char *curpos;
68  char *endpos;
69 };
70 
84 APR_DECLARE(const char *) apr_filepath_name_get(const char *pathname);
85 
92 #ifdef WIN32
93 #define apr_killpg(x, y)
94 #else /* WIN32 */
95 #ifdef NO_KILLPG
96 #define apr_killpg(x, y) (kill (-(x), (y)))
97 #else /* NO_KILLPG */
98 #define apr_killpg(x, y) (killpg ((x), (y)))
99 #endif /* NO_KILLPG */
100 #endif /* WIN32 */
101 
174 APR_DECLARE(int) apr_vformatter(int (*flush_func)(apr_vformatter_buff_t *b),
175  apr_vformatter_buff_t *c, const char *fmt,
176  va_list ap);
177 
189 APR_DECLARE(apr_status_t) apr_password_get(const char *prompt, char *pwbuf,
190  apr_size_t *bufsize);
191 
203 #define apr_isalnum(c) (isalnum(((unsigned char)(c))))
204 
205 #define apr_isalpha(c) (isalpha(((unsigned char)(c))))
206 
207 #define apr_iscntrl(c) (iscntrl(((unsigned char)(c))))
208 
209 #define apr_isdigit(c) (isdigit(((unsigned char)(c))))
210 
211 #define apr_isgraph(c) (isgraph(((unsigned char)(c))))
212 
213 #define apr_islower(c) (islower(((unsigned char)(c))))
214 
215 #if APR_CHARSET_EBCDIC || defined(isascii)
216 #define apr_isascii(c) (isascii(((unsigned char)(c))))
217 #else
218 #define apr_isascii(c) (((c) & ~0x7f)==0)
219 #endif
220 
221 #define apr_isprint(c) (isprint(((unsigned char)(c))))
222 
223 #define apr_ispunct(c) (ispunct(((unsigned char)(c))))
224 
225 #define apr_isspace(c) (isspace(((unsigned char)(c))))
226 
227 #define apr_isupper(c) (isupper(((unsigned char)(c))))
228 
229 #define apr_isxdigit(c) (isxdigit(((unsigned char)(c))))
230 
231 #define apr_tolower(c) (tolower(((unsigned char)(c))))
232 
233 #define apr_toupper(c) (toupper(((unsigned char)(c))))
234 
237 #ifdef __cplusplus
238 }
239 #endif
240 
241 #endif /* ! APR_LIB_H */
size_t apr_size_t
Definition: apr.h:375
char * curpos
Definition: apr_lib.h:66
APR Error Codes.
Definition: apr_lib.h:64
APR Platform Definitions.
char * endpos
Definition: apr_lib.h:68
int apr_vformatter(int(*flush_func)(apr_vformatter_buff_t *b), apr_vformatter_buff_t *c, const char *fmt, va_list ap)
const char * apr_filepath_name_get(const char *pathname)
#define APR_DECLARE(x)
Definition: macros.h:6
int apr_status_t
Definition: apr_errno.h:44
apr_status_t apr_password_get(const char *prompt, char *pwbuf, apr_size_t *bufsize)