mirror of
https://github.com/OpenMW/openmw.git
synced 2025-02-21 08:09:41 +00:00
rename getASCII() to getLegacyEnc()
This commit is contained in:
parent
c54750977f
commit
7368e7b655
3 changed files with 3 additions and 3 deletions
|
@ -162,7 +162,7 @@ void ESMWriter::writeHString(const std::string& data)
|
||||||
ptr[data.size()] = '\0';
|
ptr[data.size()] = '\0';
|
||||||
|
|
||||||
// Convert to UTF8 and return
|
// 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());
|
write(ascii.c_str(), ascii.size());
|
||||||
}
|
}
|
||||||
|
|
|
@ -291,7 +291,7 @@ static void copyFromArray2(const char *arr, char*& chp, char* &out)
|
||||||
*(out++) = ch; // Could not find glyph, just put whatever
|
*(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
|
// Pick translation array
|
||||||
const char *arr;
|
const char *arr;
|
||||||
|
|
|
@ -21,7 +21,7 @@ namespace ToUTF8
|
||||||
// Convert the previously written buffer to UTF8 from the given code
|
// Convert the previously written buffer to UTF8 from the given code
|
||||||
// page.
|
// page.
|
||||||
std::string getUtf8(FromType from);
|
std::string getUtf8(FromType from);
|
||||||
std::string getASCII(FromType to);
|
std::string getLegacyEnc(FromType to);
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in a new issue