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