Kyoto Cabinet
Public Member Functions
kyotocabinet::DecimalComparator Class Reference

Comparator in the decimal order. More...

#include <kccompare.h>

List of all members.

Public Member Functions

int32_t compare (const char *akbuf, size_t aksiz, const char *bkbuf, size_t bksiz)
 Compare two keys.

Detailed Description

Comparator in the decimal order.


Member Function Documentation

int32_t kyotocabinet::DecimalComparator::compare ( const char *  akbuf,
size_t  aksiz,
const char *  bkbuf,
size_t  bksiz 
) [virtual]

Compare two keys.

Parameters:
akbufthe pointer to the region of one key.
aksizthe size of the region of one key.
bkbufthe pointer to the region of the other key.
bksizthe size of the region of the other key.
Returns:
positive if the former is big, negative if the latter is big, 0 if both are equivalent.

Implements kyotocabinet::Comparator.