From: Vadim Zeitlin Date: Wed, 3 Feb 1999 19:11:02 +0000 (+0000) Subject: Before/After => BeforeFirst/AfterFirst (corrects some minor bugs) X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/ec4768ef9aa3bb559b007a8c72b46cabd9d2d1e6?ds=sidebyside Before/After => BeforeFirst/AfterFirst (corrects some minor bugs) git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1582 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/common/mimetype.cpp b/src/common/mimetype.cpp index 513c35b3fc..74fc490dfa 100644 --- a/src/common/mimetype.cpp +++ b/src/common/mimetype.cpp @@ -170,7 +170,7 @@ public: // * compose and composetyped fields are used to determine the program to be // called to create a new message pert in the specified format (unused). // -// Parameter/filename xpansion: +// Parameter/filename xpansion: // * %s is replaced with the (full) file name // * %t is replaced with MIME type/subtype of the entry // * for multipart type only %n is replaced with the nnumber of parts and %F is @@ -189,7 +189,7 @@ public: // comments. Each record has one of two following forms: // a) for "brief" format: // -// b) for "expanded" format: +// b) for "expanded" format: // type= \ desc="" \ exts="ext" // // We try to autodetect the format of mime.types: if a non-comment line starts @@ -804,11 +804,11 @@ wxMimeTypesManagerImpl::GetFileTypeFromExtension(const wxString& ext) extensions = extensions.AfterFirst(' '); // consider extensions as not being case-sensitive - if ( field.IsSameAs(ext, FALSE /* no case */) ) { + if ( field.IsSameAs(ext, FALSE /* no case */) ) { // found wxFileType *fileType = new wxFileType; fileType->m_impl->Init(this, n); - + return fileType; } } @@ -1094,8 +1094,8 @@ void wxMimeTypesManagerImpl::ReadMailcap(const wxString& strFileName) // is this something of the form foo=bar? const char *pEq = strchr(curField, '='); if ( pEq != NULL ) { - wxString lhs = curField.Before('='), - rhs = curField.After('='); + wxString lhs = curField.BeforeFirst('='), + rhs = curField.AfterFirst('='); lhs.Trim(TRUE); // from right rhs.Trim(FALSE); // from left @@ -1143,7 +1143,9 @@ void wxMimeTypesManagerImpl::ReadMailcap(const wxString& strFileName) { // don't flood the user with error messages // if we don't understand something in his - // mailcap + // mailcap, but give them in debug mode + // because this might be useful for the + // programmer wxLogDebug ( _("Mailcap file %s, line %d: unknown "