Apache HTTPD
apr_strings.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/* Portions of this file are covered by */
18/* -*- mode: c; c-file-style: "k&r" -*-
19
20 strnatcmp.c -- Perform 'natural order' comparisons of strings in C.
21 Copyright (C) 2000 by Martin Pool <[email protected]>
22
23 This software is provided 'as-is', without any express or implied
24 warranty. In no event will the authors be held liable for any damages
25 arising from the use of this software.
26
27 Permission is granted to anyone to use this software for any purpose,
28 including commercial applications, and to alter it and redistribute it
29 freely, subject to the following restrictions:
30
31 1. The origin of this software must not be misrepresented; you must not
32 claim that you wrote the original software. If you use this software
33 in a product, an acknowledgment in the product documentation would be
34 appreciated but is not required.
35 2. Altered source versions must be plainly marked as such, and must not be
36 misrepresented as being the original software.
37 3. This notice may not be removed or altered from any source distribution.
38*/
39
40#ifndef APR_STRINGS_H
41#define APR_STRINGS_H
42
48#include "apr.h"
49#include "apr_errno.h"
50#include "apr_pools.h"
51#define APR_WANT_IOVEC
52#include "apr_want.h"
53
54#if APR_HAVE_STDARG_H
55#include <stdarg.h>
56#endif
57
58#ifdef __cplusplus
59extern "C" {
60#endif /* __cplusplus */
61
76APR_DECLARE(int) apr_strnatcmp(char const *a, char const *b);
77
87APR_DECLARE(int) apr_strnatcasecmp(char const *a, char const *b);
88
95APR_DECLARE(char *) apr_pstrdup(apr_pool_t *p, const char *s);
96
110#if defined(__GNUC__) && (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 4))
112#endif
113 ;
114
125APR_DECLARE(char *) apr_pstrndup(apr_pool_t *p, const char *s, apr_size_t n);
126
136#if defined(__GNUC__) && (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 4))
138#endif
139 ;
140
148#if defined(__GNUC__) && __GNUC__ >= 4
150#endif
151 ;
152
163
173
182APR_DECLARE_NONSTD(char *) apr_psprintf(apr_pool_t *p, const char *fmt, ...)
184
207APR_DECLARE(char *) apr_cpystrn(char *dst, const char *src,
209
217APR_DECLARE(char *) apr_collapse_spaces(char *dest, const char *src);
218
227 char ***argv_out,
229
247APR_DECLARE(char *) apr_strtok(char *str, const char *sep, char **last);
248
280 const char *format, ...)
282
292 va_list ap);
301APR_DECLARE(char *) apr_itoa(apr_pool_t *p, int n);
302
309APR_DECLARE(char *) apr_ltoa(apr_pool_t *p, long n);
310
318
336 char **end, int base);
337
354
363
373
376#ifdef __cplusplus
377}
378#endif
379
380#endif /* !APR_STRINGS_H */
APR Error Codes.
APR memory allocation.
APR Standard Headers Support.
apr_size_t const char * format
apr_size_t len
apr_bucket apr_bucket_brigade * a
const void apr_status_t(*) apr_status_t(* APR_DECLARE)(void) apr_pool_pre_cleanup_register(apr_pool_t *p
Definition apr_pools.h:646
apr_size_t size
int apr_status_t
Definition apr_errno.h:44
apr_seek_where_t apr_off_t * offset
APR_DECLARE_NONSTD(void) apr_terminate(void)
Definition start.c:173
const char apr_status_t(*) apr_pool_t *poo __attribute__)((nonnull(2, 4)))
Definition apr_pools.h:567
const char apr_size_t dst_size
const char * sep
char const * b
Definition apr_strings.h:76
const char va_list ap
const char apr_size_t n
const char char int base
const char * fmt
const char char ** end
const char char ** last
const char * s
Definition apr_strings.h:95
char apr_pool_t * token_context
const char * buf
const char * src
const struct iovec apr_size_t nvec
const void * m
const struct iovec apr_size_t apr_size_t * nbytes
const struct iovec * vec
char *** argv_out
apr_pool_t * p
Definition md_event.c:32
#define str