blob: 77065876e6b4d01c6735e094478903bb757c33da [file] [log] [blame]
The Android Open Source Project54b6cfa2008-10-21 07:00:00 -07001#ifndef FILE_UTILS_H
2#define FILE_UTILS_H
3
4#include "ValuesFile.h"
5#include "Configuration.h"
6#include <string>
Scott Tsai8a2b9082009-03-21 08:08:36 +08007#include <cstdio>
The Android Open Source Project54b6cfa2008-10-21 07:00:00 -07008
9using namespace std;
10
11string translated_file_name(const string& file, const string& locale);
12
13ValuesFile* get_values_file(const string& filename, const Configuration& configuration,
14 int version, const string& versionString, bool printOnFailure);
15ValuesFile* get_local_values_file(const string& filename, const Configuration& configuration,
16 int version, const string& versionString, bool printOnFailure);
17
18void print_file_status(size_t j, size_t J, const string& message = "Reading");
19int write_to_file(const string& filename, const string& text);
20
21
22#endif // FILE_UTILS_H