Blame gl/c-strcase.h

Packit Service 4684c1
/* Case-insensitive string comparison functions in C locale.
Packit Service 4684c1
   Copyright (C) 1995-1996, 2001, 2003, 2005, 2009-2020 Free Software
Packit Service 4684c1
   Foundation, Inc.
Packit Service 4684c1
Packit Service 4684c1
   This program is free software; you can redistribute it and/or modify
Packit Service 4684c1
   it under the terms of the GNU Lesser General Public License as published by
Packit Service 4684c1
   the Free Software Foundation; either version 2.1, or (at your option)
Packit Service 4684c1
   any later version.
Packit Service 4684c1
Packit Service 4684c1
   This program is distributed in the hope that it will be useful,
Packit Service 4684c1
   but WITHOUT ANY WARRANTY; without even the implied warranty of
Packit Service 4684c1
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
Packit Service 4684c1
   GNU Lesser General Public License for more details.
Packit Service 4684c1
Packit Service 4684c1
   You should have received a copy of the GNU Lesser General Public License
Packit Service 4684c1
   along with this program; if not, see <https://www.gnu.org/licenses/>.  */
Packit Service 4684c1
Packit Service 4684c1
#ifndef C_STRCASE_H
Packit Service 4684c1
#define C_STRCASE_H
Packit Service 4684c1
Packit Service 4684c1
#include <stddef.h>
Packit Service 4684c1
Packit Service 4684c1
Packit Service 4684c1
/* The functions defined in this file assume the "C" locale and a character
Packit Service 4684c1
   set without diacritics (ASCII-US or EBCDIC-US or something like that).
Packit Service 4684c1
   Even if the "C" locale on a particular system is an extension of the ASCII
Packit Service 4684c1
   character set (like on BeOS, where it is UTF-8, or on AmigaOS, where it
Packit Service 4684c1
   is ISO-8859-1), the functions in this file recognize only the ASCII
Packit Service 4684c1
   characters.  More precisely, one of the string arguments must be an ASCII
Packit Service 4684c1
   string; the other one can also contain non-ASCII characters (but then
Packit Service 4684c1
   the comparison result will be nonzero).  */
Packit Service 4684c1
Packit Service 4684c1
Packit Service 4684c1
#ifdef __cplusplus
Packit Service 4684c1
extern "C" {
Packit Service 4684c1
#endif
Packit Service 4684c1
Packit Service 4684c1
Packit Service 4684c1
/* Compare strings S1 and S2, ignoring case, returning less than, equal to or
Packit Service 4684c1
   greater than zero if S1 is lexicographically less than, equal to or greater
Packit Service 4684c1
   than S2.  */
Packit Service 4684c1
extern int c_strcasecmp (const char *s1, const char *s2) _GL_ATTRIBUTE_PURE;
Packit Service 4684c1
Packit Service 4684c1
/* Compare no more than N characters of strings S1 and S2, ignoring case,
Packit Service 4684c1
   returning less than, equal to or greater than zero if S1 is
Packit Service 4684c1
   lexicographically less than, equal to or greater than S2.  */
Packit Service 4684c1
extern int c_strncasecmp (const char *s1, const char *s2, size_t n)
Packit Service 4684c1
  _GL_ATTRIBUTE_PURE;
Packit Service 4684c1
Packit Service 4684c1
Packit Service 4684c1
#ifdef __cplusplus
Packit Service 4684c1
}
Packit Service 4684c1
#endif
Packit Service 4684c1
Packit Service 4684c1
Packit Service 4684c1
#endif /* C_STRCASE_H */