Updated source code from upstream SVN
[svmtool++.git] / include / er.h
blob783f47d8d43d06debfac3bc4d16a122bf6333dfe
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>
23 #include <string>
25 /*****************************************************************
26 * Regular expression
27 *****************************************************************/
29 #define CARD 100
30 #define CARDPUNCT 101
31 #define CARDSEPS 102
32 #define CARDSUFFIX 103
34 extern regex_t erCard,erCardPunct,erCardSeps,erCardSuffix;
35 extern regex_t erMultiWord,erContainNum,erStartCap,erStartLower,erStartNumber,
36 erAllUp,erAllLow,erContainCap,erContainCaps,erContainPeriod,erContainComma;
39 void erCompRegExp();
40 void erFreeRegExp();
41 int erLookRegExp2(void* er, const std::string& str);
42 int erLookRegExp(const std::string& m);
44 #define ER_H
45 #endif