Link Here
|
1 |
--- src/FDM/JSBSim/input_output/string_utilities.h.orig 2014-03-12 18:30:00.000000000 +0100 |
1 |
--- src/FDM/JSBSim/input_output/string_utilities.h.orig 2014-08-17 19:40:24.000000000 +0600 |
2 |
+++ src/FDM/JSBSim/input_output/string_utilities.h 2014-03-12 18:31:18.000000000 +0100 |
2 |
+++ src/FDM/JSBSim/input_output/string_utilities.h |
3 |
@@ -73,9 +73,11 @@ |
3 |
@@ -166,6 +166,7 @@ |
4 |
extern bool is_number(const std::string& str); |
|
|
5 |
std::vector <std::string> split(std::string str, char d); |
6 |
/* Comment out to_string functions when they are defined already - C++ 11 defines these */ |
7 |
+/* |
8 |
extern std::string to_string(int); |
9 |
extern std::string to_string(double); |
10 |
extern std::string to_string(float); |
11 |
+*/ |
12 |
extern std::string replace(std::string str, const std::string& old, const std::string& newstr); |
13 |
#else |
14 |
#include <cctype> |
15 |
@@ -159,6 +161,7 @@ |
16 |
return str_array; |
4 |
return str_array; |
17 |
} |
5 |
} |
18 |
/* Comment out to_string functions when they are defined already - C++ 11 defines these */ |
6 |
/* Comment out to_string functions when they are defined already - C++ 11 defines these */ |
Link Here
|
20 |
string to_string(int i) |
8 |
string to_string(int i) |
21 |
{ |
9 |
{ |
22 |
char buffer[32]; |
10 |
char buffer[32]; |
23 |
@@ -179,6 +182,7 @@ |
11 |
@@ -186,6 +187,7 @@ |
24 |
if (!(o << x)) cerr << "Bad double to string conversion" << endl; |
12 |
if (!(o << x)) cerr << "Bad double to string conversion" << endl; |
25 |
return o.str(); |
13 |
return o.str(); |
26 |
} |
14 |
} |