natcmp

Undocumented in source.

Members

Enums

compareMode
enum compareMode
Undocumented in source.

Functions

compareNatural
int compareNatural(char[] a, char[] b)

Compares two strings in a way that is natural to humans. Integers come before non-integers, and integers are compared as if they were numbers instead of strings of characters. Intended for usage in opCmp overloads.

compareNaturalSort
bool compareNaturalSort(inout(char[]) a, inout(char[]) b)

Natural string comparison function for use with phobos's sorting algorithm

comparePathsNatural
int comparePathsNatural(inout(char[]) pathA, inout(char[]) pathB)

Compares path strings naturally. Comparing paths naturally requires path separators to be treated specially. Intended for usage in opCmp overloads.

comparePathsNaturalSort
bool comparePathsNaturalSort(inout(char[]) a, inout(char[]) b)

Path comparison function for use with phobos's sorting algorithm

Meta