equal
deleted
inserted
replaced
17 |
17 |
18 |
18 |
19 #include <iostream> |
19 #include <iostream> |
20 #include <sstream> |
20 #include <sstream> |
21 #include <vector> |
21 #include <vector> |
22 |
|
23 #include <string.h> |
22 #include <string.h> |
|
23 #include <cstdio> |
24 |
24 |
25 #include "logger.h" |
25 #include "logger.h" |
26 #include "javainifileutils.h" |
26 #include "javainifileutils.h" |
27 #include "exceptionbase.h" |
27 #include "exceptionbase.h" |
28 |
28 |
116 { |
116 { |
117 } |
117 } |
118 #endif // RD_JAVA_INI_FILE_ACCESS_IN_USE |
118 #endif // RD_JAVA_INI_FILE_ACCESS_IN_USE |
119 |
119 |
120 |
120 |
121 char* JavaIniFileUtils::getPosition(FileContent& content, const std::string& property) |
121 const char* JavaIniFileUtils::getPosition(FileContent& content, const std::string& property) |
122 { |
122 { |
123 const char* data = content.getContent(); |
123 const char* data = content.getContent(); |
124 if (data) |
124 if (data) |
125 { |
125 { |
126 char* position = strstr(data, property.c_str()); |
126 const char* position = strstr(data, property.c_str()); |
127 if (position) |
127 if (position) |
128 { |
128 { |
129 position += property.length()+2; |
129 position += property.length()+2; |
130 |
130 |
131 return position; |
131 return position; |