]> git.saurik.com Git - apple/libc.git/blob - internat/NXCType.h
Libc-339.tar.gz
[apple/libc.git] / internat / NXCType.h
1 /*
2 * Copyright (c) 1999 Apple Computer, Inc. All rights reserved.
3 *
4 * @APPLE_LICENSE_HEADER_START@
5 *
6 * Copyright (c) 1999-2003 Apple Computer, Inc. All Rights Reserved.
7 *
8 * This file contains Original Code and/or Modifications of Original Code
9 * as defined in and that are subject to the Apple Public Source License
10 * Version 2.0 (the 'License'). You may not use this file except in
11 * compliance with the License. Please obtain a copy of the License at
12 * http://www.opensource.apple.com/apsl/ and read it before using this
13 * file.
14 *
15 * The Original Code and all software distributed under the License are
16 * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
17 * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
18 * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
19 * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
20 * Please see the License for the specific language governing rights and
21 * limitations under the License.
22 *
23 * @APPLE_LICENSE_HEADER_END@
24 */
25 /* NXCType.h */
26
27 /* Copyright (c) 1990 NeXT, Inc. - 8/21/90 RM */
28 /* patterned after ctype.h ; for 8-bit encoding, Europe only */
29
30 #ifndef _NXCTYPE_H
31 #define _NXCTYPE_H
32
33 #include <ctype.h>
34
35 extern int NXIsAlNum(unsigned c);
36 extern int NXIsAlpha(unsigned c);
37 extern int NXIsCntrl(unsigned c);
38 extern int NXIsDigit(unsigned c);
39 extern int NXIsGraph(unsigned c);
40 extern int NXIsLower(unsigned c);
41 extern int NXIsPrint(unsigned c);
42 extern int NXIsPunct(unsigned c);
43 extern int NXIsSpace(unsigned c);
44 extern int NXIsUpper(unsigned c);
45 extern int NXIsXDigit(unsigned c);
46 extern int _NXToLower(unsigned c);
47 extern int _NXToUpper(unsigned c);
48 extern int NXToLower(unsigned c);
49 extern int NXToUpper(unsigned c);
50 extern int NXIsAscii(unsigned c);
51 extern unsigned char *NXToAscii(unsigned c);
52
53 /*
54 * Data structures used by the internationized NX... versions of the
55 * ctype(3) routines. These structures are private to the above routines
56 * and should NOT be referenced by the application.
57 */
58 extern const unsigned int _NX_CTypeTable_[]; /* char types */
59 extern const unsigned char _NX_ULTable_[]; /* case conversion table */
60
61 #endif /* _NXCTYPE_H */