This file is indexed.

/usr/include/htmlcxx/html/utils.h is in libhtmlcxx-dev 0.85-3.

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
#ifndef __HTML_UTILS_H__
#define __HTML_UTILS_H__

#include "tree.h"
#include "Node.h"

namespace htmlcxx {

	class Uri;
	
	namespace HTML {

		/** Tries to detect if the buffer is encoded as utf8 */
		bool detect_utf8(const char *buf, int size);

		/** Trim the argument string at both end and convert sibling blanks
		 * into a single space */
		std::string single_blank(const std::string& str);

		/** Remove html comments from the string */
		std::string strip_comments(const std::string& str);
		
		/** Convert html entities into their ISO8859-1 equivalents */
		std::string decode_entities(const std::string& str);
		
		/** Get the value of an attribute inside the text of a tag 
		  * @return empty string if the attribute is not found, or the value of 
 		  * the attribute
		  */
		std::string get_attribute(const std::string& tag, const std::string& attr);

		/** Create absolute url for a link */
		std::string convert_link(const std::string &relative, const Uri &root);

		/** Create a gml representation of the tree for input of tools like graphviz */
		std::string serialize_gml(const tree<HTML::Node> &tr); 
	}
}

#endif