diff options
author | Alexander Sulfrian <alexander@sulfrian.net> | 2011-11-08 10:26:04 +0100 |
---|---|---|
committer | Alexander Sulfrian <alexander@sulfrian.net> | 2013-01-05 17:17:49 +0100 |
commit | c1c799117e7076046182e12d71d06e2c9444e9be (patch) | |
tree | 7940de26d0c786134fa103703320bd3efcbba00c /src/utils/text_file.cpp | |
parent | 31ba94d4efa6e3f64ffacf1711438e88d8b3035d (diff) | |
download | usdx-c1c799117e7076046182e12d71d06e2c9444e9be.tar.gz usdx-c1c799117e7076046182e12d71d06e2c9444e9be.tar.xz usdx-c1c799117e7076046182e12d71d06e2c9444e9be.zip |
changed all wstring/wchar_t to string/char
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(); |