Lines Matching defs:atom
1420 uint32_t RegExpParser::ParseClassAtom(RangeSet *atom)
1426 ret = static_cast<uint32_t>(ParseClassEscape(atom));
1449 atom->Insert(RangeSet(value));
1457 int RegExpParser::ParseClassEscape(RangeSet *atom)
1468 atom->Insert(RangeSet(static_cast<uint32_t>('\b')));
1475 atom->Insert(RangeSet(static_cast<uint32_t>('-')));
1481 atom->Insert(g_rangeD);
1483 atom->Invert(IsUtf16());
1490 atom->Insert(g_rangeS);
1492 atom->Invert(IsUtf16());
1501 atom->Insert(g_rangeW);
1503 atom->Invert(IsUtf16());
1513 !ParseUnicodePropertyClassRange(propertyName, valueName, atom, negate)) {
1528 atom->Insert(RangeSet(static_cast<uint32_t>(value)));
1661 RangeSet *atom, bool negate)
1665 if (MatchUnicodeProperty(UCHAR_GENERAL_CATEGORY_MASK, name, atom, negate)) {
1668 if (MatchSepcialUnicodeProperty(propertyName, negate, atom)) {
1681 return MatchUnicodeProperty(property, negate ? "N" : "Y", atom, false);
1689 return MatchUnicodeProperty(property, valueName.c_str(), atom, negate);
1693 bool RegExpParser::MatchUnicodeProperty(UProperty property, const char* propertyName, RangeSet *atom, bool negate)
1720 atom->Insert(set.getRangeStart(i), set.getRangeEnd(i));
1772 bool RegExpParser::MatchSepcialUnicodeProperty(CString &name, bool negate, RangeSet *atom)
1776 atom->Insert(0, 0x10FFFF);
1780 atom->Insert(0x80, 0x10FFFF);
1782 atom->Insert(0x0, 0x7F);
1785 return MatchUnicodeProperty(UCHAR_GENERAL_CATEGORY, "Unassigned", atom, !negate);