The Android Open Source Project | 54b6cfa | 2008-10-21 07:00:00 -0700 | [diff] [blame] | 1 | #ifndef FILE_UTILS_H |
| 2 | #define FILE_UTILS_H |
| 3 | |
| 4 | #include "ValuesFile.h" |
| 5 | #include "Configuration.h" |
| 6 | #include <string> |
| 7 | |
| 8 | using namespace std; |
| 9 | |
| 10 | string translated_file_name(const string& file, const string& locale); |
| 11 | |
| 12 | ValuesFile* get_values_file(const string& filename, const Configuration& configuration, |
| 13 | int version, const string& versionString, bool printOnFailure); |
| 14 | ValuesFile* get_local_values_file(const string& filename, const Configuration& configuration, |
| 15 | int version, const string& versionString, bool printOnFailure); |
| 16 | |
| 17 | void print_file_status(size_t j, size_t J, const string& message = "Reading"); |
| 18 | int write_to_file(const string& filename, const string& text); |
| 19 | |
| 20 | |
| 21 | #endif // FILE_UTILS_H |