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
This commit is contained in:
@@ -1094,8 +1094,8 @@ void wxMimeTypesManagerImpl::ReadMailcap(const wxString& strFileName)
|
|||||||
// is this something of the form foo=bar?
|
// is this something of the form foo=bar?
|
||||||
const char *pEq = strchr(curField, '=');
|
const char *pEq = strchr(curField, '=');
|
||||||
if ( pEq != NULL ) {
|
if ( pEq != NULL ) {
|
||||||
wxString lhs = curField.Before('='),
|
wxString lhs = curField.BeforeFirst('='),
|
||||||
rhs = curField.After('=');
|
rhs = curField.AfterFirst('=');
|
||||||
|
|
||||||
lhs.Trim(TRUE); // from right
|
lhs.Trim(TRUE); // from right
|
||||||
rhs.Trim(FALSE); // from left
|
rhs.Trim(FALSE); // from left
|
||||||
@@ -1143,7 +1143,9 @@ void wxMimeTypesManagerImpl::ReadMailcap(const wxString& strFileName)
|
|||||||
{
|
{
|
||||||
// don't flood the user with error messages
|
// don't flood the user with error messages
|
||||||
// if we don't understand something in his
|
// 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
|
wxLogDebug
|
||||||
(
|
(
|
||||||
_("Mailcap file %s, line %d: unknown "
|
_("Mailcap file %s, line %d: unknown "
|
||||||
|
Reference in New Issue
Block a user