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