1.1 --- a/epoc32/include/stdapis/ctype.h Tue Nov 24 13:55:44 2009 +0000
1.2 +++ b/epoc32/include/stdapis/ctype.h Tue Mar 16 16:12:26 2010 +0000
1.3 @@ -1,1 +1,92 @@
1.4 -ctype.h
1.5 +/*
1.6 + * Copyright (c) 1989, 1993
1.7 + * The Regents of the University of California. All rights reserved.
1.8 + * (c) UNIX System Laboratories, Inc.
1.9 + * All or some portions of this file are derived from material licensed
1.10 + * to the University of California by American Telephone and Telegraph
1.11 + * Co. or Unix System Laboratories, Inc. and are reproduced herein with
1.12 + * the permission of UNIX System Laboratories, Inc.
1.13 + *
1.14 + * This code is derived from software contributed to Berkeley by
1.15 + * Paul Borman at Krystal Technologies.
1.16 + *
1.17 + * Redistribution and use in source and binary forms, with or without
1.18 + * modification, are permitted provided that the following conditions
1.19 + * are met:
1.20 + * 1. Redistributions of source code must retain the above copyright
1.21 + * notice, this list of conditions and the following disclaimer.
1.22 + * 2. Redistributions in binary form must reproduce the above copyright
1.23 + * notice, this list of conditions and the following disclaimer in the
1.24 + * documentation and/or other materials provided with the distribution.
1.25 + * 4. Neither the name of the University nor the names of its contributors
1.26 + * may be used to endorse or promote products derived from this software
1.27 + * without specific prior written permission.
1.28 + *
1.29 + * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
1.30 + * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
1.31 + * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
1.32 + * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
1.33 + * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
1.34 + * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
1.35 + * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
1.36 + * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
1.37 + * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
1.38 + * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
1.39 + * SUCH DAMAGE.
1.40 + *
1.41 + * @(#)ctype.h 8.4 (Berkeley) 1/21/94
1.42 + * $FreeBSD: src/include/ctype.h,v 1.28 2004/08/12 09:33:47 tjr Exp $
1.43 + *
1.44 + * © Portions copyright (c) 2006 Nokia Corporation. All rights reserved.
1.45 + * © Portions copyright (c) 2007 Symbian Software Ltd. All rights reserved.
1.46 +
1.47 + */
1.48 +
1.49 +#ifndef _CTYPE_H_
1.50 +#define _CTYPE_H_
1.51 +
1.52 +#include <sys/cdefs.h>
1.53 +#include <sys/_types.h>
1.54 +#include <_ctype.h>
1.55 +
1.56 +#ifdef __SYMBIAN32__
1.57 +#include <_ansi.h>
1.58 +
1.59 +#ifdef __cplusplus
1.60 +extern "C" {
1.61 +#endif
1.62 +#endif // __SYMBIAN32__
1.63 +
1.64 +__BEGIN_DECLS
1.65 +IMPORT_C int isalnum(int);
1.66 +IMPORT_C int isalpha(int);
1.67 +IMPORT_C int iscntrl(int);
1.68 +IMPORT_C int isdigit(int);
1.69 +IMPORT_C int isgraph(int);
1.70 +IMPORT_C int islower(int);
1.71 +IMPORT_C int isprint(int);
1.72 +IMPORT_C int ispunct(int);
1.73 +IMPORT_C int isspace(int);
1.74 +IMPORT_C int isupper(int);
1.75 +IMPORT_C int isxdigit(int);
1.76 +IMPORT_C int tolower(int);
1.77 +IMPORT_C int toupper(int);
1.78 +
1.79 +#ifdef __SYMBIAN32__
1.80 +/* these two macros always expect that the argument sent is always in uppercase
1.81 +or lowercase respectively and works only with c locale.
1.82 +else the behavior is undefined */
1.83 +#define _tolower(c) ((c) + 0x20)
1.84 +#define _toupper(c) ((c) - 0x20)
1.85 +#define isascii(c) (((c) & ~0x7F) == 0)
1.86 +#define toascii(c) ((c) & 0x7F)
1.87 +#endif//__SYMBIAN32__
1.88 +__END_DECLS
1.89 +
1.90 +#ifdef __SYMBIAN32__
1.91 +#ifdef __cplusplus
1.92 +}
1.93 +#endif
1.94 +#endif //__SYMBIAN32__
1.95 +
1.96 +#endif /* !_CTYPE_H_ */