Workspace 6.21.5
Public Member Functions | List of all members
ConditionalAlphaNumericCompare Class Reference

Functor for comparing two strings differently if they are alphabetic vs numeric. If both strings are numbers, they will be compared numerically. If one or the other is a string, they will be compared as strings. More...

#include <Workspace/Application/LanguageUtils/compare.h>

Public Member Functions

int operator() (const QString &left, const QString &right) const
 

Detailed Description

-1 means left < right 0 means left == right 1 means left > right

Member Function Documentation

◆ operator()()

int operator() ( const QString &  left,
const QString &  right 
) const
Parameters
leftThe left operand of the comparison function.
rightThe right operand of the comparison function.
Returns
In accordance with the semantics described in the ConditionalAlphaNumericCompare class description, returns 0 if left == right, -1 if left < right or 1 if left > right.