Main Page | Modules | Namespace List | Data Structures | File List | Data Fields | Globals | Related Pages

apr_strmatch.h

Go to the documentation of this file.
00001 /* Copyright 2002-2004 The Apache Software Foundation
00002  *
00003  * Licensed under the Apache License, Version 2.0 (the "License");
00004  * you may not use this file except in compliance with the License.
00005  * You may obtain a copy of the License at
00006  *
00007  *     http://www.apache.org/licenses/LICENSE-2.0
00008  *
00009  * Unless required by applicable law or agreed to in writing, software
00010  * distributed under the License is distributed on an "AS IS" BASIS,
00011  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
00012  * See the License for the specific language governing permissions and
00013  * limitations under the License.
00014  */
00015 
00016 #ifndef APR_STRMATCH_H
00017 #define APR_STRMATCH_H
00018 
00023 #include "apu.h"
00024 #include "apr_pools.h"
00025 
00026 #ifdef __cplusplus
00027 extern "C" {
00028 #endif
00029 
00037 typedef struct apr_strmatch_pattern apr_strmatch_pattern;
00038 
00042 struct apr_strmatch_pattern {
00044     const char *(*compare)(const apr_strmatch_pattern *this_pattern,
00045                            const char *s, apr_size_t slen);
00046     const char *pattern;    
00047     apr_size_t length;      
00048     void *context;          
00049 };
00050 
00051 #if defined(DOXYGEN)
00052 
00060 APU_DECLARE(const char *) apr_strmatch(const apr_strmatch_pattern *pattern,
00061                                        const char *s, apr_size_t slen);
00062 #else
00063 #define apr_strmatch(pattern, s, slen) (*((pattern)->compare))((pattern), (s), (slen))
00064 #endif
00065 
00073 APU_DECLARE(const apr_strmatch_pattern *) apr_strmatch_precompile(apr_pool_t *p, const char *s, int case_sensitive);
00074 
00076 #ifdef __cplusplus
00077 }
00078 #endif
00079 
00080 #endif  /* !APR_STRMATCH_H */

Generated on Sun Mar 20 20:00:15 2005 for Apache Portable Runtime Utility Library by  doxygen 1.3.9.1