Character.h
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
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