This file is indexed.

/usr/include/srchiliteqt/QtColorMap.h is in libsource-highlight-qt4-dev 0.2.2-0ubuntu5.

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
/*
 *  Copyright (C) 2008-2010  Lorenzo Bettini, http://www.lorenzobettini.it
 *  License: See COPYING file that comes with this distribution
 */

#ifndef QTCOLORMAP_H_
#define QTCOLORMAP_H_

#include <map>
#include <string>

namespace srchiliteqt {

/**
 * Map for source-highlight colors into qt colors (actually, into the
 * format #RRGGBB)
 */
class QtColorMap : public std::map<std::string, std::string> {
public:
    QtColorMap();
    ~QtColorMap();

    /**
     * Returns the color associated to the passed string (if the
     * string is already of the shape "#RRGGBB", then it returns the
     * string "#RRGGBB" itself, without the quotes)
     * @param color
     * @return the color associated to the passed string
     */
    std::string getColor(const std::string &color);
};

/**
 * Map for RGB colors (actually, into the
 * format #RRGGBB) into source-highlight colors.  If a map does
 * not exist it simply returns the rgb color.
 *
 * @since 0.2
 */
class QtColorMapRGB : public std::map<std::string, std::string> {
public:
    QtColorMapRGB();
    ~QtColorMapRGB();

    /**
     * Returns the source-highlight color associated to the passed string
     * of the shape "#RRGGBB"; if a mapping does not exist, then it returns the
     * passed string itself). The search is NOT case sensitive.
     * @param color the color in rgb form "#RRGGBB"
     * @return the source-highlight color associated to the passed string, or
     * the passed string if there is no association.
     */
    std::string getColor(const std::string &color);
};

}

#endif /* QTCOLORMAP_H_ */