-// ----------------------------------------------------------------------------
-// static methods (always compiled in)
-// ----------------------------------------------------------------------------
-
-// default type is the native one
-// the native type under Mac OS X is:
-// - Unix when compiling with the Apple Developer Tools (__UNIX__)
-// - Mac when compiling with CodeWarrior (__WXMAC__)
-
-const wxTextFileType wxTextFile::typeDefault =
-#if defined(__WINDOWS__)
- wxTextFileType_Dos;
-#elif defined(__UNIX__)
- wxTextFileType_Unix;
-#elif defined(__WXMAC__)
- wxTextFileType_Mac;
-#elif defined(__WXPM__)
- wxTextFileType_Os2;
-#else
- wxTextFileType_None;
- #error "wxTextFile: unsupported platform."
-#endif
-
-const wxChar *wxTextFile::GetEOL(wxTextFileType type)
-{
- switch ( type ) {
- default:
- wxFAIL_MSG(wxT("bad file type in wxTextFile::GetEOL."));
- // fall through nevertheless - we must return something...
-
- case wxTextFileType_None: return wxT("");
- case wxTextFileType_Unix: return wxT("\n");
- case wxTextFileType_Dos: return wxT("\r\n");
- case wxTextFileType_Mac: return wxT("\r");
- }
-}
-
-wxString wxTextFile::Translate(const wxString& text, wxTextFileType type)