Lines Matching refs:this
54 $this->regex = $regex;
55 $this->flags = $flags;
56 $this->mode = $mode;
57 $this->preg_flags = $preg_flags;
64 * @return whether this is a match
66 * @warning never call this twice for the same state
71 $this->key = parent::key();
72 $this->current = parent::current();
73 /* note that we use $this->current, rather than calling parent::current() */
74 $subject = ($this->flags & self::USE_KEY) ? $this->key : $this->current;
75 switch($this->mode)
78 return preg_match($this->regex, $subject, $matches, $this->preg_flags);
81 $this->current = array();
82 return preg_match($this->regex, $subject, $this->current, $this->preg_flags) > 0;
85 $this->current = array();
86 return preg_match_all($this->regex, $subject, $this->current, $this->preg_flags) > 0;
89 $this->current = array();
90 preg_split($this->regex, $subject, $this->current, $this->preg_flags) > 1;
93 $this->current = array();
94 $result = preg_replace($this->regex, $this->replacement, $subject);
95 if ($this->flags & self::USE_KEY)
97 $this->key = $result;
101 $this->current = $result;
110 return $this->key;
117 return $this->current;
124 return $this->mode;
131 $this->mode = $mode;
138 return $this->flags;
145 $this->flags = $flags;
152 return $this->preg_flags;
159 $this->preg_flags = $preg_flags;
166 return $this->regex;