Main Page Class Hierarchy Alphabetical List Compound List File List Compound Members
|
00001 /******************************************************************************** 00002 * * 00003 * A S C I I C h a r a c t e r I n f o * 00004 * * 00005 ********************************************************************************* 00006 * Copyright (C) 2005,2006 by Jeroen van der Zijp. All Rights Reserved. * 00007 ********************************************************************************* 00008 * This library is free software; you can redistribute it and/or * 00009 * modify it under the terms of the GNU Lesser General Public * 00010 * License as published by the Free Software Foundation; either * 00011 * version 2.1 of the License, or (at your option) any later version. * 00012 * * 00013 * This library is distributed in the hope that it will be useful, * 00014 * but WITHOUT ANY WARRANTY; without even the implied warranty of * 00015 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * 00016 * Lesser General Public License for more details. * 00017 * * 00018 * You should have received a copy of the GNU Lesser General Public * 00019 * License along with this library; if not, write to the Free Software * 00020 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * 00021 ********************************************************************************* 00022 * $Id: fxascii.h,v 1.3 2006/01/22 17:58:13 fox Exp $ * 00023 ********************************************************************************/ 00024 #ifndef FXASCII_H 00025 #define FXASCII_H 00026 00027 00028 namespace FX { 00029 00030 namespace Ascii { 00031 00032 /// Get numeric value of character (this includes hex value) 00033 extern FXAPI FXint digitValue(FXchar asc); 00034 00035 /// Ascii-only common functions 00036 extern FXAPI bool hasCase(FXchar asc); 00037 extern FXAPI bool isUpper(FXchar asc); 00038 extern FXAPI bool isLower(FXchar asc); 00039 extern FXAPI bool isTitle(FXchar asc); 00040 extern FXAPI bool isAscii(FXchar asc); 00041 extern FXAPI bool isLetter(FXchar asc); 00042 extern FXAPI bool isDigit(FXchar asc); 00043 extern FXAPI bool isAlphaNumeric(FXchar asc); 00044 extern FXAPI bool isControl(FXchar asc); 00045 extern FXAPI bool isSpace(FXchar asc); 00046 extern FXAPI bool isBlank(FXchar asc); 00047 extern FXAPI bool isPunct(FXchar asc); 00048 extern FXAPI bool isGraph(FXchar asc); 00049 extern FXAPI bool isPrint(FXchar asc); 00050 extern FXAPI bool isHexDigit(FXchar asc); 00051 extern FXAPI bool isSymbol(FXchar asc); 00052 extern FXAPI bool isSep(FXchar asc); 00053 00054 /// Case conversion 00055 extern FXAPI FXchar toUpper(FXchar asc); 00056 extern FXAPI FXchar toLower(FXchar asc); 00057 extern FXAPI FXchar toTitle(FXchar asc); 00058 00059 } 00060 00061 } 00062 00063 #endif
Copyright © 1997-2005 Jeroen van der Zijp |