37 sal_uInt16 nCapacity = 0;
38 for (
const auto& rPair : pRanges)
40 nCapacity +=
rangeSize(rPair.first, rPair.second);
47 for (sal_Int32
i = 0;
i < pRanges.
size(); ++
i)
53 if (
i < pRanges.
size() - 1 && !
validGap(
p.second, pRanges[
i + 1].first))
constexpr bool validRange(sal_uInt16 wid1, sal_uInt16 wid2)
constexpr bool validGap(sal_uInt16 wid1, sal_uInt16 wid2)
sal_uInt16 CountRanges(const WhichRangesContainer &pRanges)
Determines the number of sal_uInt16s in a container of pairs of sal_uInt16s, each representing a rang...
bool validRanges2(const WhichRangesContainer &pRanges)
constexpr std::size_t rangeSize(sal_uInt16 wid1, sal_uInt16 wid2)
Most of the time, the which ranges we point at are a compile-time literal.
sal_Int32 size() const noexcept