Apache HTTPD
framework
httpd-2.4.62
srclib
apr-util
include
apr_strmatch.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
#ifndef APR_STRMATCH_H
18
#define APR_STRMATCH_H
24
#include "apu.h"
25
#include "
apr_pools.h
"
26
27
#ifdef __cplusplus
28
extern
"C"
{
29
#endif
30
38
typedef
struct
apr_strmatch_pattern
apr_strmatch_pattern
;
39
43
struct
apr_strmatch_pattern
{
45
const
char
*(*compare)(
const
apr_strmatch_pattern
*
this_pattern
,
46
const
char
*
s
,
apr_size_t
slen
);
47
const
char
*
pattern
;
48
apr_size_t
length
;
49
void
*
context
;
50
};
51
52
#if defined(DOXYGEN)
61
APU_DECLARE
(
const
char
*)
apr_strmatch
(
const
apr_strmatch_pattern
*
pattern
,
62
const
char
*
s
,
apr_size_t
slen
);
63
#else
64
#define apr_strmatch(pattern, s, slen) (*((pattern)->compare))((pattern), (s), (slen))
65
#endif
66
74
APU_DECLARE
(
const
apr_strmatch_pattern
*)
apr_strmatch_precompile
(
apr_pool_t
*
p
,
const
char
*
s
,
int
case_sensitive
);
75
77
#ifdef __cplusplus
78
}
79
#endif
80
81
#endif
/* !APR_STRMATCH_H */
pattern
const char * pattern
Definition
ap_regex.h:243
apr_pools.h
APR memory allocation.
APU_DECLARE
APU_DECLARE(void)
Computes SipHash-2-4, producing a 64bit (APR_SIPHASH_DSIZE) hash from a message and a 128bit (APR_SIP...
Definition
apr_sha1.c:206
slen
const char apr_ssize_t slen
Definition
apr_encode.h:168
case_sensitive
const char int case_sensitive
Definition
apr_strmatch.h:74
s
const char * s
Definition
apr_strmatch.h:74
apr_strmatch
#define apr_strmatch(pattern, s, slen)
Definition
apr_strmatch.h:64
size
apr_size_t size
Definition
apr_allocator.h:115
p
apr_pool_t * p
Definition
md_event.c:32
apr_pool_t
Definition
apr_pools.c:562
apr_strmatch_pattern
Definition
apr_strmatch.h:43
apr_strmatch_pattern::context
void * context
Definition
apr_strmatch.h:49
apr_strmatch_pattern::length
apr_size_t length
Definition
apr_strmatch.h:48
apr_strmatch_pattern::pattern
const char * pattern
Definition
apr_strmatch.h:47
Generated by
1.9.8