+
+const wxChar *wxTextFile::GetEOL(wxTextFileType type)
+ {
+ switch ( type ) {
+ case wxTextFileType_None: return _T("");
+ case wxTextFileType_Unix: return _T("\n");
+ case wxTextFileType_Dos: return _T("\r\n");
+ case wxTextFileType_Mac: return _T("\r");
+
+ default:
+ wxFAIL_MSG(_T("bad file type in wxTextFile::GetEOL."));
+ return (const wxChar *) NULL;
+ }
+ }
+