Character.h

Go to the documentation of this file.
00001 /*
00002  * Copyright (c) 2004 X-Way Rights BV
00003  *
00004  * This library is free software; you can redistribute it and/or
00005  * modify it under the terms of the GNU Lesser General Public
00006  * License as published by the Free Software Foundation; either
00007  * version 2.1 of the License, or (at your option) any later version.
00008  *
00009  * This library is distributed in the hope that it will be useful,
00010  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00011  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00012  * Lesser General Public License for more details.
00013  *
00014  * You should have received a copy of the GNU Lesser General Public
00015  * License along with this library; if not, write to the Free Software
00016  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
00017  */
00018 
00023 #ifndef _CLASS_BEE_LANG_CHARACTER_H
00024 #define _CLASS_BEE_LANG_CHARACTER_H
00025 
00026 #ifdef __cplusplus
00027 
00028 #include "beecrypt/c++/lang/String.h"
00029 using beecrypt::lang::String;
00030 
00031 namespace beecrypt {
00032     namespace lang {
00035         class BEECRYPTCXXAPI Character : public beecrypt::lang::Object, public virtual beecrypt::lang::Comparable<Character>
00036         {
00037         private:
00038             jchar _val;
00039 
00040         public:
00041             static const jchar MIN_VALUE;
00042             static const jchar MAX_VALUE;
00043 
00044             static const jchar MIN_HIGH_SURROGATE;
00045             static const jchar MAX_HIGH_SURROGATE;
00046             static const jchar MIN_LOW_SURROGATE;
00047             static const jchar MAX_LOW_SURROGATE;
00048             static const jchar MIN_SURROGATE;
00049             static const jchar MAX_SURROGATE;
00050 
00051             static const jint MIN_SUPPLEMENTARY_CODE_POINT;
00052             static const jint MIN_CODE_POINT;
00053             static const jint MAX_CODE_POINT;
00054 
00055             static const jint MIN_RADIX;
00056             static const jint MAX_RADIX;
00057 
00058             static String toString(jchar c) throw ();
00059 
00060             static bool isHighSurrogate(jchar ch) throw ();
00061             static bool isLowSurrogate(jchar ch) throw ();
00062 
00063         public:
00064             Character(jchar value) throw ();
00065             virtual ~Character() {}
00066 
00067             virtual jint hashCode() const throw ();
00068             virtual jint compareTo(const Character& anotherCharacter) const throw ();
00069             virtual String toString() const throw ();
00070         };
00071     }
00072 }
00073 
00074 #endif
00075 
00076 #endif

Generated on Fri Jun 19 13:39:40 2009 for BeeCrypt C++ by  doxygen 1.5.8