| The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [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 |