Various fixes.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1047 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -232,3 +232,18 @@ bool wxTextFile::Write(Type typeNew)
|
||||
// replace the old file with this one
|
||||
return fileTmp.Commit();
|
||||
}
|
||||
|
||||
const char *wxTextFile::GetEOL(Type type)
|
||||
{
|
||||
switch ( type ) {
|
||||
case Type_None: return "";
|
||||
case Type_Unix: return "\n";
|
||||
case Type_Dos: return "\r\n";
|
||||
case Type_Mac: return "\r";
|
||||
|
||||
default:
|
||||
wxFAIL_MSG("bad file type in wxTextFile::GetEOL.");
|
||||
return (const char *) NULL;
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user