Home | History | Annotate | Download | only in src

Lines Matching full:characterrange

1544   ZoneList<CharacterRange>* ranges = cc->ranges();
1561 CharacterRange& range = ranges->at(last_valid_range);
1601 CharacterRange& range = ranges->at(i);
1624 CharacterRange& range = ranges->at(last_valid_range);
2010 ZoneList<CharacterRange>* ranges = tree->ranges();
2028 CharacterRange range = ranges->at(first_range);
2044 CharacterRange range = ranges->at(i);
2644 ZoneList<CharacterRange>* ranges = cc->ranges();
3440 CharacterRange range = node->ranges()->at(j);
3630 static bool CompareInverseRanges(ZoneList<CharacterRange>* ranges,
3639 CharacterRange range = ranges->at(0);
3659 static bool CompareRanges(ZoneList<CharacterRange>* ranges,
3666 CharacterRange range = ranges->at(i >> 1);
3943 ZoneList<CharacterRange>* newline_ranges =
3944 new ZoneList<CharacterRange>(3);
3945 CharacterRange::AddClassEscape('n', newline_ranges);
4070 ZoneList<CharacterRange>* ranges) {
4073 ranges->Add(CharacterRange(elmv[i], elmv[i + 1]));
4080 ZoneList<CharacterRange>* ranges) {
4087 ranges->Add(CharacterRange(last, elmv[i] - 1));
4090 ranges->Add(CharacterRange(last, String::kMaxUtf16CodeUnit));
4094 void CharacterRange::AddClassEscape(uc16 type,
4095 ZoneList<CharacterRange>* ranges) {
4124 ranges->Add(CharacterRange::Everything());
4139 Vector<const uc16> CharacterRange::GetWordBounds() {
4146 CharacterRangeSplitter(ZoneList<CharacterRange>** included,
4147 ZoneList<CharacterRange>** excluded)
4156 ZoneList<CharacterRange>** included_;
4157 ZoneList<CharacterRange>** excluded_;
4163 ZoneList<CharacterRange>** target = entry.out_set()->Get(kInOverlay)
4166 if (*target == NULL) *target = new ZoneList<CharacterRange>(2);
4167 (*target)->Add(CharacterRange(entry.from(), entry.to()));
4171 void CharacterRange::Split(ZoneList<CharacterRange>* base,
4173 ZoneList<CharacterRange>** included,
4174 ZoneList<CharacterRange>** excluded) {
4181 table.AddRange(CharacterRange(overlay[i], overlay[i+1]),
4189 void CharacterRange::AddCaseEquivalents(ZoneList<CharacterRange>* ranges,
4205 ranges->Add(CharacterRange::Singleton(chars[i]));
4245 ranges->Add(CharacterRange(range_from, range_to));
4254 bool CharacterRange::IsCanonical(ZoneList<CharacterRange>* ranges) {
4260 CharacterRange next_range = ranges->at(i);
4267 SetRelation CharacterRange::WordCharacterRelation(
4268 ZoneList<CharacterRange>* range) {
4278 CharacterRange argument_range = range->at(0);
4279 CharacterRange word_range = CharacterRange(kWordRanges[0], kWordRanges[1]);
4332 word_range = CharacterRange(kWordRanges[i], kWordRanges[i + 1]);
4349 ZoneList<CharacterRange>* CharacterSet::ranges() {
4351 ranges_ = new ZoneList<CharacterRange>(2);
4352 CharacterRange::AddClassEscape(standard_set_type_, ranges_);
4360 static void MoveRanges(ZoneList<CharacterRange>* list,
4377 static int InsertRangeInCanonicalList(ZoneList<CharacterRange>* list,
4379 CharacterRange insert) {
4390 CharacterRange current = list->at(i);
4416 CharacterRange to_replace = list->at(start_pos);
4419 list->at(start_pos) = CharacterRange(new_from, new_to);
4430 list->at(start_pos) = CharacterRange(new_from, new_to);
4439 CharacterRange::Canonicalize(ranges_);
4443 void CharacterRange::Canonicalize(ZoneList<CharacterRange>* character_ranges) {
4451 CharacterRange current = character_ranges->at(i);
4476 ASSERT(CharacterRange::IsCanonical(character_ranges));
4480 // Utility function for CharacterRange::Merge. Adds a range at the end of
4483 static void AddRangeToSet(ZoneList<CharacterRange>* set, CharacterRange range) {
4488 CharacterRange lastRange = set->at(n - 1);
4490 set->at(n - 1) = CharacterRange(lastRange.from(), range.to());
4499 ZoneList<CharacterRange>* first_set,
4500 ZoneList<CharacterRange>* second_set,
4501 ZoneList<CharacterRange>* intersection_set,
4502 CharacterRange range) {
4518 void CharacterRange::Merge(ZoneList<CharacterRange>* first_set,
4519 ZoneList<CharacterRange>* second_set,
4520 ZoneList<CharacterRange>* first_set_only_out,
4521 ZoneList<CharacterRange>* second_set_only_out,
4522 ZoneList<CharacterRange>* both_sets_out) {
4524 ASSERT(CharacterRange::IsCanonical(first_set));
4525 ASSERT(CharacterRange::IsCanonical(second_set));
4555 CharacterRange next_range;
4573 CharacterRange(from, to));
4583 CharacterRange(from, next_range.from()-1));
4592 CharacterRange(next_range.from(), to));
4604 CharacterRange(next_range.from(), next_range.to()));
4615 CharacterRange(from, to));
4619 void CharacterRange::Negate(ZoneList<CharacterRange>* ranges,
4620 ZoneList<CharacterRange>* negated_ranges) {
4621 ASSERT(CharacterRange::IsCanonical(ranges));
4631 CharacterRange range = ranges->at(i);
4632 negated_ranges->Add(CharacterRange(from + 1, range.from() - 1));
4637 negated_ranges->Add(CharacterRange(from + 1, String::kMaxUtf16CodeUnit));
4730 void DispatchTable::AddRange(CharacterRange full_range, int value) {
4731 CharacterRange current = full_range;
4751 CharacterRange left(entry->from(), current.from() - 1);
4752 CharacterRange right(current.from(), entry->to());
4936 ZoneList<CharacterRange>* following_chars = that->FirstCharacterSet();
4938 CharacterRange::Canonicalize(following_chars);
4941 CharacterRange::WordCharacterRelation(following_chars);
4960 ZoneList<CharacterRange>* RegExpNode::FirstCharacterSet() {
4966 ZoneList<CharacterRange>* all_set = new ZoneList<CharacterRange>(1);
4967 all_set->Add(CharacterRange::Everything());
5002 ZoneList<CharacterRange>* character_set =
5007 ZoneList<CharacterRange>* body_set =
5009 ZoneList<CharacterRange>* union_set =
5010 new ZoneList<CharacterRange>(Max(character_set->length(),
5012 CharacterRange::Merge(character_set,
5049 set_first_character_set(new ZoneList<CharacterRange>(0));
5105 ZoneList<CharacterRange>* range = new ZoneList<CharacterRange>(1);
5106 range->Add(CharacterRange(first_char, first_char));
5111 ZoneList<CharacterRange>* ranges = char_class->ranges();
5114 CharacterRange::Canonicalize(ranges);
5124 ZoneList<CharacterRange>* negated_ranges =
5125 new ZoneList<CharacterRange>(new_length);
5126 CharacterRange::Negate(ranges, negated_ranges);
5143 AddRange(CharacterRange::Everything());
5169 CharacterRange range(from, entry.to());
5186 AddRange(CharacterRange::Everything());
5196 static int CompareRangeByFrom(const CharacterRange* a,
5197 const CharacterRange* b) {
5202 void DispatchTableConstructor::AddInverse(ZoneList<CharacterRange>* ranges) {
5206 CharacterRange range = ranges->at(i);
5208 AddRange(CharacterRange(last, range.from() - 1));
5217 AddRange(CharacterRange(last, String::kMaxUtf16CodeUnit));
5226 AddRange(CharacterRange(c, c));
5231 ZoneList<CharacterRange>* ranges = tree->ranges();