Lines Matching refs:p

221         $p = $this->getPatterns();
271 if(preg_match("/^({$p->variable})\s*(?:\((asc|desc)(?:ending)?\))?$/S",utf8_trim($line['text']),$match)) {
272 $var = $p->variable($match[1]);
298 if(preg_match("/({$p->variable})$/",utf8_trim($line['text']),$match)) {
299 $var = $p->variable($match[1]);
322 if(preg_match("/^({$p->variable})$/",utf8_trim($line['text']),$match)) {
323 $var = $p->variable($match[1]);
496 $p = $this->getPatterns();
507 if(preg_match("/^({$p->variable}|{$p->reflit})\s+({$p->variable}|{$p->predicate})\s*({$p->type})?\s*:\s*({$p->any})$/S",$line,$match)) {
517 $subject = $p->reflit($subject)->reference;
534 if(preg_match("/^({$p->variable})\s*({$p->type})?$/",$object,$captures)!=1) {
545 $vtype = $p->type($vtype);
546 $type = $p->type($type);
560 $type = $p->type($type);
571 } elseif(preg_match("/^({$p->variable})\s*({$p->type})?\s*({$p->operator})\s*({$p->variable})\s*({$p->type})?$/S",$line, $match)) {
580 $rtype = $p->type($rtype);
581 $ltype = $p->type($ltype);
605 } elseif(preg_match("/^({$p->variable})\s*({$p->type})?\s*({$p->operator})\s*({$p->any})$/S",$line, $match)) {
613 list($type,$hint) = $p->type($ltype);
644 } elseif(preg_match("/^({$p->any})\s*({$p->operator})\s*({$p->variable})\s*({$p->type})?$/S",$line, $match)) {
650 list($type, $hint) = $p->type($rtype);
715 $p = $this->getPatterns();
721 if(preg_match("/^({$p->variable})\s*({$p->aggregate})?\s*({$p->type})?(?:\s*(:)\s*({$p->any})?\s*)?$/S",$line, $match)) {
723 $variable = $p->variable($var)->name;
726 list($type,$hint) = $p->type($vtype);
727 list($agg,$agghint) = $p->aggregate($vaggregate);
743 $p = $this->getPatterns();
747 if(preg_match_all("/\s*({$p->variable})\s*({$p->aggregate})?\s*({$p->type})?\s*(?:(\")([^\"]*)\")?/",$line,$match, PREG_SET_ORDER)) {
755 $variable = $p->variable($var)->name;
756 list($type, $hint) = $p->type($vtype);
757 list($agg, $agghint) = $p->aggregate($vaggregate);
774 $p = $this->getPatterns();
775 return "(?:\s*{$p->variable}\s*{$p->aggregate}?\s*{$p->type}?".($captions?'\s*(?:"[^"]*")?':'').")";
984 $p = $this->getPatterns();
990 if (preg_match('/^('.$p->predicate.')(\*)?\s*:\s*('.$p->any.')$/', $line, $match)) {
1004 foreach ($properties as $name => $p) {
1005 if (!isset($propertyValues[$name]) && isset($p['default'])) {
1006 $this->_setPropertyValue($properties, 'default value', null, $name, false, $p['default'], $propertyValues);
1020 $propertyList = implode(', ', array_map(function ($n, $p) use ($property_title_values) {
1023 }, $p['choices']));
1032 $p = $properties[$variable];
1033 $minOccur = isset($p['minOccur']) ? $p['minOccur'] : 1;
1034 $maxOccur = isset($p['maxOccur']) ? $p['maxOccur'] : $minOccur;
1054 } else if (isset($p['choices'])) { // Check whether the given property values are valid choices
1058 foreach ($p['choices'] as $nc => $c) {
1068 if (!isset($choices['']) && isset($p['default'])) {
1069 $choices[''] = $choices[$p['default']];
1081 } else if (isset($p['pattern'])) { // Check whether the given property values match the pattern
1082 $incorrect = array_filter($values, function($v) use ($p) { return !preg_match($p['pattern'], $v); });
1085 if (isset($p['pattern_desc'])) {
1086 $this->emitError($region, 'error_property_patterndesc', hsc($group), hsc($variable), hsc($v), $p['pattern_desc']);
1088 $this->emitError($region, 'error_property_pattern', hsc($group), hsc($variable), hsc($v), hsc($p['pattern']));