Logo Search packages:      
Sourcecode: icu version File versions  Download package

TestReplaceable Class Reference

Inheritance diagram for TestReplaceable:

Replaceable UObject UMemory

List of all members.


Detailed Description

This is a test class that simulates styled text. It associates a style number (0..65535) with each character, and maintains that style in the normal fashion: When setting text from raw string or characters,
Set the styles to the style of the first character replaced.
If no characters are replaced, use the style of the previous character.
If at start, use the following character
Otherwise use NO_STYLE.

Definition at line 39 of file reptest.cpp.


Public Member Functions

UChar32 char32At (int32_t offset) const
UChar charAt (int32_t offset) const
virtual Replaceableclone () const
void extractBetween (int32_t start, int32_t limit, UnicodeString &result) const
virtual UClassID getDynamicClassID () const
UnicodeString getStyles ()
virtual UBool hasMetaData () const
int32_t length () const
 TestReplaceable (const UnicodeString &text, const UnicodeString &newStyles)
UnicodeString toString ()

Static Public Member Functions

static UClassID getStaticClassID ()
static void U_EXPORT2 operator delete (void *, void *) U_NO_THROW
static void U_EXPORT2 operator delete (void *p) U_NO_THROW
static void U_EXPORT2 operator delete[] (void *p) U_NO_THROW
static void *U_EXPORT2 operator new (size_t, void *ptr) U_NO_THROW
static void *U_EXPORT2 operator new (size_t size) U_NO_THROW
static void *U_EXPORT2 operator new[] (size_t size) U_NO_THROW

Protected Member Functions

virtual void copy (int32_t start, int32_t limit, int32_t dest)
void fixStyles (int32_t start, int32_t limit, int32_t newLen)
virtual UChar32 getChar32At (int32_t offset) const
virtual UChar getCharAt (int32_t offset) const
virtual int32_t getLength () const
virtual void handleReplaceBetween (int32_t start, int32_t limit, const UnicodeString &text)

Private Attributes

UnicodeString chars
UnicodeString styles

Static Private Attributes

static const char fgClassID = 0
static const UChar NO_STYLE = 0x005F
static const UChar NO_STYLE_MARK = 0xFFFF

The documentation for this class was generated from the following file:

Generated by  Doxygen 1.6.0   Back to index