2006-05-21 18:11:05 -05:00
|
|
|
/*
|
2005-11-14 03:08:24 +00:00
|
|
|
* mootextsearch.h
|
|
|
|
*
|
2010-12-21 20:15:45 -08:00
|
|
|
* Copyright (C) 2004-2010 by Yevgen Muntyan <emuntyan@users.sourceforge.net>
|
2005-11-14 03:08:24 +00:00
|
|
|
*
|
2008-09-05 17:20:50 -05:00
|
|
|
* This file is part of medit. medit is free software; you can
|
|
|
|
* redistribute it and/or modify it under the terms of the
|
|
|
|
* GNU Lesser General Public License as published by the
|
|
|
|
* Free Software Foundation; either version 2.1 of the License,
|
|
|
|
* or (at your option) any later version.
|
2005-11-14 03:08:24 +00:00
|
|
|
*
|
2008-09-05 17:20:50 -05:00
|
|
|
* You should have received a copy of the GNU Lesser General Public
|
|
|
|
* License along with medit. If not, see <http://www.gnu.org/licenses/>.
|
2005-11-14 03:08:24 +00:00
|
|
|
*/
|
|
|
|
|
2007-06-10 04:06:03 -05:00
|
|
|
#ifndef MOO_TEXT_SEARCH_H
|
|
|
|
#define MOO_TEXT_SEARCH_H
|
2005-11-14 03:08:24 +00:00
|
|
|
|
|
|
|
#include <mooedit/mootextiter.h>
|
2009-11-01 12:44:46 -08:00
|
|
|
#include <mooedit/mooedit-enums.h>
|
2005-11-14 03:08:24 +00:00
|
|
|
|
|
|
|
G_BEGIN_DECLS
|
|
|
|
|
|
|
|
|
|
|
|
gboolean moo_text_search_forward (const GtkTextIter *start,
|
|
|
|
const char *str,
|
|
|
|
MooTextSearchFlags flags,
|
|
|
|
GtkTextIter *match_start,
|
|
|
|
GtkTextIter *match_end,
|
|
|
|
const GtkTextIter *end);
|
|
|
|
gboolean moo_text_search_backward (const GtkTextIter *start,
|
|
|
|
const char *str,
|
|
|
|
MooTextSearchFlags flags,
|
|
|
|
GtkTextIter *match_start,
|
|
|
|
GtkTextIter *match_end,
|
|
|
|
const GtkTextIter *end);
|
|
|
|
|
|
|
|
int moo_text_replace_all (GtkTextIter *start,
|
|
|
|
GtkTextIter *end,
|
|
|
|
const char *text,
|
|
|
|
const char *replacement,
|
|
|
|
MooTextSearchFlags flags);
|
|
|
|
|
|
|
|
|
|
|
|
G_END_DECLS
|
|
|
|
|
2007-06-10 04:06:03 -05:00
|
|
|
#endif /* MOO_TEXT_SEARCH_H */
|