aboutsummaryrefslogtreecommitdiffstats
path: root/wsutil/strnatcmp.h
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2014-10-29 10:53:49 -0700
committerGuy Harris <guy@alum.mit.edu>2014-10-29 17:54:51 +0000
commit4acf4955f54c1fba30fdf2dc0dd4e11f6a3595b5 (patch)
treef7f5c880a42d1e0c2d14920ebb64f3ecccf79e72 /wsutil/strnatcmp.h
parentd2f4b6fd3d938ba0e436390300b3325da91bb10d (diff)
Rename the strnatcmp.c routines and make them use the g_ascii_XXX() routines.
Rename strnatcmp()/strnatcasecmp() to ws_ascii_XXX(), and make them use the g_ascii_XXX() routines rather than ctype.h routines, to eliminate locale-dependent behavior. (If you want locale-dependent "natural order" sorting, you probably want "dictionary order" sorting, which is more complicated than just natural order sorting.) Change-Id: I837f2776b2a909b547dc9a6072e497911b5380e5 Reviewed-on: https://code.wireshark.org/review/4985 Reviewed-by: Guy Harris <guy@alum.mit.edu>
Diffstat (limited to 'wsutil/strnatcmp.h')
-rw-r--r--wsutil/strnatcmp.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/wsutil/strnatcmp.h b/wsutil/strnatcmp.h
index 31249cd666..cd175c0347 100644
--- a/wsutil/strnatcmp.h
+++ b/wsutil/strnatcmp.h
@@ -37,8 +37,8 @@ extern "C" {
* functions in strnatcmp.c */
typedef char nat_char;
-WS_DLL_PUBLIC int strnatcmp(nat_char const *a, nat_char const *b);
-WS_DLL_PUBLIC int strnatcasecmp(nat_char const *a, nat_char const *b);
+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);
#ifdef __cplusplus
}