Unicodification of wxTempFile

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@11313 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Václav Slavík 2001-08-06 22:40:09 +00:00
parent 6dabdbb43a
commit 1facd32a75
3 changed files with 12 additions and 4 deletions

View File

@ -278,10 +278,13 @@ the number of bytes actually written
\membersection{wxFile::Write}\label{wxfilewrites}
\func{bool}{Write}{\param{const wxString\& }{s}}
\func{bool}{Write}{\param{const wxString\& }{s}, \param{wxMBConv&}{ conv = wxConvLibc}}
Writes the contents of the string to the file, returns TRUE on success.
The second argument specifies is only meaningful in Unicode build of wxWindows when
{\it conv} is used to convert {\it s} to multibyte representation.
\section{\class{wxFFile}}\label{wxffile}
wxFFile implements buffered file I/O. This is a very small class designed to
@ -476,7 +479,9 @@ Number of bytes written.
\membersection{wxFFile::Write}\label{wxffilewrites}
\func{bool}{Write}{\param{const wxString\& }{s}}
\func{bool}{Write}{\param{const wxString\& }{s}, \param{wxMBConv&}{ conv = wxConvLibc}}
Writes the contents of the string to the file, returns TRUE on success.
The second argument specifies is only meaningful in Unicode build of wxWindows when
{\it conv} is used to convert {\it s} to multibyte representation.

View File

@ -81,10 +81,13 @@ Write to the file, return TRUE on success, FALSE on failure.
\membersection{wxTempFile::Write}\label{wxtempfilewrites}
\func{bool}{Write}{\param{const wxString\& }{str}}
\func{bool}{Write}{\param{const wxString\& }{str}, \param{wxMBConv&}{ conv = wxConvLibc}}
Write to the file, return TRUE on success, FALSE on failure.
The second argument specifies is only meaningful in Unicode build of wxWindows when
{\it conv} is used to convert {\it str} to multibyte representation.
\membersection{wxTempFile::Commit}\label{wxtempfilecommit}
\func{bool}{Commit}{\void}

View File

@ -164,7 +164,7 @@ public:
// I/O (both functions return true on success, false on failure)
bool Write(const void *p, size_t n) { return m_file.Write(p, n) != 0; }
bool Write(const wxString& str) { return m_file.Write(str); }
bool Write(const wxString& str, wxMBConv& conv = wxConvLibc) { return m_file.Write(str, conv); }
// different ways to close the file
// validate changes and delete the old file of name m_strName