Added models and dicts
[svmtool++.git] / lib / er.h
blobf1cd8a0087c8cec7a323749814a767ec5ffe57d4
1 /*
2 * Copyright (C) 2004 Jesus Gimenez, Lluis Marquez and Senen Moya
4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Lesser General Public
6 * License as published by the Free Software Foundation; either
7 * version 2.1 of the License, or (at your option) any later version.
8 *
9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * Lesser General Public License for more details.
14 * You should have received a copy of the GNU Lesser General Public
15 * License along with this library; if not, write to the Free Software
16 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
19 #ifndef ER_H
21 #include <sys/types.h>
22 #include <regex.h>
24 /*****************************************************************
25 * Regular expression
26 *****************************************************************/
28 #define CARD 100
29 #define CARDPUNCT 101
30 #define CARDSEPS 102
31 #define CARDSUFFIX 103
33 extern regex_t erCard,erCardPunct,erCardSeps,erCardSuffix;
34 extern regex_t erMultiWord,erContainNum,erStartCap,erStartLower,erStartNumber,
35 erAllUp,erAllLow,erContainCap,erContainCaps,erContainPeriod,erContainComma;
38 void erCompRegExp();
39 void erFreeRegExp();
40 int erLookRegExp2(void *er,char * str);
41 int erLookRegExp(char *m);
43 #define ER_H
44 #endif