Octave-Forge - Extra packages for GNU Octave | |
Home · Packages · Developers · Documentation · FAQ · Bugs · Mailing Lists · Links · Code |
00001 /* -*- buffer-read-only: t -*- vi: set ro: */ 00002 /* DO NOT EDIT! GENERATED AUTOMATICALLY! */ 00003 /* A substitute <strings.h>. 00004 00005 Copyright (C) 2007-2011 Free Software Foundation, Inc. 00006 00007 This program is free software; you can redistribute it and/or modify 00008 it under the terms of the GNU General Public License as published by 00009 the Free Software Foundation; either version 3, or (at your option) 00010 any later version. 00011 00012 This program is distributed in the hope that it will be useful, 00013 but WITHOUT ANY WARRANTY; without even the implied warranty of 00014 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00015 GNU General Public License for more details. 00016 00017 You should have received a copy of the GNU General Public License 00018 along with this program; if not, write to the Free Software Foundation, 00019 Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ 00020 00021 #ifndef _GL_STRINGS_H 00022 00023 #if __GNUC__ >= 3 00024 @PRAGMA_SYSTEM_HEADER@ 00025 #endif 00026 @PRAGMA_COLUMNS@ 00027 00028 /* The include_next requires a split double-inclusion guard. */ 00029 #@INCLUDE_NEXT@ @NEXT_STRINGS_H@ 00030 00031 #ifndef _GL_STRINGS_H 00032 #define _GL_STRINGS_H 00033 00034 00035 /* The definition of _GL_ARG_NONNULL is copied here. */ 00036 00037 /* The definition of _GL_WARN_ON_USE is copied here. */ 00038 00039 #ifdef __cplusplus 00040 extern "C" { 00041 #endif 00042 00043 00044 /* Compare strings S1 and S2, ignoring case, returning less than, equal to or 00045 greater than zero if S1 is lexicographically less than, equal to or greater 00046 than S2. 00047 Note: This function does not work in multibyte locales. */ 00048 #if ! @HAVE_STRCASECMP@ 00049 extern int strcasecmp (char const *s1, char const *s2) 00050 _GL_ARG_NONNULL ((1, 2)); 00051 #endif 00052 #if defined GNULIB_POSIXCHECK 00053 /* strcasecmp() does not work with multibyte strings: 00054 POSIX says that it operates on "strings", and "string" in POSIX is defined 00055 as a sequence of bytes, not of characters. */ 00056 # undef strcasecmp 00057 # if HAVE_RAW_DECL_STRCASECMP 00058 _GL_WARN_ON_USE (strcasecmp, "strcasecmp cannot work correctly on character " 00059 "strings in multibyte locales - " 00060 "use mbscasecmp if you care about " 00061 "internationalization, or use c_strcasecmp , " 00062 "gnulib module c-strcase) if you want a locale " 00063 "independent function"); 00064 # endif 00065 #endif 00066 00067 /* Compare no more than N bytes of strings S1 and S2, ignoring case, 00068 returning less than, equal to or greater than zero if S1 is 00069 lexicographically less than, equal to or greater than S2. 00070 Note: This function cannot work correctly in multibyte locales. */ 00071 #if ! @HAVE_DECL_STRNCASECMP@ 00072 extern int strncasecmp (char const *s1, char const *s2, size_t n) 00073 _GL_ARG_NONNULL ((1, 2)); 00074 #endif 00075 #if defined GNULIB_POSIXCHECK 00076 /* strncasecmp() does not work with multibyte strings: 00077 POSIX says that it operates on "strings", and "string" in POSIX is defined 00078 as a sequence of bytes, not of characters. */ 00079 # undef strncasecmp 00080 # if HAVE_RAW_DECL_STRNCASECMP 00081 _GL_WARN_ON_USE (strncasecmp, "strncasecmp cannot work correctly on character " 00082 "strings in multibyte locales - " 00083 "use mbsncasecmp or mbspcasecmp if you care about " 00084 "internationalization, or use c_strncasecmp , " 00085 "gnulib module c-strcase) if you want a locale " 00086 "independent function"); 00087 # endif 00088 #endif 00089 00090 00091 #ifdef __cplusplus 00092 } 00093 #endif 00094 00095 #endif /* _GL_STRING_H */ 00096 #endif /* _GL_STRING_H */