Add hb_array_t::lfind
diff --git a/src/hb-open-type.hh b/src/hb-open-type.hh
index fee71df..2bffbd7 100644
--- a/src/hb-open-type.hh
+++ b/src/hb-open-type.hh
@@ -442,6 +442,9 @@
template <typename T>
const Type &lsearch (unsigned int len, const T &x, const Type ¬_found = Null (Type)) const
{ return *as_array (len).lsearch (x, ¬_found); }
+ template <typename T>
+ bool lfind (unsigned int len, const T &x, unsigned *pos = nullptr) const
+ { return as_array (len).lfind (x, pos); }
void qsort (unsigned int len, unsigned int start = 0, unsigned int end = (unsigned int) -1)
{ as_array (len).qsort (start, end); }
@@ -667,6 +670,9 @@
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); }