mirror of
https://github.com/debauchee/barrier.git
synced 2026-11-24 21:02:05 +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:
@@ -28,12 +28,10 @@ public:
|
||||
// IArchString overrides
|
||||
virtual int vsnprintf(char* str,
|
||||
int size, const char* fmt, va_list ap);
|
||||
virtual CArchMBState newMBState();
|
||||
virtual void closeMBState(CArchMBState);
|
||||
virtual void initMBState(CArchMBState);
|
||||
virtual bool isInitMBState(CArchMBState);
|
||||
virtual int convMBToWC(wchar_t*, const char*, int, CArchMBState);
|
||||
virtual int convWCToMB(char*, wchar_t, CArchMBState);
|
||||
virtual int convStringMBToWC(wchar_t*,
|
||||
const char*, UInt32 n, bool* errors);
|
||||
virtual int convStringWCToMB(char*,
|
||||
const wchar_t*, UInt32 n, bool* errors);
|
||||
virtual EWideCharEncoding
|
||||
getWideCharEncoding();
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user