DescriptionConvert some methods to std::lower_bound and std::find_if.
This CL updates XFA_GetElementTypeForName() to use std::lower_bound instead of
a custom binary search implementation to find the element info.
XFA_GetPropertyOfElement() is changed to use std::find_if. Previously it was
using a custom binary search implementation. Changing this to non-binary search
will allow having the items in g_XFAElementPropertyData be out of XFA_Element
order. There are at most 19 items that need to be searched and often 1 or 2.
Committed: https://pdfium.googlesource.com/pdfium/+/d5fd8e4aa5041b2402b703d824d8736bd5407231
Patch Set 1 #
Total comments: 1
Messages
Total messages: 9 (5 generated)
|