- // (which is always supposed to be NUL-terminated)
- virtual size_t MB2WC(wchar_t *buf, const char *psz, size_t n) const = 0;
- virtual size_t WC2MB(char *buf, const wchar_t *psz, size_t n) const = 0;
+ // (the latter is always supposed to be NUL-terminated)
+ virtual size_t MB2WC(wchar_t *outputBuf, const char *psz, size_t outputSize) const = 0;
+ virtual size_t WC2MB(char *outputBuf, const wchar_t *psz, size_t outputSize) const = 0;