Lines Matching refs:line
85 $line = trim(array_shift($lines));
87 if (strlen($line) < 1) continue;
90 if (strpos($line, '### !') !== false) {
94 } else if (strpos($line, '### ') !== false) {
97 $currentSub = substr($line, 4);
102 } else if (strpos($line, '## ') !== false) {
114 $current = substr($line, 3);
119 } else if (strpos($line, '# ') !== false) {
122 $navbox['title'] = substr($line, 2);
125 } else if (substr($line, 0, 2) == '[[') {
132 $currentGroup['default'] = str_replace($separators, '', $line);
136 $currentGroup[$currentSub] = str_replace($separators, '', $line);
145 if (strpos($line, '!ns') !== false) {
155 if (strpos($line, '+n') !== false) {
157 $namespace = substr($line, 8 + $offset, -2);
162 if (strpos($line, '+t') !== false) {
164 $title = substr($line, 6 + $offset);
167 if (strpos($line, '+nt') !== false) {
169 $nsStart = strpos($line, '[[') + 2;
171 $tStart = strpos($line, '|') + 1;
173 $title = substr($line, $tStart, -2);
175 $namespace = substr($line, $nsStart, ($tStart - $nsStart - 1));
194 } else if (strpos($line, '!tree') !== false) {
196 } else if (strpos($line, '!tag') !== false) {