Public Member Functions

KStringCompare Class Reference

Search for all occurrences

Detailed Description

Functor class to compare KString, and is suitable for use in KMap.

Definition at line 558 of file kstring.h.

#include <kstring.h>

List of all members.

Public Member Functions

int  operator() (KString const &pKeyA, KString const &pKeyB) const
  Compare two KStrings.

Member Function Documentation

int operator() ( KString const &  pKeyA,
KString const &  pKeyB 
) const [inline]

Compare two KStrings.

Parameters:
pKeyA The first KString to compare.
pKeyB The second KString to compare.
Returns:
-1 indicates pKeyA is greater than pKeyB, 1 indicates pKeyB is greater than pKeyA, zero indicates they are equal.

Definition at line 566 of file kstring.h.

    {
        return (pKeyA < pKeyB) ? -1 : ((pKeyB < pKeyA) ? 1 : 0);
    }

The documentation for this class was generated from the following file:

KStringCompare KStringCompare KStringCompare KStringCompare KStringCompare KStringCompare KStringCompare KStringCompare KStringCompare KStringCompare
KStringCompare KStringCompare KStringCompare KStringCompare KStringCompare KStringCompare KStringCompare KStringCompare KStringCompare KStringCompare