Lines Matching refs:Range
78 // range,
95 std::vector<Range>* primary_ranges,
96 std::vector<Range>* secondary_ranges,
109 // We are ending a range. Which range?
117 // We are starting a range. Which range?
120 primary_ranges->push_back(Range(idx - 1, length - 2));
122 secondary_ranges->push_back(Range(idx - 1, length - 2));
219 static bool PopulateBounds(const std::vector<Range>& padding,
220 const std::vector<Range>& layout_bounds,
221 const std::vector<Range>& stretch_regions,
236 const Range& range = padding.front();
237 *padding_start = range.start;
238 *padding_end = length - range.end;
257 const Range& range = layout_bounds.front();
261 if (range.start != 0 && range.end != length) {
268 *layout_start = range.end;
271 const Range& range = layout_bounds.back();
272 if (range.end != length) {
279 *layout_end = length - range.start;
285 static int32_t CalculateSegmentCount(const std::vector<Range>& stretch_regions,
342 uint8_t** rows, const std::vector<Range>& horizontal_stretch_regions,
343 const std::vector<Range>& vertical_stretch_regions, const int32_t width,
469 std::vector<Range> horizontal_padding;
470 std::vector<Range> horizontal_layout_bounds;
471 std::vector<Range> vertical_padding;
472 std::vector<Range> vertical_layout_bounds;
473 std::vector<Range> unexpected_ranges;
497 const Range& range = unexpected_ranges[0];
500 << "at x=" << range.start + 1;
513 const Range& range = unexpected_ranges[0];
516 << "at y=" << range.start + 1;
679 ::std::ostream& operator<<(::std::ostream& out, const Range& range) {
680 return out << "[" << range.start << ", " << range.end << ")";