]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/strconv.cpp
wxVariant and wxVariantData are ref counted too (patch 1624344)
[wxWidgets.git] / src / common / strconv.cpp
index 95ef4240421423b71948f04911ffcdd85067e4ad..f442e54dcd595e15998e5e0a67473c55e0e07b04 100644 (file)
@@ -3518,6 +3518,30 @@ void wxCSConv::CreateConvIfNeeded() const
     }
 }
 
+size_t wxCSConv::ToWChar(wchar_t *dst, size_t dstLen,
+                         const char *src, size_t srcLen) const
+{
+    CreateConvIfNeeded();
+
+    if (m_convReal)
+        return m_convReal->ToWChar(dst, dstLen, src, srcLen);
+
+    // latin-1 (direct)
+    return wxMBConv::ToWChar(dst, dstLen, src, srcLen);
+}
+
+size_t wxCSConv::FromWChar(char *dst, size_t dstLen,
+                           const wchar_t *src, size_t srcLen) const
+{
+    CreateConvIfNeeded();
+
+    if (m_convReal)
+        return m_convReal->FromWChar(dst, dstLen, src, srcLen);
+
+    // latin-1 (direct)
+    return wxMBConv::FromWChar(dst, dstLen, src, srcLen);
+}
+
 size_t wxCSConv::MB2WC(wchar_t *buf, const char *psz, size_t n) const
 {
     CreateConvIfNeeded();