collate_cmp


Description:

public virtual int collate_cmp (string key1, string key2)

Compare collation keys generated by collate_key with similar semantics as strcmp.

See also collate_cmp_func if you need a version of this function that works as a CompareDataFunc.

The default implementation in Analyzer just uses strcmp.

Parameters:

this

The analyzer to use when comparing collation keys

key1

The first collation key to compare

key2

The second collation key to compare

Returns:

-1, 0 or 1, if key1 is <, == or > than key2.