1 /* 2 ** Copyright (C) 2002-2009 Sourcefire, Inc. 3 ** Copyright (C) 1998-2002 Martin Roesch <roesch@sourcefire.com> 4 ** 5 ** This program is free software; you can redistribute it and/or modify 6 ** it under the terms of the GNU General Public License Version 2 as 7 ** published by the Free Software Foundation. You may not use, modify or 8 ** distribute this program under any other version of the GNU General 9 ** Public License. 10 ** 11 ** This program is distributed in the hope that it will be useful, 12 ** but WITHOUT ANY WARRANTY; without even the implied warranty of 13 ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 ** GNU General Public License for more details. 15 ** 16 ** You should have received a copy of the GNU General Public License 17 ** along with this program; if not, write to the Free Software 18 ** Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 19 */ 20 21 /* $Id$ */ 22 23 #ifndef __MSTRING_H__ 24 #define __MSTRING_H__ 25 26 /* D E F I N E S *******************************************************/ 27 #define TOKS_BUF_SIZE 100 28 29 30 /* P R O T O T Y P E S *************************************************/ 31 char ** mSplit(const char *, const char *, const int, int *, const char); 32 char **mSplitSpecial(char *, const char *, int, int *, const char); 33 void mSplitFree(char ***toks, int numtoks); 34 int mContainsSubstr(const char *, int, const char *, int); 35 int mSearch(const char *, int, const char *, int, int *, int *); 36 int mSearchCI(const char *, int, const char *, int, int *, int *); 37 int mSearchREG(const char *, int, const char *, int, int *, int *); 38 int *make_skip(char *, int); 39 int *make_shift(char *, int); 40 41 #endif /* __MSTRING_H__ */ 42