More work on arbitrary characters in references, etc.

This commit is contained in:
Jeff Young
2018-09-27 14:44:42 +01:00
parent 1685af8425
commit f10635e8be
2 changed files with 12 additions and 4 deletions
+10 -2
View File
@@ -487,8 +487,12 @@ bool ApplyModifier( double& value, const wxString& aString )
//
// TODO: case (d) unimplemented !!!
//
int ValueStringCompare( const wxString& strFWord, const wxString& strSWord )
int ValueStringCompare( wxString strFWord, wxString strSWord )
{
// Compare unescaped text
strFWord = UnescapeString( strFWord );
strSWord = UnescapeString( strSWord );
// The different sections of the two strings
wxString strFWordBeg, strFWordMid, strFWordEnd;
wxString strSWordBeg, strSWordMid, strSWordEnd;
@@ -531,8 +535,12 @@ int ValueStringCompare( const wxString& strFWord, const wxString& strSWord )
}
int RefDesStringCompare( const wxString& strFWord, const wxString& strSWord )
int RefDesStringCompare( wxString strFWord, wxString strSWord )
{
// Compare unescaped text
strFWord = UnescapeString( strFWord );
strSWord = UnescapeString( strSWord );
// The different sections of the two strings
wxString strFWordBeg, strFWordMid, strFWordEnd;
wxString strSWordBeg, strSWordMid, strSWordEnd;