This file is indexed.

/usr/include/opencollada/COLLADABaseUtils/COLLADABUNativeString.h is in opencollada-dev 0.1.0~20160714.0ec5063+dfsg1-2.

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
/*
    Copyright (c) 2008-2009 NetAllied Systems GmbH

    This file is part of COLLADABaseUtils.

    Licensed under the MIT Open Source License, 
    for details please see LICENSE file or the website
    http://www.opensource.org/licenses/mit-license.php
*/

#ifndef __COLLADABU_NATIVESTRING_H__
#define __COLLADABU_NATIVESTRING_H__

#include "COLLADABUPrerequisites.h"


namespace COLLADABU
{

	/** A string class to store strings encoded in the systems native encoding.*/

	class NativeString : public String
	{
	public:
		enum Encoding
		{
			ENCODING_NATIVE,
			ENCODING_UTF8
		};
	public:
		/**Content is initialized to a copy of the string object str.
		If @a encoding is ENCODING_NATIVE, @a str is assumed to be encoded in the platform native encoding.
		If @a encoding is ENCODING_UTF8, @a str is assumed to be encoded in UTF8.*/
		explicit NativeString(const String& str, Encoding encoding = ENCODING_NATIVE);

		NativeString(const WideString& wstr) : String()
		{
			fromWideString(wstr);
		}


		/** Content is initialized to an empty NativeString. */
		explicit NativeString ( );

		/** Content is initialized to a copy of a substring of str. The substring is the portion of 
		str that begins at the character position pos and takes up to n characters (it takes less than 
		n if the end of str is reached before).*/
//		NativeString ( const String& str, size_t pos, size_t n = npos ) : String(str, pos, n){}

		/* Content is initialized to a copy of the string formed by the first n characters in the array 
		of characters pointed by s.*/
//		NativeString ( const char * s, size_t n ) : String(s, n){}

		/** Content is initialized to a copy of the string formed by the null-terminated character sequence 
		(C string) pointed by s. The length of the character sequence is determined by the first occurrence 
		of a null character (as determined by traits.length(s)). This version can be used to initialize a
		string object using a string literal constant.*/
		explicit NativeString ( const char * s, Encoding encoding = ENCODING_NATIVE);

		/** Content is initialized as a string formed by a repetition of character c, n times.*/
//		NativeString ( size_t n, char c ) : String(n, c){}

		/**If InputIterator is an integral type, behaves as the sixth constructor version (the one right above 
		this) by typecasting begin and end to call it:
		string(static_cast<size_t>(begin),static_cast<char>(end));
		In any other case, the parameters are taken as iterators, and the content is initialized with the values 
		of the elements that go from the element referred by iterator begin to the element right before the one 
		referred by iterator end.
		*/
		template<class InputIterator> 
		NativeString (InputIterator begin, InputIterator end) : String(begin, end) {}

		/** Returns the string as unicode encoded wide string.*/
		WideString toWideString()const;

		/** Returns the string as utf encoded string.*/
		String toUtf8String() const;


	private:
		void fromWideString(const WideString& wstr);
	};

}


#endif //__COLLADABU_NATIVESTRING_H__