Lines Matching refs:s
86 $s = [];
87 $s[self::$ORIG] = $orig;
88 $s[self::$TO] = trim($data[self::$TO]);
89 $s[self::$IN] = $ns;
90 $s[self::$FLAGS] = isset($data[self::$FLAGS]) ? trim($data[self::$FLAGS]) : null;
91 $s[self::$TOOLTIP] = isset($data[self::$FLAGS]) ? strstr($data[self::$FLAGS], 'tt') !== FALSE : false;
92 $s[self::$ONCE] = isset($data[self::$FLAGS]) ? strstr($data[self::$FLAGS], 'once') !== FALSE : false;
93 $s[self::$INWORD] = isset($data[self::$FLAGS]) ? strstr($data[self::$FLAGS], 'inword') !== FALSE : false;
96 if ($s[self::$INWORD]) {
97 $s[self::$MATCH] = preg_replace('/ /', '\s', $orig);
100 $s[self::$MATCH] = '\b' . preg_replace('/ /', '\s', $orig) . '\b';
103 self::$subs[] = $s;
106 self::$regexSubs[] = $s;
111 $s = $this->cacheMatch($orig, $s);
125 // If there's a matching non-regex pattern, or we cached it after finding the regex patter on the page,
133 // There's no way to determine which match sent us here, so we have to loop through the whole list.
134 foreach (self::$regexSubs as &$s) {
135 if (preg_match('/^' . $s[self::$MATCH] . '$/', $match)) {
137 $found = $this->cacheMatch($match, $s);