head 1.2; access; symbols; locks; strict; comment @# @; 1.2 date 99.12.26.15.24.58; author rse; state dead; branches; next 1.1; 1.1 date 99.12.26.15.19.22; author rse; state Exp; branches; next ; desc @@ 1.2 log @*** empty log message *** @ text @/* ** Str - String Library ** Copyright (c) 1999 Ralf S. Engelschall ** ** This file is part of Str, a string handling and manipulation ** library which can be found at http://www.engelschall.com/sw/str/. ** ** Permission to use, copy, modify, and distribute this software for ** any purpose with or without fee is hereby granted, provided that ** the above copyright notice and this permission notice appear in all ** copies. ** ** THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED ** WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF ** MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. ** IN NO EVENT SHALL THE AUTHORS AND COPYRIGHT HOLDERS AND THEIR ** CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, ** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT ** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF ** USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ** ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, ** OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT ** OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF ** SUCH DAMAGE. ** ** str_p.h: private API header */ #ifndef _STR_P_H_ #define _STR_P_H_ #include "str.h" #include "str_config.h" #include /* for malloc, etc. */ #include /* for modf(3) */ #include /* ... */ /* explicit support for unsigned char based ctype stuff */ #define str_isalpha(c) (isalpha(((unsigned char)(c)))) #define str_isdigit(c) (isdigit(((unsigned char)(c)))) #define str_islower(c) (islower(((unsigned char)(c)))) #define str_tolower(c) (isupper((unsigned char)(c)) ? \ tolower((unsigned char)(c)) : (int)(c)) /* generated contents */ BEGIN_DECLARATION ==#== END_DECLARATION #endif /* _STR_P_H_ */ @ 1.1 log @*** empty log message *** @ text @@