From 7368e7b6550d4a6a0fc124cbcc6e3e79eba4bd16 Mon Sep 17 00:00:00 2001 From: greye Date: Sun, 23 Sep 2012 22:20:18 +0400 Subject: [PATCH] rename getASCII() to getLegacyEnc() --- components/esm/esm_writer.cpp | 2 +- components/to_utf8/to_utf8.cpp | 2 +- components/to_utf8/to_utf8.hpp | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/components/esm/esm_writer.cpp b/components/esm/esm_writer.cpp index 5bb9e286d5..113f31ae98 100644 --- a/components/esm/esm_writer.cpp +++ b/components/esm/esm_writer.cpp @@ -162,7 +162,7 @@ void ESMWriter::writeHString(const std::string& data) ptr[data.size()] = '\0'; // Convert to UTF8 and return - std::string ascii = ToUTF8::getASCII(m_encoding); + std::string ascii = ToUTF8::getLegacyEnc(m_encoding); write(ascii.c_str(), ascii.size()); } diff --git a/components/to_utf8/to_utf8.cpp b/components/to_utf8/to_utf8.cpp index 0c7ea388e3..6f0ed8bfdc 100644 --- a/components/to_utf8/to_utf8.cpp +++ b/components/to_utf8/to_utf8.cpp @@ -291,7 +291,7 @@ static void copyFromArray2(const char *arr, char*& chp, char* &out) *(out++) = ch; // Could not find glyph, just put whatever } -std::string ToUTF8::getASCII(ToUTF8::FromType to) +std::string ToUTF8::getLegacyEnc(ToUTF8::FromType to) { // Pick translation array const char *arr; diff --git a/components/to_utf8/to_utf8.hpp b/components/to_utf8/to_utf8.hpp index 1a6a077be9..69e9fc92c3 100644 --- a/components/to_utf8/to_utf8.hpp +++ b/components/to_utf8/to_utf8.hpp @@ -21,7 +21,7 @@ namespace ToUTF8 // Convert the previously written buffer to UTF8 from the given code // page. std::string getUtf8(FromType from); - std::string getASCII(FromType to); + std::string getLegacyEnc(FromType to); } #endif