85 inline int32_t length()
const;
94 inline UChar charAt(int32_t offset)
const;
108 inline UChar32 char32At(int32_t offset)
const;
172 virtual void copy(int32_t start, int32_t limit, int32_t dest) = 0;
Replaceable is an abstract base class representing a string of characters that supports the replaceme...
virtual ~Replaceable()
Destructor.
virtual UBool hasMetaData() const
Returns true if this object contains metadata.
virtual UChar getCharAt(int32_t offset) const =0
Virtual version of charAt().
virtual UChar32 getChar32At(int32_t offset) const =0
Virtual version of char32At().
int32_t length() const
Returns the number of 16-bit code units in the text.
virtual void copy(int32_t start, int32_t limit, int32_t dest)=0
Copies a substring of this object, retaining metadata.
virtual int32_t getLength() const =0
Virtual version of length().
UChar32 char32At(int32_t offset) const
Returns the 32-bit code point at the given 16-bit offset into the text.
virtual Replaceable * clone() const
Clone this object, an instance of a subclass of Replaceable.
virtual void extractBetween(int32_t start, int32_t limit, UnicodeString &target) const =0
Copies characters in the range [start, limit) into the UnicodeString target.
UChar charAt(int32_t offset) const
Returns the 16-bit code unit at the given offset into the text.
virtual void handleReplaceBetween(int32_t start, int32_t limit, const UnicodeString &text)=0
Replaces a substring of this object with the given text.
Replaceable()
Default constructor.
UObject is the common ICU "boilerplate" class.
UnicodeString is a string class that stores Unicode characters directly and provides similar function...
int32_t UChar32
Define UChar32 as a type for single Unicode code points.
int8_t UBool
The ICU boolean type.
uint16_t UChar
Define UChar to be UCHAR_TYPE, if that is #defined (for example, to char16_t), or wchar_t if that is ...
C++ API: Common ICU base class UObject.
#define U_COMMON_API
Set to export library symbols from inside the common library, and to import them from outside.
#define U_NAMESPACE_END
This is used to end a declaration of a public ICU C++ API.
#define U_NAMESPACE_BEGIN
This is used to begin a declaration of a public ICU C++ API.