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> |
Scott Tsai | 8a2b908 | 2009-03-21 08:08:36 +0800 | [diff] [blame] | 7 | #include <cstdio> |
The Android Open Source Project | 54b6cfa | 2008-10-21 07:00:00 -0700 | [diff] [blame] | 8 | |
| 9 | using namespace std; |
| 10 | |
| 11 | string translated_file_name(const string& file, const string& locale); |
| 12 | |
| 13 | ValuesFile* get_values_file(const string& filename, const Configuration& configuration, |
| 14 | int version, const string& versionString, bool printOnFailure); |
| 15 | ValuesFile* get_local_values_file(const string& filename, const Configuration& configuration, |
| 16 | int version, const string& versionString, bool printOnFailure); |
| 17 | |
| 18 | void print_file_status(size_t j, size_t J, const string& message = "Reading"); |
| 19 | int write_to_file(const string& filename, const string& text); |
| 20 | |
| 21 | |
| 22 | #endif // FILE_UTILS_H |