Apache2
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 
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 
105  const apr_array_header_t *list);
106 
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 */
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 
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 */
APR Platform Definitions.
APR memory allocation.
APR Table library.
dav_buffer const char * str
Definition: mod_dav.h:465
const char * prefix
Definition: mod_dav.h:631
apr_bucket_brigade request_rec apr_pool_t * pool
Definition: mod_dav.h:557
apr_status_t apr_cstr_atoui64(apr_uint64_t *n, const char *str)
const char * apr_cstr_skip_prefix(const char *str, const char *prefix)
int apr_cstr_casecmp(const char *str1, const char *str2)
void apr_cstr_split_append(apr_array_header_t *array, const char *input, const char *sep_chars, int chop_whitespace, apr_pool_t *pool)
char * apr_cstr_tokenize(const char *sep, char **str)
apr_status_t apr_cstr_atoui(unsigned int *n, const char *str)
int apr_cstr_casecmpn(const char *str1, const char *str2, apr_size_t n)
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)
int apr_cstr_match_glob_list(const char *str, const apr_array_header_t *list)
apr_status_t apr_cstr_strtoui64(apr_uint64_t *n, const char *str, apr_uint64_t minval, apr_uint64_t maxval, int base)
int apr_cstr_count_newlines(const char *msg)
apr_status_t apr_cstr_strtoi64(apr_int64_t *n, const char *str, apr_int64_t minval, apr_int64_t maxval, int base)
apr_status_t apr_cstr_atoi64(apr_int64_t *n, const char *str)
apr_status_t apr_cstr_atoi(int *n, const char *str)
int apr_status_t
Definition: apr_errno.h:44
size_t apr_size_t
Definition: apr.h:394
int64_t apr_int64_t
Definition: apr.h:386
uint64_t apr_uint64_t
Definition: apr.h:387
struct apr_pool_t apr_pool_t
Definition: apr_pools.h:60
#define APR_DECLARE(x)
Definition: macros.h:6
Definition: apr_tables.h:62