apr  1.7.0
About: APR (Apache Portable Runtime) project offers software libraries that provide a predictable and consistent interface to underlying platform-specific implementations (APR core library).
  Fossies Dox: apr-1.7.0.tar.bz2  ("inofficial" and yet experimental doxygen-generated source code documentation)  

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 
92 APR_DECLARE(void) apr_cstr_split_append(apr_array_header_t *array,
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,
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 
198 APR_DECLARE(apr_status_t) apr_cstr_strtoi64(apr_int64_t *n, const char *str,
199  apr_int64_t minval,
200  apr_int64_t maxval,
201  int base);
202 
212 APR_DECLARE(apr_status_t) apr_cstr_atoi64(apr_int64_t *n, const char *str);
213 
223 APR_DECLARE(apr_status_t) apr_cstr_atoi(int *n, const char *str);
224 
247 APR_DECLARE(apr_status_t) apr_cstr_strtoui64(apr_uint64_t *n, const char *str,
248  apr_uint64_t minval,
249  apr_uint64_t maxval,
250  int base);
251 
262 APR_DECLARE(apr_status_t) apr_cstr_atoui64(apr_uint64_t *n, const char *str);
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 */
pool
const char int apr_pool_t * pool
Definition: apr_cstr.h:82
str
char ** str
Definition: apr_cstr.h:125
maxval
const char apr_int64_t apr_int64_t maxval
Definition: apr_cstr.h:198
sep
const char * sep
Definition: apr_strings.h:247
apr_array_header_t
Definition: apr_tables.h:62
strings
const char * strings
Definition: apr_fnmatch.h:121
str2
const char * str2
Definition: apr_cstr.h:161
apr_tables.h
APR Table library.
list
const apr_array_header_t * list
Definition: apr_cstr.h:105
prefix
const char * prefix
Definition: apr_cstr.h:284
apr_pool_t
Definition: apr_pools.c:577
minval
const char apr_int64_t minval
Definition: apr_cstr.h:198
n
const char apr_size_t n
Definition: apr_cstr.h:176
base
const char apr_int64_t apr_int64_t int base
Definition: apr_cstr.h:198
APR_DECLARE
APR_DECLARE(apr_array_header_t *) apr_cstr_split(const char *input
chop_whitespace
const char int chop_whitespace
Definition: apr_cstr.h:82
apr_status_t
int apr_status_t
Definition: apr_errno.h:44
apr_pools.h
APR memory allocation.
sep_chars
const char * sep_chars
Definition: apr_cstr.h:82
input
const char * input
Definition: apr_cstr.h:93