|
|
|
@ -619,6 +619,19 @@ struct ArrayOf |
|
|
|
|
hb_array_t<Type> sub_array (unsigned int start_offset, unsigned int *count = nullptr /* IN/OUT */) |
|
|
|
|
{ return as_array ().sub_array (start_offset, count); } |
|
|
|
|
|
|
|
|
|
template <typename T> |
|
|
|
|
Type &lsearch (const T &x, Type ¬_found = Crap (Type)) |
|
|
|
|
{ return *as_array ().lsearch (x, ¬_found); } |
|
|
|
|
template <typename T> |
|
|
|
|
const Type &lsearch (const T &x, const Type ¬_found = Null (Type)) const |
|
|
|
|
{ return *as_array ().lsearch (x, ¬_found); } |
|
|
|
|
template <typename T> |
|
|
|
|
bool lfind (const T &x, unsigned *pos = nullptr) const |
|
|
|
|
{ return as_array ().lfind (x, pos); } |
|
|
|
|
|
|
|
|
|
void qsort (unsigned int start = 0, unsigned int end = (unsigned int) -1) |
|
|
|
|
{ as_array ().qsort (start, end); } |
|
|
|
|
|
|
|
|
|
hb_success_t serialize (hb_serialize_context_t *c, unsigned items_len) |
|
|
|
|
{ |
|
|
|
|
TRACE_SERIALIZE (this); |
|
|
|
@ -676,19 +689,6 @@ struct ArrayOf |
|
|
|
|
return_trace (true); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
template <typename T> |
|
|
|
|
Type &lsearch (const T &x, Type ¬_found = Crap (Type)) |
|
|
|
|
{ return *as_array ().lsearch (x, ¬_found); } |
|
|
|
|
template <typename T> |
|
|
|
|
const Type &lsearch (const T &x, const Type ¬_found = Null (Type)) const |
|
|
|
|
{ return *as_array ().lsearch (x, ¬_found); } |
|
|
|
|
template <typename T> |
|
|
|
|
bool lfind (const T &x, unsigned *pos = nullptr) const |
|
|
|
|
{ return as_array ().lfind (x, pos); } |
|
|
|
|
|
|
|
|
|
void qsort (unsigned int start = 0, unsigned int end = (unsigned int) -1) |
|
|
|
|
{ as_array ().qsort (start, end); } |
|
|
|
|
|
|
|
|
|
bool sanitize_shallow (hb_sanitize_context_t *c) const |
|
|
|
|
{ |
|
|
|
|
TRACE_SANITIZE (this); |
|
|
|
|