Loading...
Searching...
No Matches
apr_strmatch.h
Go to the documentation of this file.
/* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef APR_STRMATCH_H
#define APR_STRMATCH_H
#include "apu.h"
#include "apr_pools.h"
#ifdef __cplusplus
extern "C" {
#endif
typedef struct apr_strmatch_pattern apr_strmatch_pattern;
struct apr_strmatch_pattern {
const char *(*compare)(const apr_strmatch_pattern *this_pattern,
const char *s, apr_size_t slen);
const char *pattern;
apr_size_t length;
void *context;
};
#if defined(DOXYGEN)
APU_DECLARE(const char *) apr_strmatch(const apr_strmatch_pattern *pattern,
const char *s, apr_size_t slen);
#else
#define apr_strmatch(pattern, s, slen) (*((pattern)->compare))((pattern), (s), (slen))
#endif
APU_DECLARE(const apr_strmatch_pattern *) apr_strmatch_precompile(apr_pool_t *p, const char *s, int case_sensitive);
#ifdef __cplusplus
}
#endif
#endif /* !APR_STRMATCH_H */
apr_strmatch_precompile
const apr_strmatch_pattern * apr_strmatch_precompile(apr_pool_t *p, const char *s, int case_sensitive)
apr_strmatch
const char * apr_strmatch(const apr_strmatch_pattern *pattern, const char *s, apr_size_t slen)
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