00001
00002
00003
00004
00005
00006
00007
00008
00009
00010 #ifndef COMPITR_H
00011 #define COMPITR_H
00012
00013
00014 #include "unicode/utypes.h"
00015 #include "unicode/unistr.h"
00016
00017
00058 class U_COMMON_API ComposedCharIter
00059 {
00060 public:
00067 enum { DONE = 0xffff };
00068
00074 ComposedCharIter();
00075
00076
00090 ComposedCharIter(UBool compat, int32_t options);
00091
00096 UBool hasNext(void) const;
00097
00105 UChar next(void);
00106
00115 void getDecomposition(UnicodeString& result) const;
00116
00117 private:
00118 void findNextChar(void);
00119
00120 int32_t minDecomp;
00121 UBool hangul;
00122
00123 UChar curChar;
00124 UChar nextChar;
00125 };
00126
00127 #endif // _COMPITR
00128
00129
00130