WTF
DisallowCType.h
Go to the documentation of this file.
00001 /* 00002 * Copyright (C) 2007 Apple Inc. All rights reserved. 00003 * 00004 * Redistribution and use in source and binary forms, with or without 00005 * modification, are permitted provided that the following conditions 00006 * are met: 00007 * 00008 * 1. Redistributions of source code must retain the above copyright 00009 * notice, this list of conditions and the following disclaimer. 00010 * 2. Redistributions in binary form must reproduce the above copyright 00011 * notice, this list of conditions and the following disclaimer in the 00012 * documentation and/or other materials provided with the distribution. 00013 * 3. Neither the name of Apple Computer, Inc. ("Apple") nor the names of 00014 * its contributors may be used to endorse or promote products derived 00015 * from this software without specific prior written permission. 00016 * 00017 * THIS SOFTWARE IS PROVIDED BY APPLE AND ITS CONTRIBUTORS "AS IS" AND ANY 00018 * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 00019 * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 00020 * DISCLAIMED. IN NO EVENT SHALL APPLE OR ITS CONTRIBUTORS BE LIABLE FOR ANY 00021 * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES 00022 * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 00023 * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND 00024 * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 00025 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 00026 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 00027 */ 00028 00029 #ifndef WTF_DisallowCType_h 00030 #define WTF_DisallowCType_h 00031 00032 // The behavior of many of the functions in the <ctype.h> header is dependent 00033 // on the current locale. But almost all uses of these functions are for 00034 // locale-independent, ASCII-specific purposes. In WebKit code we use our own 00035 // ASCII-specific functions instead. This header makes sure we get a compile-time 00036 // error if we use one of the <ctype.h> functions by accident. 00037 00038 #include <ctype.h> 00039 00040 #undef isalnum 00041 #undef isalpha 00042 #undef isascii 00043 #undef isblank 00044 #undef iscntrl 00045 #undef isdigit 00046 #undef isgraph 00047 #undef islower 00048 #undef isprint 00049 #undef ispunct 00050 #undef isspace 00051 #undef isupper 00052 #undef isxdigit 00053 #undef toascii 00054 #undef tolower 00055 #undef toupper 00056 00057 #define isalnum WTF_Please_use_ASCIICType_instead_of_ctype_see_comment_in_ASCIICType_h 00058 #define isalpha WTF_Please_use_ASCIICType_instead_of_ctype_see_comment_in_ASCIICType_h 00059 #define isascii WTF_Please_use_ASCIICType_instead_of_ctype_see_comment_in_ASCIICType_h 00060 #define isblank WTF_Please_use_ASCIICType_instead_of_ctype_see_comment_in_ASCIICType_h 00061 #define iscntrl WTF_Please_use_ASCIICType_instead_of_ctype_see_comment_in_ASCIICType_h 00062 #define isdigit WTF_Please_use_ASCIICType_instead_of_ctype_see_comment_in_ASCIICType_h 00063 #define isgraph WTF_Please_use_ASCIICType_instead_of_ctype_see_comment_in_ASCIICType_h 00064 #define islower WTF_Please_use_ASCIICType_instead_of_ctype_see_comment_in_ASCIICType_h 00065 #define isprint WTF_Please_use_ASCIICType_instead_of_ctype_see_comment_in_ASCIICType_h 00066 #define ispunct WTF_Please_use_ASCIICType_instead_of_ctype_see_comment_in_ASCIICType_h 00067 #define isspace WTF_Please_use_ASCIICType_instead_of_ctype_see_comment_in_ASCIICType_h 00068 #define isupper WTF_Please_use_ASCIICType_instead_of_ctype_see_comment_in_ASCIICType_h 00069 #define isxdigit WTF_Please_use_ASCIICType_instead_of_ctype_see_comment_in_ASCIICType_h 00070 #define toascii WTF_Please_use_ASCIICType_instead_of_ctype_see_comment_in_ASCIICType_h 00071 #define tolower WTF_Please_use_ASCIICType_instead_of_ctype_see_comment_in_ASCIICType_h 00072 #define toupper WTF_Please_use_ASCIICType_instead_of_ctype_see_comment_in_ASCIICType_h 00073 00074 #endif
KDE 4.6 API Reference