diff options
author | The Android Open Source Project <initial-contribution@android.com> | 2009-03-03 19:31:44 -0800 |
---|---|---|
committer | The Android Open Source Project <initial-contribution@android.com> | 2009-03-03 19:31:44 -0800 |
commit | 9066cfe9886ac131c34d59ed0e2d287b0e3c0087 (patch) | |
tree | d88beb88001f2482911e3d28e43833b50e4b4e97 /tools/localize/file_utils.h | |
parent | d83a98f4ce9cfa908f5c54bbd70f03eec07e7553 (diff) | |
download | frameworks_base-9066cfe9886ac131c34d59ed0e2d287b0e3c0087.zip frameworks_base-9066cfe9886ac131c34d59ed0e2d287b0e3c0087.tar.gz frameworks_base-9066cfe9886ac131c34d59ed0e2d287b0e3c0087.tar.bz2 |
auto import from //depot/cupcake/@135843
Diffstat (limited to 'tools/localize/file_utils.h')
-rw-r--r-- | tools/localize/file_utils.h | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/tools/localize/file_utils.h b/tools/localize/file_utils.h new file mode 100644 index 0000000..3b3fa21 --- /dev/null +++ b/tools/localize/file_utils.h @@ -0,0 +1,21 @@ +#ifndef FILE_UTILS_H +#define FILE_UTILS_H + +#include "ValuesFile.h" +#include "Configuration.h" +#include <string> + +using namespace std; + +string translated_file_name(const string& file, const string& locale); + +ValuesFile* get_values_file(const string& filename, const Configuration& configuration, + int version, const string& versionString, bool printOnFailure); +ValuesFile* get_local_values_file(const string& filename, const Configuration& configuration, + int version, const string& versionString, bool printOnFailure); + +void print_file_status(size_t j, size_t J, const string& message = "Reading"); +int write_to_file(const string& filename, const string& text); + + +#endif // FILE_UTILS_H |