More work on arbitrary characters in references, etc.
This commit is contained in:
parent
1685af8425
commit
f10635e8be
|
@ -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;
|
||||
|
|
|
@ -146,7 +146,7 @@ bool WildCompareString( const wxString& pattern,
|
|||
* return 0 if the strings are equal
|
||||
* return 1 if the first string is greater than the second
|
||||
*/
|
||||
int ValueStringCompare( const wxString& strFWord, const wxString& strSWord );
|
||||
int ValueStringCompare( wxString strFWord, wxString strSWord );
|
||||
|
||||
/**
|
||||
* Function RefDesStringCompare
|
||||
|
@ -156,7 +156,7 @@ int ValueStringCompare( const wxString& strFWord, const wxString& strSWord );
|
|||
* return 0 if the strings are equal
|
||||
* return 1 if the first string is greater than the second
|
||||
*/
|
||||
int RefDesStringCompare( const wxString& lhs, const wxString& rhs );
|
||||
int RefDesStringCompare( wxString lhs, wxString rhs );
|
||||
|
||||
/**
|
||||
* Function SplitString
|
||||
|
|
Loading…
Reference in New Issue