-/* $Id: index_rules.h,v 1.1 2007-10-23 12:26:25 adam Exp $
+/* $Id: index_rules.h,v 1.2 2007-10-23 12:36:22 adam Exp $
Copyright (C) 1995-2007
Index Data ApS
*/
/**
+ \file index_rules.h
\brief Definitions for Zebra's index rules system
*/
YAZ_BEGIN_CDECL
+/**
+ \brief zebra index rules handle (ptr)
+*/
typedef struct zebra_index_rules_s *zebra_index_rules_t;
/** \brief creates index rules handler/object from file
/** \brief creates index rules handler/object from xml Doc
- \param fname filename
+ \param doc Libxml2 document
\returns handle (NULL if unsuccessful)
Similar to zebra_index_rules_create
-/* $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
*/
/**
- \brief Definitions for Zebra's index rules system
+ \file rob_regexp.h
+ \brief Rob Pike's regular expression matcher
*/
#ifndef ZEBRA_ROB_REGEXP_H
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
-/* $Id: rob_regexp.c,v 1.1 2007-10-23 12:26:26 adam Exp $
+/* $Id: rob_regexp.c,v 1.2 2007-10-23 12:36:22 adam Exp $
Copyright (C) 1995-2007
Index Data ApS
*/
/**
- \brief Rob Pike's regular expresion parser
+ \file rob_regexp.c
+ \brief Rob Pike's regular expression matcher
Taken verbatim from Beautiful code.. ANSIfied a bit.
*/