mirror of
https://github.com/elasota/Aerofoil.git
synced 2025-09-23 06:53:43 +00:00
UTF refactor to eliminate duplicated code outside of PL
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
#include "StringCommon.h"
|
||||
|
||||
#include "MacRomanConversion.h"
|
||||
#include "UTF8.h"
|
||||
#include "GpUnicode.h"
|
||||
|
||||
void StringCommon::ConvertMacRomanFileName(std::vector<uint8_t> &utf8FileName, const uint8_t *macRomanName, size_t macRomanLength)
|
||||
{
|
||||
@@ -9,7 +9,7 @@ void StringCommon::ConvertMacRomanFileName(std::vector<uint8_t> &utf8FileName, c
|
||||
{
|
||||
uint8_t bytes[8];
|
||||
size_t bytesEmitted;
|
||||
PortabilityLayer::UTF8Processor::EncodeCodePoint(bytes, bytesEmitted, MacRoman::ToUnicode(macRomanName[i]));
|
||||
GpUnicode::UTF8::Encode(bytes, bytesEmitted, MacRoman::ToUnicode(macRomanName[i]));
|
||||
|
||||
for (size_t bi = 0; bi < bytesEmitted; bi++)
|
||||
utf8FileName.push_back(bytes[bi]);
|
||||
|
@@ -7,8 +7,7 @@
|
||||
#include "CompactProParser.h"
|
||||
#include "CFileStream.h"
|
||||
|
||||
#include "UTF8.h"
|
||||
#include "UTF16.h"
|
||||
#include "GpUnicode.h"
|
||||
|
||||
#include "ArchiveDescription.h"
|
||||
#include "IDecompressor.h"
|
||||
|
Reference in New Issue
Block a user