The SEDRIS Data Representation Model
APPENDIX D - Functions SE ComparePropertyDataValues |
---|
extern int | ||||
SE_ComparePropertyDataValues | ||||
( | ||||
const | SE_Property_Data_Value | * | a_ptr, | (notes) |
const | SE_Property_Data_Value | * | b_ptr | (notes) |
); |
When comparing:
integers, floats: normal mathematical rules apply
EEs, EMs: underlying compare functions for those codes apply
boolean to boolean: FALSE is less than TRUE
string to string: strcmp() rules apply
boolean to anything but a boolean: FALSE is 0, TRUE is 1, and a numeric comparison is used
string to anything but a string: the string is 0, and a numeric comparison is used
-1 | if *a_ptr < *b_ptr |
0 | if *a_ptr == *b_ptr |
1 | if *a_ptr > *b_ptr |
pointer to 1st SE_Property_Data_Value to be compared
pointer to 2nd SE_Property_Data_Value to be compared
Prev: SE_CompareLocales.
Next: SE_CompareStrings.
Up:Index.
|