cf_map_ssort¶
Category: map
GitHub: cute_map.h
Sorts the {key, item} pairs by keys, treating keys as interned string pointers.
| Parameters | Description |
|---|---|
m |
The map. Can be NULL. Must be declared with CF_MAP(T). |
ignore_case |
If true, sorts case-insensitively. |
Remarks¶
Normally you can't store strings as keys since keys are uint64_t. However, if you use sintern,
each unique string gets a unique stable pointer, making them valid map keys. This is not a stable sort.
Related Pages¶
CF_MAP
cf_map_sort
cf_map_swap
cf_map_keys
cf_map_items
cf_map_size
sintern