|
YAZ 5.35.1
|
Glob expression match. More...
#include <assert.h>#include <stdlib.h>#include <string.h>#include <ctype.h>#include <yaz/xmalloc.h>#include <yaz/wrbuf.h>#include <yaz/match_glob.h>Go to the source code of this file.
Functions | |
| int | yaz_match_glob (const char *glob, const char *text) |
| matches a glob expression against text | |
| int | yaz_match_glob2 (const char *glob, const char *text, int case_insensitive) |
| matches a glob expression against text | |
Glob expression match.
Definition in file match_glob.c.
| int yaz_match_glob | ( | const char * | glob, |
| const char * | text | ||
| ) |
matches a glob expression against text
| glob | glob expression |
| text | the text |
| 0 | no match |
| 1 | match |
Operators: c (literal char), ? (any char), (any number of any char) (zero or more)
Definition at line 22 of file match_glob.c.
References yaz_match_glob2().
Referenced by glob_r(), and z_soap_codec_enc_xsl().
| int yaz_match_glob2 | ( | const char * | glob, |
| const char * | text, | ||
| int | case_insensitive | ||
| ) |
matches a glob expression against text
| glob | glob expression |
| text | the text |
| case_insensitive | 1=case does not matter; 0=case matters |
| 0 | no match |
| 1 | match |
Operators: c (literal char), ? (any char), (any number of any char) (zero or more)
Definition at line 27 of file match_glob.c.
References yaz_match_glob2().
Referenced by yaz_match_glob(), yaz_match_glob2(), and yaz_retrieval_request().