Go to the documentation of this file.
30 #define INITIAL_CAPACITY 16
38 #define CAPACITY_GROW_LIMIT 128
209 static const char fgClassID;
222 inline RunArray::RunArray()
223 : UObject(), fClientArrays(
FALSE), fLimits(
NULL), fCount(0), fCapacity(0)
228 inline RunArray::RunArray(
const RunArray & )
229 : UObject(), fClientArrays(
FALSE), fLimits(
NULL), fCount(0), fCapacity(0)
235 :
UObject(), fClientArrays(
TRUE), fLimits(limits), fCount(count), fCapacity(count)
252 if (run < 0 || run >= fCount) {
378 static const char fgClassID;
383 inline FontRuns::FontRuns()
384 : RunArray(0), fFonts(
NULL)
389 inline FontRuns::FontRuns(
const FontRuns & )
390 : RunArray(0), fFonts(
NULL)
396 :
RunArray(limits, count), fFonts(fonts)
520 static const char fgClassID;
523 inline LocaleRuns::LocaleRuns()
524 : RunArray(0), fLocales(
NULL)
529 inline LocaleRuns::LocaleRuns(
const LocaleRuns & )
530 : RunArray(0), fLocales(
NULL)
536 :
RunArray(limits, count), fLocales(locales)
652 static const char fgClassID;
657 inline ValueRuns::ValueRuns()
658 : RunArray(0), fValues(
NULL)
663 inline ValueRuns::ValueRuns(
const ValueRuns & )
664 : RunArray(0), fValues(
NULL)
670 :
RunArray(limits, count), fValues(values)
virtual UClassID getDynamicClassID() const
ICU "poor man's RTTI", returns a UClassID for the actual class.
#define FALSE
The FALSE value of a UBool.
virtual UClassID getDynamicClassID() const
ICU "poor man's RTTI", returns a UClassID for the actual class.
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_LAYOUTEX_API
Set to export library symbols from inside the layout extensions library, and to import them from outs...
Basic definitions for ICU, for both C and C++ APIs.
le_bool fClientArrays
Set by the constructors to indicate whether or not the client supplied the data arrays.
virtual void grow(le_int32 capacity)
Grow a data array to the given initial size.
The RunArray class is a base class for building classes which represent data that is associated with ...
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 ...
virtual ~LocaleRuns()
The destructor; virtual so that subclass destructors are invoked as well.
virtual ~RunArray()
The destructor; virtual so that subclass destructors are invoked as well.
static UClassID getStaticClassID()
ICU "poor man's RTTI", returns a UClassID for this class.
#define NULL
Define NULL if necessary, to 0 for C++ and to ((void *)0) for C.
int32_t le_int32
A type used for signed, 32-bit integers.
virtual ~ValueRuns()
The destructor; virtual so that subclass destructors are invoked as well.
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...
virtual void init(le_int32 capacity)
Create a data array with the given initial size.
The ValueRuns class associates integer values with runs of text.
LocaleRuns(le_int32 initialCapacity)
Construct an empty LocaleRuns object.
const Locale * getLocale(le_int32 run) const
Get the Locale object assoicated with the given run of text.
UBool le_bool
A type used for boolean values.
static UClassID getStaticClassID()
ICU "poor man's RTTI", returns a UClassID for this class.
UObject is the common ICU "boilerplate" class.
void * UClassID
UClassID is used to identify classes without using the compiler's RTTI.
#define TRUE
The TRUE value of a UBool.
virtual void init(le_int32 capacity)
Create a data array with the given initial size.
The LocaleRuns class associates pointers to Locale objects with runs of text.
The FontRuns class associates pointers to LEFontInstance objects with runs of text.
virtual void grow(le_int32 capacity)
Grow a data array to the given initial size.
FontRuns(le_int32 initialCapacity)
Construct an empty FontRuns object.
le_int32 getCount() const
Get the number of entries in the limit indices array.
virtual UClassID getDynamicClassID() const
ICU "poor man's RTTI", returns a UClassID for the actual class.
virtual void grow(le_int32 capacity)
Grow a data array to the given initial size.
This is a virtual base class that serves as the interface between a LayoutEngine and the platform fon...
void reset()
Reset the limit indices array.
C++ API: Layout Engine Font Instance object.
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...
ValueRuns(le_int32 initialCapacity)
Construct an empty ValueRuns object.
static UClassID getStaticClassID()
ICU "poor man's RTTI", returns a UClassID for this class.
virtual UClassID getDynamicClassID() const
ICU "poor man's RTTI", returns a UClassID for the actual class.
virtual ~FontRuns()
The destructor; virtual so that subclass destructors are invoked as well.
C++ API: Locale ID object.
le_int32 add(le_int32 limit)
Add a limit index to the limit indices array and return the run index where it was stored.
#define U_NAMESPACE_END
This is used to end a declaration of a public ICU C++ API.
virtual void init(le_int32 capacity)
Create a data array with the given initial size.
#define U_NAMESPACE_BEGIN
This is used to begin a declaration of a public ICU C++ API.
A Locale object represents a specific geographical, political, or cultural region.
virtual void grow(le_int32 capacity)
Grow a data array to the given initial size.
RunArray(le_int32 initialCapacity)
Construct an empty RunArray object.
C API: Basic definitions for the ICU LayoutEngine.
le_int32 getValue(le_int32 run) const
Get the integer value assoicated with the given run of text.
const LEFontInstance * getFont(le_int32 run) const
Get the LEFontInstance object assoicated with the given run of text.
le_int32 getLimit() const
Get the last limit index.