30 #define INITIAL_CAPACITY 16
38 #define CAPACITY_GROW_LIMIT 128
177 virtual void init(
le_int32 capacity);
191 virtual void grow(
le_int32 capacity);
209 static const char fgClassID;
235 :
UObject(), fClientArrays(
TRUE), fLimits(limits), fCount(count), fCapacity(count)
252 if (run < 0 || run >= fCount) {
378 static const char fgClassID;
396 :
RunArray(limits, count), fFonts(fonts)
520 static const char fgClassID;
536 :
RunArray(limits, count), fLocales(locales)
652 static const char fgClassID;
670 :
RunArray(limits, count), fValues(values)
virtual UClassID getDynamicClassID() const
ICU "poor man's RTTI", returns a UClassID for the actual class.
RunArray(const le_int32 *limits, le_int32 count)
Construct a RunArray object from a pre-existing array of limit indices.
The FontRuns class associates pointers to LEFontInstance objects with runs of text.
The RunArray class is a base class for building classes which represent data that is associated with ...
virtual UClassID getDynamicClassID() const
ICU "poor man's RTTI", returns a UClassID for the actual class.
virtual UClassID getDynamicClassID() const
ICU "poor man's RTTI", returns a UClassID for the actual class.
LocaleRuns(const Locale **locales, const le_int32 *limits, le_int32 count)
Construct a LocaleRuns object from pre-existing arrays of locales and limit indices.
C API: Basic definitions for the ICU LayoutEngine.
le_int32 getCount() const
Get the number of entries in the limit indices array.
int32_t le_int32
A type used for signed, 32-bit integers.
UBool le_bool
A type used for boolean values.
static UClassID getStaticClassID()
ICU "poor man's RTTI", returns a UClassID for this class.
ValueRuns(const le_int32 *values, const le_int32 *limits, le_int32 count)
Construct a ValueRuns object from pre-existing arrays of values and limit indices.
#define U_NAMESPACE_BEGIN
This is used to begin a declaration of a public ICU C++ API.
This is a virtual base class that serves as the interface between a LayoutEngine and the platform fon...
virtual UClassID getDynamicClassID() const
ICU "poor man's RTTI", returns a UClassID for the actual class.
static UClassID getStaticClassID()
ICU "poor man's RTTI", returns a UClassID for this class.
virtual void grow(le_int32 capacity)
Grow a data array to the given initial size.
le_bool fClientArrays
Set by the constructors to indicate whether or not the client supplied the data arrays.
#define NULL
Define NULL if necessary, to 0 for C++ and to ((void *)0) for C.
void reset()
Reset the limit indices array.
#define TRUE
The TRUE value of a UBool.
The ValueRuns class associates integer values with runs of text.
The LocaleRuns class associates pointers to Locale objects with runs of text.
virtual void init(le_int32 capacity)
Create a data array with the given initial size.
static UClassID getStaticClassID()
ICU "poor man's RTTI", returns a UClassID for this class.
#define U_NAMESPACE_END
This is used to end a declaration of a public ICU C++ API If the compiler doesn't support namespaces...
UObject is the common ICU "boilerplate" class.
FontRuns(const LEFontInstance **fonts, const le_int32 *limits, le_int32 count)
Construct a FontRuns object from pre-existing arrays of fonts and limit indices.
#define U_LAYOUTEX_API
Set to export library symbols from inside the layout extensions library, and to import them from outs...
void * UClassID
UClassID is used to identify classes without using RTTI, since RTTI is not yet supported by all C++ c...
C++ API: Locale ID object.
Basic definitions for ICU, for both C and C++ APIs.
#define FALSE
The FALSE value of a UBool.
le_int32 add(le_int32 limit)
Add a limit index to the limit indices array and return the run index where it was stored...
C++ API: Layout Engine Font Instance object.
A Locale object represents a specific geographical, political, or cultural region.
static UClassID getStaticClassID()
ICU "poor man's RTTI", returns a UClassID for this class.
le_int32 getLimit() const
Get the last limit index.