Lines Matching defs:name

140   // The name of the current sub-expression, if group_type is CAPTURE. Only
159 // Check whether the parser is inside a capture group with the given name.
160 bool IsInsideCaptureGroup(const ZoneVector<base::uc16>* name) const {
161 DCHECK_NOT_NULL(name);
165 if (*s->capture_name() == *name) return true;
181 // Stored capture name (if any).
264 // once for each named capture. Fails if a capture with the same name is
266 bool CreateNamedCaptureAtIndex(const ZoneVector<base::uc16>* name, int index);
268 // Parses the name of a capture group (?<name>pattern). The name must adhere
306 return *lhs->name() < *rhs->name();
1013 // error (e.g. an unterminated or invalid name), but that distinction
1085 ZoneVector<base::uc16>* name =
1092 // non-unicode patterns. Therefore Advance within the capture group name
1093 // has to force-enable unicode, and outside the name revert to default
1123 push_code_unit(name, c);
1129 push_code_unit(name, c);
1142 return name;
1147 const ZoneVector<base::uc16>* name, int index) {
1149 DCHECK_NOT_NULL(name);
1152 DCHECK_NULL(capture->name());
1154 capture->set_name(name);
1178 // The parser is assumed to be on the '<' in \k<name>.
1185 const ZoneVector<base::uc16>* name = ParseCaptureGroupName();
1186 if (name == nullptr) {
1190 if (state->IsInsideCaptureGroup(name)) {
1195 atom->set_name(name);
1223 // Capture used to search the named_captures_ by name, index of the
1228 DCHECK_NULL(search_capture->name());
1229 search_capture->set_name(ref->name());
1468 // name lookup as if the property is Script.
1475 // We require the property name to match exactly to one of the property value
1500 inline bool NameEquals(const char* name, const char (&literal)[N]) {
1501 return strncmp(name, literal, N + 1) == 0;
1504 bool LookupSpecialPropertyValueName(const char* name,
1507 if (NameEquals(name, "Any")) {
1514 } else if (NameEquals(name, "ASCII")) {
1518 } else if (NameEquals(name, "Assigned")) {
1596 // property name/value candidate string does not contain '\0' characters and
1612 // - In \p{name}, 'name' is interpreted
1613 // - either as a general category property value name.
1614 // - or as a binary property name.
1615 // - In \p{name=value}, 'name' is interpreted as an enumerated property name,
1650 // First attempt to interpret as general category property value name.
1651 const char* name = name_1.data();
1652 if (LookupPropertyValueName(UCHAR_GENERAL_CATEGORY_MASK, name, negate,
1657 if (LookupSpecialPropertyValueName(name, add_to, negate, zone())) {
1660 // Then attempt to interpret as binary property name with value name 'Y'.
1661 UProperty property = u_getPropertyEnum(name);
1663 if (!IsExactPropertyAlias(name, property)) return false;
1667 // Both property name and value name are specified. Attempt to interpret
1668 // the property name as enumerated property.