]> git.saurik.com Git - wxWidgets.git/commitdiff
added wxMBConv argument to char_str()
authorVáclav Slavík <vslavik@fastmail.fm>
Mon, 16 Apr 2007 11:04:35 +0000 (11:04 +0000)
committerVáclav Slavík <vslavik@fastmail.fm>
Mon, 16 Apr 2007 11:04:35 +0000 (11:04 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45496 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

docs/latex/wx/wxstring.tex
include/wx/string.h

index 445d0058f76da121cf7ee5235799b5c4d1b611f2..544bd558212e1904fd283bfe2f83e5f87d8476a6 100644 (file)
@@ -586,7 +586,7 @@ to a function expecting non-const pointer.
 
 \membersection{wxString::char\_str}\label{wxstringcharstr}
 
-\constfunc{wxWritableCharBuffer}{char\_str}{\void}
+\constfunc{wxWritableCharBuffer}{char\_str}{\param{wxMBConv\&}{ conv = wxConvLibc}}
 
 Returns an object with string data that is implicitly convertible to
 {\tt char*} pointer. Note that any change to the returned buffer is lost and so
index d60073694c437e1321546d234cde87c56ff8a82c..c24ca6c5b5b808ebfa0912b82a869fcbc5ed7ccd 100644 (file)
@@ -1094,7 +1094,8 @@ public:
     // conversion to *non-const* multibyte or widestring buffer; modifying
     // returned buffer won't affect the string, these methods are only useful
     // for passing values to const-incorrect functions
-    wxWritableCharBuffer char_str() const { return mb_str(); }
+    wxWritableCharBuffer char_str(const wxMBConv& conv = wxConvLibc) const
+        { return mb_str(conv); }
     wxWritableWCharBuffer wchar_str() const { return wc_str(); }
 
     // conversion to/from plain (i.e. 7 bit) ASCII: this is useful for