This file is indexed.

/usr/include/xalanc/XalanEXSLT/XalanEXSLTCommonImpl.hpp is in libxalan110-dev 1.10-6.

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
202
203
204
205
206
207
208
209
210
/*
 * Copyright 1999-2004 The Apache Software Foundation.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
#if !defined(EXSLT_COMMONIMPL_HEADER_GUARD_1357924680)
#define EXSLT_COMMONIMPL_HEADER_GUARD_1357924680



#include "XalanEXSLTDefinitions.hpp"



#include <xalanc/PlatformSupport/XalanMessageLoader.hpp>



#include <xalanc/XPath/Function.hpp>



#include <xalanc/XalanExtensions/FunctionNodeSet.hpp>



XALAN_CPP_NAMESPACE_BEGIN



class XALAN_EXSLT_EXPORT XalanEXSLTFunctionNodeSet : public FunctionNodeSet
{
public:

    XalanEXSLTFunctionNodeSet() :
        FunctionNodeSet(true)
    {
    }

    virtual
    ~XalanEXSLTFunctionNodeSet()
    {
    }

#if defined(XALAN_NO_COVARIANT_RETURN_TYPE)
    virtual Function*
#else
    virtual XalanEXSLTFunctionNodeSet*
#endif
    clone(MemoryManagerType& theManager) const
    {
        return XalanCopyConstruct(theManager, *this);
    }

protected:

    virtual const XalanDOMString&
    getError(XalanDOMString&    theBuffer) const
    {
        XalanMessageLoader::getMessage(
            theBuffer,
            XalanMessages::EXSLTFunctionAcceptsOneArgument_1Param,
            "node-set()");

        return theBuffer;
    }


    virtual const XalanDOMString&
    getInvalidArgumentTypeError(XalanDOMString& theResult) const 
    {
         XalanMessageLoader::getMessage(
             theResult,
             XalanMessages::InvalidArgumentType_1Param,
             "node-set()");
         
         return theResult;
    }

private:

    // Not implemented...
    XalanEXSLTFunctionNodeSet&
    operator=(const XalanEXSLTFunctionNodeSet&);

    bool
    operator==(const XalanEXSLTFunctionNodeSet&) const;
};



class XALAN_EXSLT_EXPORT XalanEXSLTFunctionObjectType : public Function
{
public:

    typedef Function    ParentType;

    XalanEXSLTFunctionObjectType(MemoryManagerType& theManager) :
        Function(),
        m_boolean(s_booleanString, theManager),
        m_external(s_externalString, theManager),
        m_nodeSet(s_nodeSetString, theManager),
        m_number(s_numberString, theManager),
        m_rtf(s_rtfString, theManager),
        m_string(s_stringString, theManager)
    {
    }

    // A dummy constructor for use internally.  Do not use this one!!!!
    XalanEXSLTFunctionObjectType(MemoryManagerType& theManager, int /* theDummy */) :
        Function(),
        m_boolean(theManager),
        m_external(theManager),
        m_nodeSet(theManager),
        m_number(theManager),
        m_rtf(theManager),
        m_string(theManager)
    {
    }

    virtual
    ~XalanEXSLTFunctionObjectType()
    {
    }

    // These methods are inherited from Function ...

    virtual XObjectPtr
    execute(
            XPathExecutionContext&          executionContext,
            XalanNode*                      context,
            const XObjectArgVectorType&     args,
            const LocatorType*              locator) const;

#if !defined(XALAN_NO_USING_DECLARATION)
    using ParentType::execute;
#endif

#if defined(XALAN_NO_COVARIANT_RETURN_TYPE)
    virtual Function*
#else
    virtual XalanEXSLTFunctionObjectType*
#endif
    clone(MemoryManagerType& theManager) const
    {
        typedef  XalanEXSLTFunctionObjectType Type;

        XalanMemMgrAutoPtr<Type, false> theGuard( theManager , (Type*)theManager.allocate(sizeof(Type)));

        Type* theResult = theGuard.get();

        new (theResult) Type(theManager);

         theGuard.release();

        return theResult;
    }

protected:



    const XalanDOMString&
    getError(XalanDOMString& theResult) const;

private:

    // Not implemented...
    XalanEXSLTFunctionObjectType(const XalanEXSLTFunctionObjectType&);

    XalanEXSLTFunctionObjectType&
    operator=(const XalanEXSLTFunctionObjectType&);

    bool
    operator==(const XalanEXSLTFunctionObjectType&) const;


    // Data members...
    const XalanDOMString    m_boolean;
    const XalanDOMString    m_external;
    const XalanDOMString    m_nodeSet;
    const XalanDOMString    m_number;
    const XalanDOMString    m_rtf;
    const XalanDOMString    m_string;

    static const XalanDOMChar   s_booleanString[];
    static const XalanDOMChar   s_externalString[];
    static const XalanDOMChar   s_nodeSetString[];
    static const XalanDOMChar   s_numberString[];
    static const XalanDOMChar   s_rtfString[];
    static const XalanDOMChar   s_stringString[];
};



XALAN_CPP_NAMESPACE_END



#endif  // EXSLT_COMMONIMPL_HEADER_GUARD_1357924680