1 /** 2 * D header file for POSIX's <strings.h>. 3 * 4 * Note: Do not mistake this module for <string.h> (singular), 5 * available at `core.sys.posix.string`. 6 * 7 * See_Also: https://pubs.opengroup.org/onlinepubs/9699919799/basedefs/strings.h.html 8 * Copyright: D Language Foundation, 2019 9 * License: $(LINK2 http://www.boost.org/LICENSE_1_0.txt, Boost License 1.0) 10 * Authors: Mathias 'Geod24' Lang 11 * Standards: The Open Group Base Specifications Issue 7, 2018 edition 12 * Source: $(DRUNTIMESRC core/sys/posix/_strings.d) 13 */ 14 module core.sys.posix.strings; 15 16 version (Posix): 17 extern(C): 18 @system: 19 nothrow: 20 @nogc: 21 22 /// 23 public import core.sys.posix.locale : locale_t; 24 25 /// Find first bit set in a word 26 int ffs(int i) @safe pure; 27 /// Compare two strings ignoring case 28 int strcasecmp(scope const char* s1, scope const char* s2); 29 /// Compare two strings ignoring case, with the specified locale 30 int strcasecmp_l(scope const char* s1, scope const char* s2, scope locale_t locale); 31 /// Compare two strings ignoring case, up to n characters 32 int strncasecmp(scope const char* s1, scope const char* s2, size_t n); 33 /// Compare two strings ignoring case, with the specified locale, up to n characters 34 int strncasecmp_l(scope const char* s1, const char* s2, size_t n, locale_t locale); 35