StrSort
Description
Reorder the characters of str in place into non-decreasing order under compare. Typical uses are canonicalising a character set, or sorting characters before a uniqueness pass; length and capacity are unchanged.
Parameters
| Name | Direction | Description |
|---|---|---|
str |
in,out | Str handle. |
compare |
in | Comparator with GenericCompare-style return on two chars. |
Success
Characters are now in non-decreasing order according to compare; the string’s length is unchanged.
Failure
Function cannot fail. A NULL comparator or invalid string is a caller bug and aborts via LOG_FATAL.
Usage example (Cross-references)
Usage examples (Cross-references)
No external code usages found in the scanned files.
Last updated on