2021-11-26 03:31:05 +00:00
|
|
|
/** @file
|
2013-07-10 16:18:37 +00:00
|
|
|
*
|
|
|
|
* Original code downloaded from: http://sourcefrog.net/projects/natsort/
|
|
|
|
|
|
|
|
strnatcmp.c -- Perform 'natural order' comparisons of strings in C.
|
|
|
|
Copyright (C) 2000, 2004 by Martin Pool <mbp sourcefrog net>
|
|
|
|
|
2018-02-02 10:44:16 +00:00
|
|
|
SPDX-License-Identifier: Zlib
|
|
|
|
*/
|
2013-07-10 16:18:37 +00:00
|
|
|
|
|
|
|
#ifndef STRNATCMP_H
|
|
|
|
#define STRNATCMP_H
|
|
|
|
|
|
|
|
#include "ws_symbol_export.h"
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif /* __cplusplus */
|
|
|
|
|
|
|
|
/* CUSTOMIZATION SECTION
|
|
|
|
*
|
|
|
|
* You can change this typedef, but must then also change the inline
|
|
|
|
* functions in strnatcmp.c */
|
|
|
|
typedef char nat_char;
|
|
|
|
|
2014-10-29 17:53:49 +00:00
|
|
|
WS_DLL_PUBLIC int ws_ascii_strnatcmp(nat_char const *a, nat_char const *b);
|
|
|
|
WS_DLL_PUBLIC int ws_ascii_strnatcasecmp(nat_char const *a, nat_char const *b);
|
2013-07-10 16:18:37 +00:00
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif /* __cplusplus */
|
|
|
|
|
|
|
|
#endif /* STRNATCMP_H */
|