libcollection 0.6.2
Loading...
Searching...
No Matches

Macros

#define COL_CMPIN_PROP_EQU   0x000000004
 Properties should be exactly equal.
 
#define COL_CMPIN_PROP_BEG   0x000000005
 Properties should start with the same substring.
 
#define COL_CMPIN_PROP_MID   0x000000006
 One property should be a substring of another.
 
#define COL_CMPIN_PROP_END   0x000000007
 Properties should have the same substring at the end.
 
#define COL_CMPIN_PROP_DOT   0x000000008
 Make sure that there is a dot.
 
#define COL_CMPIN_PROP_LEN   0x000000010
 Compare property lengths.
 
#define COL_CMPIN_TYPE   0x000000020
 Compare types.
 
#define COL_CMPIN_DATA_LEN   0x000000040
 Compare data lengths.
 
#define COL_CMPIN_DATA   0x000000080
 Compare data.
 

Detailed Description

This section describes the flags used in item comparison.

Flags:

are mutually exclusive.

All other flags can be provided in any combination.

Macro Definition Documentation

◆ COL_CMPIN_PROP_DOT

#define COL_CMPIN_PROP_DOT   0x000000008

Make sure that there is a dot.

Useful with _BEG, _MID and _END flags to check that the there is a dot (if present) in the right place (before, after or both). For example the first item is named "foo.bar" and the second is "bar". Using _END the "bar" will be found but if _DOT flag is used too the function will also check if there was a "." before the found string in this case. Ignored in case of _EQU.

◆ COL_CMPIN_DATA

#define COL_CMPIN_DATA   0x000000080

Compare data.

Compares data (up to the length of the second one) if type is the same. If type is different function will assume data is different without performing actual comparison.