aboutsummaryrefslogtreecommitdiffstats
path: root/src/utils/text_file.cpp
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/utils/text_file.cpp (renamed from src/utils/unicode_file.cpp)12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/utils/unicode_file.cpp b/src/utils/text_file.cpp
index c47bfd36..b84c667f 100644
--- a/src/utils/unicode_file.cpp
+++ b/src/utils/text_file.cpp
@@ -24,7 +24,7 @@
* $Id$
*/
-#include "unicode_file.hpp"
+#include "text_file.hpp"
#include <string>
#include <locale>
@@ -32,31 +32,31 @@
namespace usdx
{
- UnicodeFile::UnicodeFile(const std::string& filename) : file(filename.c_str(), std::wifstream::in)
+ TextFile::TextFile(const std::string& filename) : file(filename.c_str(), std::ifstream::in)
{
std::locale global_loc = std::locale();
std::locale loc(global_loc, new boost::program_options::detail::utf8_codecvt_facet());
file.imbue(loc);
}
- UnicodeFile::UnicodeFile(const boost::filesystem::wpath& path) : file(path, std::wifstream::in)
+ TextFile::TextFile(const boost::filesystem::wpath& path) : file(path, std::wifstream::in)
{
std::locale global_loc = std::locale();
std::locale loc(global_loc, new boost::program_options::detail::utf8_codecvt_facet());
file.imbue(loc);
}
- UnicodeFile::~UnicodeFile(void)
+ TextFile::~TextFile(void)
{
file.close();
}
- boost::filesystem::wifstream &UnicodeFile::stream(void)
+ boost::filesystem::ifstream &TextFile::stream(void)
{
return file;
}
- const std::streamsize UnicodeFile::get_filesize(void)
+ const std::streamsize TextFile::get_filesize(void)
{
std::streampos position = stream().tellg();