This file is indexed.

/usr/include/gtksourceviewmm-3.0/gtksourceviewmm/markup.h is in libgtksourceviewmm-3.0-dev 3.2.0-1ubuntu1.

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
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
#ifndef _GTKSOURCEVIEWMM_MARKUP_H
#define _GTKSOURCEVIEWMM_MARKUP_H

/* markup.h
 *
 * Based on Gtk::StockID.
 *
 * Copyright (C) 2009, 2010 Krzesimir Nowak
 *
 * This library 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.
 *
 * This library 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
 * Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public
 * License along with this library; if not, write to the Free
 * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
 */

#include <glibmm/ustring.h>
#include <glibmm/containerhandle_shared.h>

namespace Gsv
{
/** It is just a class holding markup string.
 *
 * This class exists because now nice constructor overload could be used in some
 * places.
 *
 * @newin{2,10}
 */
class Markup
{
public:
  /** Creates empty Markup.
   *
   * @return A new Markup.
   *
   * @newin{2,10}
   */
  Markup();

  /** Creates Markup containing text from @a markup.
   *
   * @param markup A markup string.
   *
   * @return A new Markup.
   *
   * @newin{2,10}
   */
  explicit Markup(const Glib::ustring& markup);

  /** Creates Markup containing text from @a markup.
   *
   * @param markup A markup C string.
   *
   * @return A new Markup.
   *
   * @newin{2,10}
   */
  explicit Markup(const char* markup);

  ~Markup();

  /** Creates Markup containing text from @a other Markup.
   *
   * @param other Other Markup.
   *
   * @return A new Markup.
   *
   * @newin{2,10}
   */
  Markup(const Markup& other);

  /** Assigns contents of @a other Markup to this one.
   *
   * @param other Other Markup.
   *
   * @return This Markup.
   *
   * @newin{2,10}
   */
  Markup& operator=(const Markup& other);

  /** This typedef is just to make it more obvious that
   * our operator const void*() should be used like operator bool().
   */
  typedef const void* BoolExpr;

  /** Checks if Markup is not empty.
   * For instance,
   * @code
   * if(markup)
   *   do_something()
   * @endcode
   *
   * @return @c true if Markup is not empty, otherwise @c false.
   *
   * @newin{2,10}
   */
  operator BoolExpr() const;

  /** Checks if @a other Markup is the same as this one.
   *
   * @param other Other Markup.
   *
   * @return @c true if both this and @a other Markup are equal.
   *
   * @newin{2,10}
   */
  bool equal(const Markup& other) const;

  /** Get the string representation of the Markup.
   *
   * @return A string holding markup.
   *
   * @newin{2,10}
   */
  Glib::ustring get_string() const;

  /** Get the C string representation of the Markup.
   *
   * @return A C string holding markup.
   *
   * @newin{2,10}
   */
  const char* get_c_str()  const;

protected:
  Glib::ustring markup_;
};

/** See Markup::equal()
 *
 * @param lhs First Markup to compare.
 * @param rhs Second Markup to compare.
 *
 * @return Whether @a lhs is different from @a rhs.
 *
 * @relates Gsv::Markup
 *
 * @newin{2,10}
 */
inline bool operator==(const Markup& lhs, const Markup& rhs)
  { return lhs.equal(rhs); }

/** See Markup::equal()
 *
 * @param lhs First Markup to compare.
 * @param rhs Second Markup to compare.
 *
 * @return Whether @a lhs is different from @a rhs.
 *
 * @relates Gsv::Markup
 *
 * @newin{2,10}
 */
inline bool operator!=(const Markup& lhs, const Markup& rhs)
  { return !lhs.equal(rhs); }


#ifndef DOXYGEN_SHOULD_SKIP_THIS

struct SourceMarkup_Traits : public Glib::Container_Helpers::TypeTraits<Glib::ustring>
{
  typedef Gsv::Markup CppType;

  static const char* to_c_type(const Markup& markup) { return markup.get_c_str(); }
  static Markup     to_cpp_type(const char* str)     { return Markup(str);   }
};

#endif /* DOXYGEN_SHOULD_SKIP_THIS */

} // namespace Gsv


#ifndef DOXYGEN_SHOULD_SKIP_THIS

namespace Glib
{

template <>
class Value<Gsv::Markup> : public Glib::ValueBase_String
{
public:
  typedef Gsv::Markup CppType;

  void set(const Gsv::Markup& data) { set_cstring(data.get_c_str());      }
  Gsv::Markup get() const           { return Gsv::Markup(get_cstring()); }
};

} // namespace Glib

#endif // DOXYGEN_SHOULD_SKIP_THIS

#endif // _GTKSOURCEVIEWMM_MARKUP_H