X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=include%2Frob_regexp.h;fp=include%2Frob_regexp.h;h=7d81e1c7ab747cc249d167a1d463d0f529469f19;hb=d4999f503a4d90db9a7777a2da2bb58cff1823a5;hp=31281aed949b3bd8ed78ec79eee76aae6942c8f9;hpb=570bf3746bef524124e2a90a2999981a1c734b20;p=idzebra-moved-to-github.git diff --git a/include/rob_regexp.h b/include/rob_regexp.h index 31281ae..7d81e1c 100644 --- a/include/rob_regexp.h +++ b/include/rob_regexp.h @@ -1,4 +1,4 @@ -/* $Id: rob_regexp.h,v 1.1 2007-10-23 12:26:25 adam Exp $ +/* $Id: rob_regexp.h,v 1.2 2007-10-23 12:36:22 adam Exp $ Copyright (C) 1995-2007 Index Data ApS @@ -21,7 +21,8 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ /** - \brief Definitions for Zebra's index rules system + \file rob_regexp.h + \brief Rob Pike's regular expression matcher */ #ifndef ZEBRA_ROB_REGEXP_H @@ -31,6 +32,15 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA YAZ_BEGIN_CDECL +/** \brief matches a regular expression against text + \param regexp regular expression + \param text the text + \retval 0 no match + \retval 1 match + + Operators: c (literal char), . (any char), ^ (begin), $ (end), + * (zero or more) +*/ int zebra_rob_regexp(const char *regexp, const char *text); YAZ_END_CDECL