This file is indexed.

/usr/include/srchilite/statestartlangelem.h is in libsource-highlight-dev 3.1.6-2ubuntu1.

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
//
// C++ Interface: statestartlangelem
//
// Description:
//
//
// Author: Lorenzo Bettini <http://www.lorenzobettini.it>, (C) 2004
//
// Copyright: See COPYING file that comes with this distribution
//
//
#ifndef STATESTARTLANGELEM_H
#define STATESTARTLANGELEM_H

#include "langelem.h"

namespace srchilite {

class StringDef;
class StateLangElem;

/**
 A language element that may start a new state/environment
 */
class StateStartLangElem: public LangElem {
private:
    /// the exit level
    unsigned int exit;

    /// whether to exit all states
    bool exit_all;

    /// the possible State of which we represent the start.
    StateLangElem *statelangelem;

public:
    /**
     * @param names the element names (one for each subexpression)
     * @param exit whether to exit a number of states (default 0)
     * @param all whether to exit all states
     */
    StateStartLangElem(const std::string &n, unsigned int exit = 0, bool all =
            false);

    virtual ~StateStartLangElem();

    virtual const std::string toString() const;

    /**
     * Sets the "exit" property of this element (i.e., if the element is match
     * then exit one state)
     * @param level the exit level (default to 1)
     */
    void setExit(unsigned int level = 1) {
        exit = level;
    }

    /**
     * Sets the "exit all" property of this element (i.e., if the element is match
     * then exit all states and get back to the main initial state)
     */
    void setExitAll() {
        exit_all = true;
    }

    /**
     * @return whether the "exit" property is set
     */
    bool exitAll() const {
        return exit_all;
    }

    /**
     * @return whether the "exit all" property is set
     */
    unsigned int getExit() const {
        return exit;
    }

    /**
     * @return the state for which this element represents the start
     */
    StateLangElem *getStateLangElem() const {
        return statelangelem;
    }

    /**
     * Sets the state for which this element represents the start
     * @param s the state for which this element represents the start
     */
    void setStateLangElem(StateLangElem *s) {
        statelangelem = s;
    }
};

}

#endif