mirror of
https://github.com/debauchee/barrier.git
synced 2026-02-09 13:15:33 +08:00
Removed use of mbrtowc, wcrtomb, and mbsinit. Many platforms
didn't support them and the emulated versions were just as good except for a performance problem with excessive locking and unlocking of a mutex. So this also changes IArchString to provide string rather than character conversion so we can lock the mutex once per string rather than once per character.
This commit is contained in:
@@ -15,22 +15,11 @@
|
||||
#include "CArchStringUnix.h"
|
||||
#include <stdio.h>
|
||||
|
||||
#include "CMultibyte.cpp"
|
||||
|
||||
//
|
||||
// CArchStringUnix
|
||||
//
|
||||
|
||||
CArchStringUnix::CArchStringUnix()
|
||||
{
|
||||
initMB();
|
||||
}
|
||||
|
||||
CArchStringUnix::~CArchStringUnix()
|
||||
{
|
||||
cleanMB();
|
||||
}
|
||||
|
||||
#include "CMultibyte.cpp"
|
||||
#include "vsnprintf.cpp"
|
||||
|
||||
IArchString::EWideCharEncoding
|
||||
|
||||
Reference in New Issue
Block a user