30 #define INITIAL_CAPACITY 16
38 #define CAPACITY_GROW_LIMIT 128
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)
C++ API: Layout Engine Font Instance object.
C API: Basic definitions for the ICU LayoutEngine.
int32_t le_int32
A type used for signed, 32-bit integers.
UBool le_bool
A type used for boolean values.
The FontRuns class associates pointers to LEFontInstance objects with runs of text.
le_int32 add(const LEFontInstance *font, le_int32 limit)
Add an LEFontInstance and limit index pair to the data arrays and return the run index where the data...
virtual void init(le_int32 capacity)
Create a data array with the given initial size.
FontRuns(le_int32 initialCapacity)
Construct an empty FontRuns object.
const LEFontInstance * getFont(le_int32 run) const
Get the LEFontInstance object assoicated with the given run of text.
virtual ~FontRuns()
The destructor; virtual so that subclass destructors are invoked as well.
virtual void grow(le_int32 capacity)
Grow a data array to the given initial size.
FontRuns(const LEFontInstance **fonts, const le_int32 *limits, le_int32 count)
Construct a FontRuns object from pre-existing arrays of fonts and limit indices.
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.
This is a virtual base class that serves as the interface between a LayoutEngine and the platform fon...
The LocaleRuns class associates pointers to Locale objects with runs of text.
static UClassID getStaticClassID()
ICU "poor man's RTTI", returns a UClassID for this class.
le_int32 add(const Locale *locale, le_int32 limit)
Add a Locale and limit index pair to the data arrays and return the run index where the data was stor...
LocaleRuns(const Locale **locales, const le_int32 *limits, le_int32 count)
Construct a LocaleRuns object from pre-existing arrays of locales and limit indices.
const Locale * getLocale(le_int32 run) const
Get the Locale object assoicated with the given run of text.
virtual void grow(le_int32 capacity)
Grow a data array to the given initial size.
virtual void init(le_int32 capacity)
Create a data array with the given initial size.
virtual ~LocaleRuns()
The destructor; virtual so that subclass destructors are invoked as well.
virtual UClassID getDynamicClassID() const
ICU "poor man's RTTI", returns a UClassID for the actual class.
LocaleRuns(le_int32 initialCapacity)
Construct an empty LocaleRuns object.
A Locale object represents a specific geographical, political, or cultural region.
The RunArray class is a base class for building classes which represent data that is associated with ...
le_int32 getCount() const
Get the number of entries in the limit indices array.
virtual void init(le_int32 capacity)
Create a data array with the given initial size.
RunArray(le_int32 initialCapacity)
Construct an empty RunArray object.
virtual UClassID getDynamicClassID() const
ICU "poor man's RTTI", returns a UClassID for the actual class.
le_int32 getLimit() const
Get the last limit index.
le_int32 add(le_int32 limit)
Add a limit index to the limit indices array and return the run index where it was stored.
le_bool fClientArrays
Set by the constructors to indicate whether or not the client supplied the data arrays.
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.
void reset()
Reset the limit indices array.
RunArray(const le_int32 *limits, le_int32 count)
Construct a RunArray object from a pre-existing array of limit indices.
virtual ~RunArray()
The destructor; virtual so that subclass destructors are invoked as well.
UObject is the common ICU "boilerplate" class.
The ValueRuns class associates integer values with runs of text.
virtual UClassID getDynamicClassID() const
ICU "poor man's RTTI", returns a UClassID for the actual class.
virtual ~ValueRuns()
The destructor; virtual so that subclass destructors are invoked as well.
ValueRuns(le_int32 initialCapacity)
Construct an empty ValueRuns object.
le_int32 getValue(le_int32 run) const
Get the integer value assoicated with the given run of text.
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.
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.
virtual void init(le_int32 capacity)
Create a data array with the given initial size.
le_int32 add(le_int32 value, le_int32 limit)
Add an integer value and limit index pair to the data arrays and return the run index where the data ...
C++ API: Locale ID object.
#define TRUE
The TRUE value of a UBool.
#define FALSE
The FALSE value of a UBool.
void * UClassID
UClassID is used to identify classes without using the compiler's RTTI.
Basic definitions for ICU, for both C and C++ APIs.
#define NULL
Define NULL if necessary, to 0 for C++ and to ((void *)0) for C.
#define U_LAYOUTEX_API
Set to export library symbols from inside the layout extensions library, and to import them from outs...
#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.