commit | 63a716c540657d2e0c71d3443a87ac97530cf265 | [log] [tgz] |
---|---|---|
author | Behdad Esfahbod <behdad@behdad.org> | Fri Jan 29 20:36:42 2021 -0700 |
committer | Behdad Esfahbod <behdad@behdad.org> | Mon Feb 01 11:30:39 2021 -0800 |
tree | ac8bad1d8a3038d91fb2703a8abe1a87aebc271a | |
parent | 921b4e46b0096873cee8c182cade0dafa8b35b43 [diff] |
[indic] Use lfind()
diff --git a/src/hb-ot-shape-complex-indic.hh b/src/hb-ot-shape-complex-indic.hh index 5ee1c04..8c6e171 100644 --- a/src/hb-ot-shape-complex-indic.hh +++ b/src/hb-ot-shape-complex-indic.hh
@@ -310,10 +310,7 @@ static inline bool is_ra (hb_codepoint_t u) { - for (unsigned int i = 0; i < ARRAY_LENGTH (ra_chars); i++) - if (u == ra_chars[i]) - return true; - return false; + return hb_array (ra_chars).lfind (u); } static inline void