From: Vadim Zeitlin Date: Wed, 11 Sep 2002 12:33:01 +0000 (+0000) Subject: src/common/strconv.cpps/wcslen/wxWcslen/g X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/f8d791e0a41f1021a69c3d6320ee6934c0dd7f36?ds=inline src/common/strconv.cpps/wcslen/wxWcslen/g git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@17130 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/common/strconv.cpp b/src/common/strconv.cpp index 964689df5e..dafd61269a 100644 --- a/src/common/strconv.cpp +++ b/src/common/strconv.cpp @@ -692,11 +692,7 @@ size_t IC_CharSet::MB2WC(wchar_t *buf, const char *psz, size_t n) size_t IC_CharSet::WC2MB(char *buf, const wchar_t *psz, size_t n) { -#if defined(__BORLANDC__) && (__BORLANDC__ > 0x530) - size_t inbuf = std::wcslen(psz) * SIZEOF_WCHAR_T; -#else - size_t inbuf = ::wcslen(psz) * SIZEOF_WCHAR_T; -#endif + size_t inbuf = wxWcslen(psz) * SIZEOF_WCHAR_T; size_t outbuf = n; size_t res, cres; @@ -842,13 +838,7 @@ public: size_t WC2MB(char *buf, const wchar_t *psz, size_t WXUNUSED(n)) { -#if ( defined(__BORLANDC__) && (__BORLANDC__ > 0x530) ) \ - || ( defined(__MWERKS__) && defined(__WXMSW__) ) - size_t inbuf = std::wcslen(psz); -#else - // size_t inbuf = ::wcslen(psz); - size_t inbuf = wxWcslen(psz); -#endif + const size_t inbuf = wxWcslen(psz); if (buf) w2m.Convert(psz,buf); @@ -1035,13 +1025,7 @@ size_t wxCSConv::WC2MB(char *buf, const wchar_t *psz, size_t n) const return m_cset->WC2MB(buf, psz, n); // latin-1 (direct) -#if ( defined(__BORLANDC__) && (__BORLANDC__ > 0x530) ) \ - || ( defined(__MWERKS__) && defined(__WXMSW__) ) - size_t len=std::wcslen(psz); -#else - // size_t len=::wcslen(psz); - size_t len = wxWcslen(psz); -#endif + const size_t len = wxWcslen(psz); if (buf) { for (size_t c = 0; c <= len; c++)