00001
#if !defined(__ABSTRACTSTRING_HPP)
00002
#define __ABSTRACTSTRING_HPP
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
#if !defined IN_COMMON_HPP
00025
#error AbstractString.hpp is included by common.hpp only.
00026
#endif
00027
00028
namespace corelinux
00029 {
00030 DECLARE_CLASS( AbstractString );
00031
00038 class AbstractString
00039 {
00040
public:
00041
00042
00043
00044
00045
00046
00047
00048
AbstractString(
void );
00049
00050
00051
00052
AbstractString(
AbstractStringCref );
00053
00054
00055
00056
virtual ~
AbstractString(
void );
00057
00058
00059
00060
00061
00062
00063
00064
AbstractStringRef operator=(
AbstractStringCref ) ;
00065
00066
00067
00068
bool operator==(
AbstractStringCref )
const;
00069
00070
00071
00072
00073
00074
00075
00076
00077
virtual Byte getElementByteCount(
void )
const = 0;
00078
00079
00080
00081
virtual bool supportsStandardInterface(
void )
const = 0;
00082
00083
00084
00085
virtual bool isUtf8(
void )
const = 0;
00086
00087
00088
00089
virtual bool isUcs2(
void )
const = 0;
00090
00091
00092
00093
virtual bool isUcs4(
void )
const = 0;
00094
00095
00096
00097
00098
00099
00100
00101
00102
00103
00104
00105
virtual AbstractStringPtr clone(
void )
const
00106
throw (
Exception ) = 0;
00107
00108
00109
00110
virtual AbstractStringPtr cloneUtf8(
void )
const
00111
throw (
Exception ) = 0;
00112
00113
00114
00115
virtual AbstractStringPtr cloneUcs2(
void )
const
00116
throw (
Exception ) = 0;
00117
00118
00119
00120
virtual AbstractStringPtr cloneUcs4(
void )
const
00121
throw (
Exception ) = 0;
00122
00123 };
00124 }
00125
00126
00127
#endif
00128
00129
00130
00131
00132
00133
00134
00135
00136