Apache HTTPD
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
34extern "C" {
35#endif /* __cplusplus */
36
82 const char *sep_chars,
85
93 const char *input,
94 const char *sep_chars,
97
98
106
111APR_DECLARE(int) apr_cstr_match_list(const char *str,
112 const apr_array_header_t *list);
113
125APR_DECLARE(char *) apr_cstr_tokenize(const char *sep, char **str);
126
133APR_DECLARE(int) apr_cstr_count_newlines(const char *msg);
134
135#if 0 /* XXX: stringbuf logic is not present in APR */
145 const char *separator,
147#endif
148
161APR_DECLARE(int) apr_cstr_casecmp(const char *str1, const char *str2);
162
175APR_DECLARE(int) apr_cstr_casecmpn(const char *str1,
176 const char *str2,
178
201 int base);
202
213
223APR_DECLARE(apr_status_t) apr_cstr_atoi(int *n, const char *str);
224
250 int base);
251
263
274APR_DECLARE(apr_status_t) apr_cstr_atoui(unsigned int *n, const char *str);
275
283APR_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 memory allocation.
APR Table library.
apr_size_t size
const char int chop_whitespace
Definition apr_cstr.h:83
char ** str
Definition apr_cstr.h:125
const char int apr_pool_t * pool
Definition apr_cstr.h:84
const char * str2
Definition apr_cstr.h:161
const char apr_int64_t apr_int64_t int base
Definition apr_cstr.h:201
const char apr_int64_t minval
Definition apr_cstr.h:199
const char * sep_chars
Definition apr_cstr.h:82
const char apr_int64_t apr_int64_t maxval
Definition apr_cstr.h:200
const char apr_size_t n
Definition apr_cstr.h:177
const apr_array_header_t * list
Definition apr_cstr.h:105
APR_DECLARE(void) apr_cstr_split_append(apr_array_header_t *array
Definition apr_pools.h:646
const char * input
Definition apr_cstr.h:93
int apr_status_t
Definition apr_errno.h:44
const char * strings
const char * sep