epoc32/include/libc/ctype.h
author William Roberts <williamr@symbian.org>
Tue, 16 Mar 2010 16:12:26 +0000
branchSymbian2
changeset 2 2fe1408b6811
parent 0 061f57f2323e
child 4 837f303aceeb
permissions -rw-r--r--
Final list of Symbian^2 public API header files
     1 /*
     2 * Copyright (c) 1997-2009 Nokia Corporation and/or its subsidiary(-ies).
     3 * All rights reserved.
     4 * This component and the accompanying materials are made available
     5 * under the terms of the License "Symbian Foundation License v1.0" to Symbian Foundation members and "Symbian Foundation End User License Agreement v1.0" to non-members
     6 * which accompanies this distribution, and is available
     7 * at the URL "http://www.symbianfoundation.org/legal/licencesv10.html".
     8 *
     9 * Initial Contributors:
    10 * Nokia Corporation - initial contribution.
    11 *
    12 * Contributors:
    13 *
    14 * Description:
    15 *
    16 */
    17 
    18 
    19 
    20 
    21 
    22 
    23 /**
    24  @file
    25  @publishedAll
    26  @released
    27 */
    28 
    29 #ifndef _CTYPE_H_
    30 #ifdef __cplusplus
    31 extern "C" {
    32 #endif
    33 #define _CTYPE_H_
    34 
    35 #include "_ansi.h"
    36 
    37 IMPORT_C int isalnum(int c);
    38 IMPORT_C int isalpha(int c);
    39 IMPORT_C int iscntrl(int c);
    40 IMPORT_C int isdigit(int c);
    41 IMPORT_C int isgraph(int c);
    42 IMPORT_C int islower(int c);
    43 IMPORT_C int isprint(int c);
    44 IMPORT_C int ispunct(int c);
    45 IMPORT_C int isspace(int c);
    46 IMPORT_C int isupper(int c);
    47 IMPORT_C int isxdigit(int c);
    48 IMPORT_C int tolower(int c);
    49 IMPORT_C int toupper(int c);
    50 
    51 /**
    52 not strict ansi, but popular nevertheless 
    53 */
    54 #define isascii(c)	((unsigned)(c)<=0177)
    55 #define toascii(c)	((c)&0177)
    56 
    57 #ifndef _STRICT_ANSI
    58 #define _tolower(c)	tolower(c)
    59 #define _toupper(c)	toupper(c)
    60 #endif
    61 
    62 #ifdef __cplusplus
    63 }
    64 #endif
    65 #endif /* _CTYPE_H_ */