This file is indexed.

/usr/include/libphylo/ConversionUtils.h is in rate4site 3.0.0-5.

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
//utility class that converts between data types
#ifndef ___ConversionUtils_h
#define ___ConversionUtils_h

#include <sstream>
#include <string>
#include "definitions.h"

using namespace std;

//a function that turns an integer to string 

void appendIntToString (string& ioString, const int inValue);
string appendDouble2string(const double x, int const howManyDigitsAfterTheDot=5);
string appendInt2string(const int x);


// Trims spaces at the left side of a string
static inline string trim_left(const string& str )
{
	int i=str.find_first_not_of(" \t");
	if(str.size()==0 || i >= str.size())
		return str;
	return str.substr( i ) ;
}
 

////
// Trims spaces at the right side of a string
static inline string trim_right(const string& str )
{
	int i=str.find_last_not_of(" \t");
	if(str.size()==0 || i >= str.size())
		return str;
	return str.substr(0, i + 1);
}
  
//// 
// Trims spaces at both sides of a string
static inline string trim(const string& str )
{
	return trim_left(trim_right(str));
}


#endif