ICU-4407 Add reset() method to RunArray.
X-SVN-Rev: 18340
This commit is contained in:
parent
612b6ad342
commit
280c0428ef
@ -90,6 +90,14 @@ public:
|
||||
*/
|
||||
inline le_int32 getCount() const;
|
||||
|
||||
/**
|
||||
* Reset the limit indices array. This method sets the number of entries in the
|
||||
* limit indices array to zero. It does not delete the arrays.
|
||||
*
|
||||
* @draft ICU 3.6
|
||||
*/
|
||||
inline void reset();
|
||||
|
||||
/**
|
||||
* Get the last limit index. This is the number of characters in
|
||||
* the text.
|
||||
@ -232,6 +240,11 @@ inline le_int32 RunArray::getCount() const
|
||||
return fCount;
|
||||
}
|
||||
|
||||
inline void RunArray::reset()
|
||||
{
|
||||
fCount = 0;
|
||||
}
|
||||
|
||||
inline le_int32 RunArray::getLimit(le_int32 run) const
|
||||
{
|
||||
if (run < 0 || run >= fCount) {
|
||||
|
Loading…
Reference in New Issue
Block a user