| 265 | } |
| 266 | |
| 267 | std::string escape_string(const std::string& str) { |
| 268 | if(str.size() == 0) return str; |
| 269 | |
| 270 | std::string ret = str; |
| 271 | size_t pos = 0; |
| 272 | for(;;) { |
| 273 | if((pos = ret.find_first_of("\'\"\\", pos)) == std::string::npos) break; |
| 274 | ret.insert(pos, "\\"); |
| 275 | pos += 2; |
| 276 | } |
| 277 | return ret; |
| 278 | } |
| 279 | |
| 280 | std::map<std::string, file_io::FILE_TYPE> get_file_list(const std::string& directory, |
| 281 | const std::string file_extension, |