This file is indexed.

/usr/include/htdig/HtRegexReplace.h is in htdig 1:3.2.0b6-12.

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
//
// HtRegexReplace.h
//
// HtRegexReplace: A subclass of HtRegex that can perform replacements
//
// Part of the ht://Dig package   <http://www.htdig.org/>
// Copyright (c) 2000-2004 The ht://Dig Group
// For copyright details, see the file COPYING in your distribution
// or the GNU Library General Public License (LGPL) version 2 or later
// <http://www.gnu.org/copyleft/lgpl.html>
//
// $Id: HtRegexReplace.h,v 1.4 2004/05/28 13:15:21 lha Exp $
//

#ifndef	_HtRegexReplace_h_
#define	_HtRegexReplace_h_

#ifdef HAVE_CONFIG_H
#include "htconfig.h"
#endif /* HAVE_CONFIG_H */

#include "HtRegex.h"

class HtRegexReplace : public HtRegex
{
public:
    //
    // Construction/Destruction
    //
    HtRegexReplace();
    HtRegexReplace(const char *from, const char *to, int case_sensitive = 0);
    virtual ~HtRegexReplace();

    //
    // Methods for setting the replacement pattern
    //
	void	setReplace(const String& str) { setReplace(str.get()); }
	void	setReplace(const char *str);

    //
    // Methods for replacing
    //
    int		replace(String &str, int nullpattern = 0, int nullstr = 0);

protected:
	char	*repBuf;      // Replace text.
	size_t	segSize, segUsed;
	int		*segMark;
	size_t	repLen;

    regmatch_t		regs[10];

	// Various private methods
	void putMark(int n);
	void empty();
};

#endif