Move both wxMBConv::cXX2YY() overloads together
No real changes, just group the overloads in a more logical way.
This commit is contained in:
@@ -77,6 +77,10 @@ public:
|
|||||||
const wxWCharBuffer cMB2WC(const char *in) const;
|
const wxWCharBuffer cMB2WC(const char *in) const;
|
||||||
const wxCharBuffer cWC2MB(const wchar_t *in) const;
|
const wxCharBuffer cWC2MB(const wchar_t *in) const;
|
||||||
|
|
||||||
|
const wxWCharBuffer cMB2WC(const wxScopedCharBuffer& in) const;
|
||||||
|
const wxCharBuffer cWC2MB(const wxScopedWCharBuffer& in) const;
|
||||||
|
|
||||||
|
|
||||||
// Convenience functions for converting strings which may contain embedded
|
// Convenience functions for converting strings which may contain embedded
|
||||||
// NULs and don't have to be NUL-terminated.
|
// NULs and don't have to be NUL-terminated.
|
||||||
//
|
//
|
||||||
@@ -97,12 +101,6 @@ public:
|
|||||||
const wxCharBuffer
|
const wxCharBuffer
|
||||||
cWC2MB(const wchar_t *in, size_t inLen, size_t *outLen) const;
|
cWC2MB(const wchar_t *in, size_t inLen, size_t *outLen) const;
|
||||||
|
|
||||||
// And yet more convenience functions for converting the entire buffers:
|
|
||||||
// these are the simplest and least error-prone as you never need to bother
|
|
||||||
// with lengths/sizes directly.
|
|
||||||
const wxWCharBuffer cMB2WC(const wxScopedCharBuffer& in) const;
|
|
||||||
const wxCharBuffer cWC2MB(const wxScopedWCharBuffer& in) const;
|
|
||||||
|
|
||||||
// convenience functions for converting MB or WC to/from wxWin default
|
// convenience functions for converting MB or WC to/from wxWin default
|
||||||
#if wxUSE_UNICODE
|
#if wxUSE_UNICODE
|
||||||
const wxWCharBuffer cMB2WX(const char *psz) const { return cMB2WC(psz); }
|
const wxWCharBuffer cMB2WX(const char *psz) const { return cMB2WC(psz); }
|
||||||
|
Reference in New Issue
Block a user