Apache2
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
apr_cstr.h
Go to the documentation of this file.
1 /* ====================================================================
2  * Licensed to the Apache Software Foundation (ASF) under one
3  * or more contributor license agreements. See the NOTICE file
4  * distributed with this work for additional information
5  * regarding copyright ownership. The ASF licenses this file
6  * to you under the Apache License, Version 2.0 (the
7  * "License"); you may not use this file except in compliance
8  * with the License. You may obtain a copy of the License at
9  *
10  * http://www.apache.org/licenses/LICENSE-2.0
11  *
12  * Unless required by applicable law or agreed to in writing,
13  * software distributed under the License is distributed on an
14  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15  * KIND, either express or implied. See the License for the
16  * specific language governing permissions and limitations
17  * under the License.
18  * ====================================================================
19  */
20 
26 #ifndef APR_CSTR_H
27 #define APR_CSTR_H
28 
29 #include <apr.h> /* for apr_size_t */
30 #include <apr_pools.h> /* for apr_pool_t */
31 #include <apr_tables.h> /* for apr_array_header_t */
32 
33 #ifdef __cplusplus
34 extern "C" {
35 #endif /* __cplusplus */
36 
81 APR_DECLARE(apr_array_header_t *) apr_cstr_split(const char *input,
82  const char *sep_chars,
83  int chop_whitespace,
84  apr_pool_t *pool);
85 
93  const char *input,
94  const char *sep_chars,
95  int chop_whitespace,
96  apr_pool_t *pool);
97 
98 
104 APR_DECLARE(int) apr_cstr_match_glob_list(const char *str,
105  const apr_array_header_t *list);
106 
111 APR_DECLARE(int) apr_cstr_match_list(const char *str,
112  const apr_array_header_t *list);
113 
125 APR_DECLARE(char *) apr_cstr_tokenize(const char *sep, char **str);
126 
133 APR_DECLARE(int) apr_cstr_count_newlines(const char *msg);
134 
135 #if 0 /* XXX: stringbuf logic is not present in APR */
136 
144 APR_DECLARE(char *) apr_cstr_join(const apr_array_header_t *strings,
145  const char *separator,
146  apr_pool_t *pool);
147 #endif
148 
161 APR_DECLARE(int) apr_cstr_casecmp(const char *str1, const char *str2);
162 
175 APR_DECLARE(int) apr_cstr_casecmpn(const char *str1,
176  const char *str2,
177  apr_size_t n);
178 
199  apr_int64_t minval,
200  apr_int64_t maxval,
201  int base);
202 
213 
223 APR_DECLARE(apr_status_t) apr_cstr_atoi(int *n, const char *str);
224 
248  apr_uint64_t minval,
249  apr_uint64_t maxval,
250  int base);
251 
263 
274 APR_DECLARE(apr_status_t) apr_cstr_atoui(unsigned int *n, const char *str);
275 
283 APR_DECLARE(const char *) apr_cstr_skip_prefix(const char *str,
284  const char *prefix);
285 
288 #ifdef __cplusplus
289 }
290 #endif /* __cplusplus */
291 
292 #endif /* SVN_STRING_H */
size_t apr_size_t
Definition: apr.h:375
apr_status_t apr_cstr_atoi(int *n, const char *str)
Definition: apr_tables.h:62
char * apr_cstr_tokenize(const char *sep, char **str)
int apr_cstr_casecmp(const char *str1, const char *str2)
const char * apr_cstr_skip_prefix(const char *str, const char *prefix)
apr_bucket_brigade request_rec apr_pool_t * pool
Definition: mod_dav.h:552
apr_status_t apr_cstr_atoui64(apr_uint64_t *n, const char *str)
int apr_cstr_casecmpn(const char *str1, const char *str2, apr_size_t n)
apr_status_t apr_cstr_strtoui64(apr_uint64_t *n, const char *str, apr_uint64_t minval, apr_uint64_t maxval, int base)
const char * prefix
Definition: mod_dav.h:614
apr_array_header_t * apr_cstr_split(const char *input, const char *sep_chars, int chop_whitespace, apr_pool_t *pool)
int apr_cstr_match_list(const char *str, const apr_array_header_t *list)
void apr_cstr_split_append(apr_array_header_t *array, const char *input, const char *sep_chars, int chop_whitespace, apr_pool_t *pool)
APR memory allocation.
APR Table library.
apr_status_t apr_cstr_atoi64(apr_int64_t *n, const char *str)
APR Platform Definitions.
apr_status_t apr_cstr_strtoi64(apr_int64_t *n, const char *str, apr_int64_t minval, apr_int64_t maxval, int base)
unsigned long apr_uint64_t
Definition: apr.h:372
#define APR_DECLARE(x)
Definition: macros.h:6
apr_status_t apr_cstr_atoui(unsigned int *n, const char *str)
int apr_cstr_match_glob_list(const char *str, const apr_array_header_t *list)
dav_buffer const char * str
Definition: mod_dav.h:461
long apr_int64_t
Definition: apr.h:371
struct apr_pool_t apr_pool_t
Definition: apr_pools.h:60
int apr_status_t
Definition: apr_errno.h:44
int apr_cstr_count_newlines(const char *msg)