27 #ifndef PULSEVIEW_PV_STRNATCMP_HPP 28 #define PULSEVIEW_PV_STRNATCMP_HPP 45 if (!isdigit(*a) && !isdigit(*b))
58 }
else if (!*a && !*b)
70 if (!isdigit(*a) && !isdigit(*b))
85 static int strnatcmp0(
char const *a,
char const *b,
int fold_case)
87 int ai, bi, fractional, result;
104 if (isdigit(ca) && isdigit(cb)) {
105 fractional = (ca ==
'0' || cb ==
'0');
160 #endif // PULSEVIEW_PV_STRNATCMP_HPP static int compare_right(char const *a, char const *b)
int strnatcmp(char const *a, char const *b)
static int compare_left(char const *a, char const *b)
static int strnatcmp0(char const *a, char const *b, int fold_case)
int strnatcasecmp(char const *a, char const *b)