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

rtchar.h

Go to the documentation of this file.
00001 /*
00002  * rtchar.h
00003  * 
00004  * Copyright (c) 2000-2004 by Florian Fischer (florianfischer@gmx.de)
00005  * and Martin Trautmann (martintrautmann@gmx.de) 
00006  * 
00007  * This file may be distributed and/or modified under the terms of the 
00008  * GNU General Public License version 2 as published by the Free Software 
00009  * Foundation. 
00010  * 
00011  * This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
00012  * WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
00013  * 
00014  */
00015 
00020 #ifndef __LRT_CHAR__
00021 #define __LRT_CHAR__
00022 
00023 namespace lrt {
00024 
00028 class Char  
00029 {
00030 public:
00032         static const int MAX_RADIX;
00033 
00037         static inline bool isSpace(char ch);
00038 
00040         static inline bool isUpperCase(char ch);
00041 
00043         static inline bool isLowerCase(char ch);
00044 
00046         static inline bool isDigit(char ch);
00047 
00049         static bool isDigit(char ch, int radix);
00050 
00054         static inline bool isLetter(char ch);
00055 
00059         static inline char lowerCase(char ch);
00060 
00064         static inline char upperCase(char ch);
00065 
00070         static inline int  numericValue(char ch);
00071 
00075         static inline char charValue(int num); 
00076 
00077 private:
00078         Char();
00079         ~Char();
00080 };
00081 
00082 } // namespace
00083 
00084 #include "rtchar.inline.cpp"
00085 
00086 #endif
00087 

This is the RoboTour API documentation version 0.1 • Copyright (C) by Florian Fischer