This file is indexed.

/usr/include/vdk2/vdk/gtksourcebuffer.h is in libvdk2-dev 2.4.0-5.3ubuntu1.

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
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
/*  gtksourcebuffer.h
 *
 *  Copyright (C) 1999,2000,2001,2002 by:
 *          Mikael Hermansson <tyan@linux.se>
 *          Chris Phelps <chicane@reninet.com>
 *          Jeroen Zwartepoorte <jeroen@xs4all.nl>
 *
 *  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_SOURCE_BUFFER_H__
#define __GTK_SOURCE_BUFFER_H__

#include <regex.h>
#include <gtk/gtk.h>
#include <vdk/gtksourcetag.h>

G_BEGIN_DECLS

#define GTK_TYPE_SOURCE_BUFFER			(gtk_source_buffer_get_type ())
#define GTK_SOURCE_BUFFER(obj)			(GTK_CHECK_CAST ((obj), GTK_TYPE_SOURCE_BUFFER, GtkSourceBuffer))
#define GTK_SOURCE_BUFFER_CLASS(klass)		(GTK_CHECK_CLASS_CAST ((klass), GTK_TYPE_SOURCE_BUFFER, GtkSourceBufferClass))
#define GTK_IS_SOURCE_BUFFER(obj)		(GTK_CHECK_TYPE ((obj), GTK_TYPE_SOURCE_BUFFER))
#define GTK_IS_SOURCE_BUFFER_CLASS(klass)	(GTK_CHECK_CLASS_TYPE ((klass), GTK_TYPE_SOURCE_BUFFER))

typedef struct _GtkSourceBuffer			GtkSourceBuffer;
typedef struct _GtkSourceBufferClass		GtkSourceBufferClass;
typedef struct _GtkSourceBufferPrivate		GtkSourceBufferPrivate;
typedef struct _GtkSourceBufferMarker		GtkSourceBufferMarker;

struct _GtkSourceBuffer {
	GtkTextBuffer TextBuffer;

	GtkSourceBufferPrivate *priv;
};

struct _GtkSourceBufferClass {
	GtkTextBufferClass parent_class;

	void (* can_undo)		(GtkSourceBuffer *buffer,
					 gboolean         can_undo);
	void (* can_redo)		(GtkSourceBuffer *buffer,
					 gboolean         can_redo);
};

struct _GtkSourceBufferMarker {
	int line;
	char *name;
};

/* Creation. */
GType            gtk_source_buffer_get_type (void);
GtkSourceBuffer *gtk_source_buffer_new (GtkTextTagTable *table);
void             gtk_source_buffer_attach_to_view (GtkSourceBuffer *buffer,
						   GtkTextView     *view);

/* Properties. */
void             gtk_source_buffer_set_check_brackets (GtkSourceBuffer *buf,
						       gboolean         check_brackets);
gboolean         gtk_source_buffer_get_highlight      (GtkSourceBuffer *buffer);
void             gtk_source_buffer_set_highlight      (GtkSourceBuffer *buf,
						       gboolean         highlight);

/* Tags methods. */
gint             gtk_source_buffer_get_tag_start       (GtkTextIter *iter);
gint             gtk_source_buffer_get_tag_end         (GtkTextIter *iter);
GtkSyntaxTag    *gtk_source_buffer_iter_has_syntax_tag (GtkTextIter *iter);

void             gtk_source_buffer_highlight_region    (GtkSourceBuffer *sbuf,
							GtkTextIter     *start,
							GtkTextIter     *end);

/* Regex methods. */
gint             gtk_source_buffer_regex_search (const gchar          *text,
						 gint                  pos,
						 Regex                *regex,
						 gboolean              forward,
						 GtkSourceBufferMatch *match);
gint             gtk_source_buffer_regex_match  (const gchar          *text,
						 gint                  pos,
						 gint                  end,
						 Regex                *regex);

GList           *gtk_source_buffer_get_regex_tags      (GtkSourceBuffer *buffer);
void             gtk_source_buffer_purge_regex_tags    (GtkSourceBuffer *buffer);
void             gtk_source_buffer_install_regex_tags  (GtkSourceBuffer *buffer,
							GList           *entries);
void             gtk_source_buffer_sync_syntax_regex   (GtkSourceBuffer *buffer);
GtkSyntaxTag    *gtk_source_buffer_iter_has_syntax_tag (GtkTextIter     *iter);

/* Get only the syntax, pattern, or embedded entries. */
GList           *gtk_source_buffer_get_syntax_entries   (GtkSourceBuffer *buffer);
GList           *gtk_source_buffer_get_pattern_entries  (GtkSourceBuffer *buffer);
GList           *gtk_source_buffer_get_embedded_entries (GtkSourceBuffer *buffer);

/* Utility methods. */
gchar           *gtk_source_buffer_convert_to_html    (GtkSourceBuffer *buffer,
						       const gchar     *title);
gboolean         gtk_source_buffer_find_bracket_match (GtkTextIter     *orig);

/* Undo/redo methods. */
gboolean         gtk_source_buffer_can_undo (const GtkSourceBuffer *buffer);
gboolean         gtk_source_buffer_can_redo (const GtkSourceBuffer *buffer);

void             gtk_source_buffer_undo (GtkSourceBuffer *buffer);
void             gtk_source_buffer_redo (GtkSourceBuffer *buffer);

int              gtk_source_buffer_get_undo_levels (GtkSourceBuffer *buffer);
void             gtk_source_buffer_set_undo_levels (GtkSourceBuffer *buffer,
						    int              undo_levels);

void             gtk_source_buffer_begin_not_undoable_action (GtkSourceBuffer *buffer);
void             gtk_source_buffer_end_not_undoable_action   (GtkSourceBuffer *buffer);

/* Line marker methods. */
void             gtk_source_buffer_line_add_marker     (GtkSourceBuffer *buffer,
							gint             line,
							const gchar     *marker);
void             gtk_source_buffer_line_set_marker     (GtkSourceBuffer *buffer,
							gint             line,
							const gchar     *marker);
gboolean         gtk_source_buffer_line_remove_marker  (GtkSourceBuffer *buffer,
							gint             line,
							const gchar     *marker);
const GList     *gtk_source_buffer_line_get_markers    (GtkSourceBuffer *buffer,
							gint             line);
gint             gtk_source_buffer_line_has_markers    (GtkSourceBuffer *buffer,
							gint             line);
gint             gtk_source_buffer_line_remove_markers (GtkSourceBuffer *buffer,
							gint             line);
GList           *gtk_source_buffer_get_all_markers     (GtkSourceBuffer *buffer);
gint             gtk_source_buffer_remove_all_markers  (GtkSourceBuffer *buffer,
							gint             line_start,
							gint             line_end);

/* IO utility methods. */
gboolean         gtk_source_buffer_load (GtkSourceBuffer *buffer,
					 const gchar     *filename,
					GError**error);
gboolean         gtk_source_buffer_save (GtkSourceBuffer *buffer,
					 const gchar     *filename,
					GError**error);
gboolean         gtk_source_buffer_load_with_character_encoding (GtkSourceBuffer *buffer,
								 const gchar     *filename,
								 const gchar     *encoding, 
								GError**error);
gboolean         gtk_source_buffer_save_with_character_encoding (GtkSourceBuffer *buffer,
								 const gchar     *filename,
								 const gchar     *encoding, 
								GError **error);

G_END_DECLS

#endif /* __GTK_SOURCE_BUFFER_H__ */