1 /* 2 * xdx - GTK+ DX-cluster client for amateur radio 3 * Copyright (C) 2002-2006 Joop Stakenborg <pg4i@amsat.org> 4 * 5 * Taken from the gtksourceview source tree with the following copyrights: 6 * Copyright (C) 2000 - 2005 Paolo Maggi 7 * Copyright (C) 2002, 2003 Jeroen Zwartepoorte 8 * 9 * This program is free software; you can redistribute it and/or modify 10 * it under the terms of the GNU General Public License as published by 11 * the Free Software Foundation; either version 2 of the License, or 12 * (at your option) any later version. 13 * 14 * This program is distributed in the hope that it will be useful, 15 * but WITHOUT ANY WARRANTY; without even the implied warranty of 16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 17 * GNU Library General Public License for more details. 18 * 19 * You should have received a copy of the GNU General Public License 20 * along with this program; if not, write to the Free Software 21 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 22 */ 23 24 #ifndef __GTK_SOURCE_ITER_H__ 25 #define __GTK_SOURCE_ITER_H__ 26 27 #include <gtk/gtktextiter.h> 28 29 G_BEGIN_DECLS 30 31 typedef enum 32 { 33 GTK_SOURCE_SEARCH_VISIBLE_ONLY = 1 << 0, 34 GTK_SOURCE_SEARCH_TEXT_ONLY = 1 << 1, 35 GTK_SOURCE_SEARCH_CASE_INSENSITIVE = 1 << 2 36 /* Possible future plans: SEARCH_REGEXP */ 37 } GtkSourceSearchFlags; 38 39 const gchar * 40 g_utf8_strcasestr (const gchar *haystack, const gchar *needle); 41 42 gboolean gtk_source_iter_forward_search (const GtkTextIter *iter, 43 const gchar *str, 44 GtkSourceSearchFlags flags, 45 GtkTextIter *match_start, 46 GtkTextIter *match_end, 47 const GtkTextIter *limit); 48 49 gboolean gtk_source_iter_backward_search (const GtkTextIter *iter, 50 const gchar *str, 51 GtkSourceSearchFlags flags, 52 GtkTextIter *match_start, 53 GtkTextIter *match_end, 54 const GtkTextIter *limit); 55 56 gboolean gtk_source_iter_find_matching_bracket (GtkTextIter *iter); 57 58 G_END_DECLS 59 60 #endif /* __GTK_SOURCE_ITER_H__ */ 61