Lines Matching defs:regions

1744   // For regions that start in the same place, regions that last longer should
1748 // For regions that are exactly the same, one of them must be the "literal"
1756 // Flattens a list of possibly-overlapping "regions" to a list of
1757 // non-overlapping "parts". At least one of the input regions must span the
1758 // entire space of possible indexes. The regions parameter will sorted in-place
1762 std::vector<NumberFormatSpan>* regions) {
1773 // input regions: 0000000211 7
1784 // input regions: 0000000 111
1790 // We arrange the overlapping input regions like a mountain range where
1791 // smaller regions are "on top" of larger regions, and we output a birds-eye
1792 // view of the mountains, so that smaller regions take priority over larger
1793 // regions.
1794 std::sort(regions->begin(), regions->end(), cmp_NumberFormatSpan);
1796 // At least one item in regions must be a region spanning the entire string.
1799 NumberFormatSpan top_region = regions->at(0);
1811 if (region_iterator < regions->size()) {
1812 next_region_begin_pos = regions->at(region_iterator).begin_pos;
1829 top_region = regions->at(overlapping_region_index_stack.back());
1838 if (region_iterator < regions->size()) {
1840 top_region = regions->at(overlapping_region_index_stack.back());
1860 std::vector<NumberFormatSpan> regions;
1865 regions.push_back(NumberFormatSpan(-1, 0, formatted_text.length()));
1879 regions.push_back(NumberFormatSpan(field, start, limit));
1884 std::vector<NumberFormatSpan> parts = FlattenRegionsToParts(&regions);