DSIBinaryCollator Class Reference

A collator that supports binary comparison using memcmp(). More...

Inherits Simba::DSI::ICollator.

Inherited by DSIBinaryLikeHelper [private].

List of all members.

Public Member Functions

virtual simba_int32 Compare (const simba_byte *in_string1, simba_uint32 in_length1, const simba_byte *in_string2, simba_uint32 in_length2) const
 Compare two strings.
 DSIBinaryCollator (EncodingType in_encoding)
 Constructor.

Protected Attributes

const EncodingType m_encoding
 The encoding type.

Detailed Description

A collator that supports binary comparison using memcmp().


Constructor & Destructor Documentation

DSIBinaryCollator ( EncodingType  in_encoding  ) 

Constructor.

Parameters:
in_encoding The encoding type if presented.

Member Function Documentation

virtual simba_int32 Compare ( const simba_byte *  in_string1,
simba_uint32  in_length1,
const simba_byte *  in_string2,
simba_uint32  in_length2 
) const [virtual]

Compare two strings.

The collations of the two given strings are already known at the creation time

Parameters:
in_string1 Pointer to the first string. (NOT OWN)
in_length1 The length of the first string in bytes.
in_string2 Pointer to the second string. (NOT OWN)
in_length2 The length of the first second in bytes.
Returns:
0 if the two strings are equal, negative if the first string is less than the second, positive if the first string is greater than the second.

Implements ICollator.


Member Data Documentation

const EncodingType m_encoding [protected]

The encoding type.


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

Generated on Wed May 17 14:21:15 2017 for SimbaEngine 10.1.3.1011 by simba