|
Wireshark 4.7.0
The Wireshark network protocol analyzer
|
#include "ws_symbol_export.h"Go to the source code of this file.
Typedefs | |
| typedef char | nat_char |
Functions | |
| WS_DLL_PUBLIC int | ws_ascii_strnatcmp (nat_char const *a, nat_char const *b) |
| Performs ASCII natural-order string comparison (case-sensitive). | |
| WS_DLL_PUBLIC int | ws_ascii_strnatcasecmp (nat_char const *a, nat_char const *b) |
| Performs ASCII natural-order string comparison (case-insensitive). | |
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>
SPDX-License-Identifier: Zlib
| WS_DLL_PUBLIC int ws_ascii_strnatcasecmp | ( | nat_char const * | a, |
| nat_char const * | b | ||
| ) |
Performs ASCII natural-order string comparison (case-insensitive).
Compares two strings using "natural" ordering, ignoring case differences. Numeric substrings are compared by numeric value.
| a | First string to compare. |
| b | Second string to compare. |
| WS_DLL_PUBLIC int ws_ascii_strnatcmp | ( | nat_char const * | a, |
| nat_char const * | b | ||
| ) |
Performs ASCII natural-order string comparison (case-sensitive).
Compares two strings using "natural" ordering, where numeric substrings are compared based on their numeric value rather than lexicographic order. For example, "file2" comes before "file10".
| a | First string to compare. |
| b | Second string to compare. |