Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members

fxascii.h
Go to the documentation of this file.
1 /********************************************************************************
2 * *
3 * A S C I I C h a r a c t e r I n f o *
4 * *
5 *********************************************************************************
6 * Copyright (C) 2005,2006 by Jeroen van der Zijp. All Rights Reserved. *
7 *********************************************************************************
8 * This library is free software; you can redistribute it and/or *
9 * modify it under the terms of the GNU Lesser General Public *
10 * License as published by the Free Software Foundation; either *
11 * version 2.1 of the License, or (at your option) any later version. *
12 * *
13 * This library is distributed in the hope that it will be useful, *
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of *
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU *
16 * Lesser General Public License for more details. *
17 * *
18 * You should have received a copy of the GNU Lesser General Public *
19 * License along with this library; if not, write to the Free Software *
20 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. *
21 *********************************************************************************
22 * $Id: fxascii.h,v 1.3 2006/01/22 17:58:13 fox Exp $ *
23 ********************************************************************************/
24 #ifndef FXASCII_H
25 #define FXASCII_H
26 
27 
28 namespace FX {
29 
30 namespace Ascii {
31 
32 /// Get numeric value of character (this includes hex value)
33 extern FXAPI FXint digitValue(FXchar asc);
34 
35 /// Ascii-only common functions
36 extern FXAPI bool hasCase(FXchar asc);
37 extern FXAPI bool isUpper(FXchar asc);
38 extern FXAPI bool isLower(FXchar asc);
39 extern FXAPI bool isTitle(FXchar asc);
40 extern FXAPI bool isAscii(FXchar asc);
41 extern FXAPI bool isLetter(FXchar asc);
42 extern FXAPI bool isDigit(FXchar asc);
43 extern FXAPI bool isAlphaNumeric(FXchar asc);
44 extern FXAPI bool isControl(FXchar asc);
45 extern FXAPI bool isSpace(FXchar asc);
46 extern FXAPI bool isBlank(FXchar asc);
47 extern FXAPI bool isPunct(FXchar asc);
48 extern FXAPI bool isGraph(FXchar asc);
49 extern FXAPI bool isPrint(FXchar asc);
50 extern FXAPI bool isHexDigit(FXchar asc);
51 extern FXAPI bool isSymbol(FXchar asc);
52 extern FXAPI bool isSep(FXchar asc);
53 
54 /// Case conversion
55 extern FXAPI FXchar toUpper(FXchar asc);
56 extern FXAPI FXchar toLower(FXchar asc);
57 extern FXAPI FXchar toTitle(FXchar asc);
58 
59 }
60 
61 }
62 
63 #endif
char FXchar
Definition: fxdefs.h:387
bool isTitle(FXchar asc)
FXchar toLower(FXchar asc)
bool isAscii(FXchar asc)
bool isDigit(FXchar asc)
FXchar toTitle(FXchar asc)
bool isControl(FXchar asc)
#define FXAPI
Definition: fxdefs.h:122
bool isSep(FXchar asc)
bool isBlank(FXchar asc)
bool isLetter(FXchar asc)
bool isAlphaNumeric(FXchar asc)
bool hasCase(FXchar asc)
Ascii-only common functions.
bool isGraph(FXchar asc)
int FXint
Definition: fxdefs.h:397
bool isLower(FXchar asc)
FXchar toUpper(FXchar asc)
Case conversion.
FXint digitValue(FXchar asc)
Get numeric value of character (this includes hex value)
bool isPunct(FXchar asc)
bool isSymbol(FXchar asc)
bool isUpper(FXchar asc)
bool isSpace(FXchar asc)
bool isHexDigit(FXchar asc)
bool isPrint(FXchar asc)

Copyright © 1997-2005 Jeroen van der Zijp