This file is indexed.

/usr/include/jsonrpccpp/stubgen/helper/cpphelper.h is in libjsonrpccpp-dev 0.7.0-1build2.

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
/*************************************************************************
 * libjson-rpc-cpp
 *************************************************************************
 * @file    cpphelper.h
 * @date    29.09.2013
 * @author  Peter Spiess-Knafl <peter.knafl@gmail.com>
 * @license See attached LICENSE.txt
 ************************************************************************/

#ifndef JSONRPC_CPP_CPPHELPER_H
#define JSONRPC_CPP_CPPHELPER_H

#include <string>
#include <vector>
#include <jsonrpccpp/common/procedure.h>
#include "../codegenerator.h"

namespace jsonrpc
{
    class CPPHelper
    {
        public:
            static std::string normalizeString  (const std::string &text);
            static std::string toCppType        (jsontype_t type, bool isConst = false, bool isReference = false);
            static std::string toCppConversion  (jsontype_t);
            static std::string isCppConversion(jsontype_t);
            static std::string toString         (jsontype_t type);
            static std::string generateParameterDeclarationList(Procedure& proc);

            static std::string toCppReturntype  (jsontype_t type);
            static std::string toCppParamType   (jsontype_t type);

            static std::string class2Filename(const std::string &classname);
            static std::vector<std::string> splitPackages(const std::string &classname);

            static void prolog(CodeGenerator &cg, const std::string &stubname);
            static void epilog(CodeGenerator &cg, const std::string &stubname);

            static int namespaceOpen(CodeGenerator &cg, const std::string &classname);
            static void namespaceClose(CodeGenerator &cg, int depth);

    };
}

#endif // JSONRPC_CPP_CPPSTUBGENERATOR_H