1 /************************************************************************************************* 2 * Interface of features of regular expression 3 * Copyright (C) 2003-2006 Mikio Hirabayashi 4 * This file is part of Estraier, a personal full-text search system. 5 * Estraier is free software; you can redistribute it and/or modify it under the terms of the GNU 6 * General Public License as published by the Free Software Foundation; either version 2 of the 7 * License, or any later version. 8 * Estraier is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; 9 * without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 10 * See the GNU General Public License for more details. 11 * You should have received a copy of the GNU General Public License along with Estraier; 12 * if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, 13 * MA 02111-1307 USA. 14 *************************************************************************************************/ 15 16 17 #ifndef _ESTREGEX_H /* duplication check */ 18 #define _ESTREGEX_H 19 20 21 22 /************************************************************************************************* 23 * functions 24 *************************************************************************************************/ 25 26 27 /* Check whether a regular expression matches a string. 28 `str' specifies a target string. 29 `regex' specifies the string of a regular expression. If it is `NULL', the last specified 30 expression is used. 31 The return value is true if the regular expression matches the candidate, else, it is false. */ 32 extern int (*estregexmatch)(const char *str, const char *regex); 33 34 35 36 #endif /* duplication check */ 37 38 39 /* END OF FILE */ 40