This file is indexed.

/usr/include/flxmlrpc/XmlRpcUtil.h is in libflxmlrpc-dev 0.1.4-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
// ----------------------------------------------------------------------------
//
// flxmlrpc Copyright (c) 2015 by W1HKJ, Dave Freese <iam_w1hkj@w1hkj.com>
//    
// XmlRpc++ Copyright (c) 2002-2008 by Chris Morley
//
// This file is part of fldigi
//
// flxmlrpc 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 3 of the License, or
// (at your option) any later version.
//
// You should have received a copy of the GNU General Public License
// along with this program.  If not, see <http://www.gnu.org/licenses/>.
// ----------------------------------------------------------------------------

#ifndef _XMLRPCUTIL_H_
#define _XMLRPCUTIL_H_
#if defined(_MSC_VER)
# pragma warning(disable:4786)    // identifier was truncated in debug info
#endif

#include <string>

#if defined(_MSC_VER)
# define snprintf	    _snprintf
# define vsnprintf    _vsnprintf
# define strcasecmp	  _stricmp
# define strncasecmp	_strnicmp
#elif defined(__BORLANDC__)
# define strcasecmp stricmp
# define strncasecmp strnicmp
#endif

namespace XmlRpc {

  //! Utilities for XML parsing, encoding, and decoding and message handlers.
  class XmlRpcUtil {
  public:

    //! Parses the specified tag. No attributes are parsed, no validation is done.
    //! Sets val to the contents between <tag> and </tag>, or an empty string if <tag/> is found.
    //! Returns true if the tag is parsed. Updates offset to char after </tag>
    static bool parseTag(const char* tag, std::string const& xml, int* offset, std::string &val);

    //! Returns true if the tag is found and updates offset to the char after the tag.
    //! If the tag is of the form <tag/>, emptyTag is set to true.
    static bool findTag(const char* tag, std::string const& xml, int* offset, bool* emptyTag);

    //! Returns true if the tag is found at the specified offset (modulo any whitespace)
    //! and updates offset to the char after the tag. If an empty tag is found (eg,
    //! <tag/>), true is returned, offset is updated to be after the close of the tag, and
    //! emptyTag is set to true.
    static bool nextTagIs(const char* tag, std::string const& xml, int* offset, bool* emptyTag);

    //! Passes over the next tag found at the specified offset is </tag>, 
    //! offset is updated to be after the close of the tag.
    //! Will skip over all characters until < is seen.
    static bool nextTagIsEnd(const char* tag, std::string const& xml, int* offset);


    //! Convert raw text to encoded xml.
    static std::string xmlEncode(const std::string& raw);

    //! Convert encoded xml to raw text
    static std::string xmlDecode(const std::string& encoded);


    //! Dump messages somewhere
    static void log(int level, const char* fmt, ...);

    //! Dump error messages somewhere
    static void error(const char* fmt, ...);

  };
} // namespace XmlRpc

#endif // _XMLRPCUTIL_H_