This file is indexed.

/usr/include/vdk2/vdk/gtktextsearch.h is in libvdk2-dev 2.4.0-5.4.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
/* GtkTextSearch
*    
*
*  Copyright (C) 2002 Mikael Hermansson <tyan@linux.se>
*
*  This program is free software; you can redistribute it and/or modify
*  it under the terms of the GNU General Public License as published by
*  the Free Software Foundation; either version 2 of the License, or
*  (at your option) any later version.
*
*  This program is distributed in the hope that it will be useful,
*  but WITHOUT ANY WARRANTY; without even the implied warranty of
*  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
*  GNU General Public License for more details.
*
*  You should have received a copy of the GNU General Public License
*  along with this program; if not, write to the Free Software
*  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/


#ifndef _GTK_TEXT_SEARCH__H_
#define _GTK_TEXT_SEARCH__H_

#include <gtk/gtk.h>

G_BEGIN_DECLS

#define GTK_TYPE_TEXT_SEARCH                  (gtk_text_search_get_type ())
#define GTK_TEXT_SEARCH(obj)                  (G_TYPE_CHECK_INSTANCE_CAST((obj), GTK_TYPE_TEXT_SEARCH, GtkTextSearch))
#define GTK_TEXT_SEARCH_CLASS(klass)          (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_TEXT_SEARCH, GtkTextSearchClass))
#define GTK_IS_TEXT_SEARCH(obj)               (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_TEXT_SEARCH))
#define GTK_IS_TEXT_SEARCH_CLASS(klass)       (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_TEXT_SEARCH))

typedef struct _GtkTextSearch GtkTextSearch;
typedef struct _GtkTextSearchClass GtkTextSearchClass;
typedef gboolean (*GtkTextSearchForeachFunc) (GtkTextIter *match_start, GtkTextIter *match_end, gpointer data);

typedef enum  {
  GTK_ETEXT_SEARCH_VISIBLE_ONLY, /* TODO */
  GTK_ETEXT_SEARCH_TEXT_ONLY,
  GTK_ETEXT_SEARCH_CASE_INSENSITIVE,
  GTK_ETEXT_SEARCH_REGEXP /* TODO: this is not yet implemented */
}GtkETextSearchFlags;

struct _GtkTextSearch
{
  GObject parent;

  gchar *search_for; /* the text to search for */
  gchar *offset;  /* offset in search_for used in forward find char callback */

  GtkTextBuffer *buffer;
  GtkTextMark *mark_current;
  GtkTextMark *mark_stop;  
  GtkETextSearchFlags sflags;

  gint is_matched : 1;  
};

struct _GtkTextSearchClass
{
  GObjectClass parent;
    
};

GType gtk_text_search_get_type (void);

GtkTextSearch * gtk_text_search_new (GtkTextBuffer *buffer, const GtkTextIter *start, 
                                              const char *search,
                                                GtkETextSearchFlags sflags, 
                                                const GtkTextIter *limit);
void gtk_text_search_set (GtkTextSearch *search, 
                                    GtkTextBuffer *buffer, 
                                    const GtkTextIter *start, 
                                    const char *searchfor,  
                                   GtkETextSearchFlags sflags, 
                                                const GtkTextIter *limit);
void gtk_text_search_set_interval (GtkTextSearch *search, GtkTextBuffer *buffer, const GtkTextIter *start, const GtkTextIter *end);

gboolean gtk_text_search_forward (GtkTextSearch *search, GtkTextIter *match_start, GtkTextIter *match_end);
gboolean gtk_text_search_backward (GtkTextSearch *search, GtkTextIter *match_start, GtkTextIter *match_end);
gint gtk_text_search_forward_foreach (GtkTextSearch *search, GtkTextSearchForeachFunc func, gpointer data);
gint gtk_text_search_backward_foreach (GtkTextSearch *search, GtkTextSearchForeachFunc func, gpointer data);

G_END_DECLS

#endif