Lines Matching refs:m0
171 private function isListTypeChanged($m0, $m1)
173 return (strncmp($m0['list'], $m1['list'], 1) !== 0);
407 $m0 = array_pop($this->stack);
411 if (($m1['depth'] == 0) && ($m0['item'] == 'dt')) {
412 $m1['depth'] = $m0['depth'];
422 array_push($this->stack, $m0);
427 if (isset($m0['p'])) $this->_closeParagraph($pos,$match,$handler);
432 if ($m0['depth'] > $m1['depth']) {
433 $this->_closeWrapper($m0, $pos,$match,$handler);
437 $m1['depth'] = min($m0['depth'], $m1['depth']);
440 $m0['p'] = 1;
443 if ($m0['depth'] >= $m1['depth']) {
444 $this->_closeWrapper($m0, $pos,$match,$handler);
449 while (isset($m0['depth']) && ($m0['depth'] > $m1['depth'])) {
451 $this->_closeItem($m0, $pos,$match,$handler);
453 $this->_closeList($m0, $pos,$match,$handler);
455 $m0 = array_pop($this->stack);
466 $m1['depth'] = $m0['depth'];
467 $m1 = $m0 + array('p' => 1);
475 if ($m0['depth'] < $m1['depth']) { // list becomes deeper
477 array_push($this->stack, $m0);
479 } else if ($m0['depth'] == $m1['depth']) {
481 $this->_closeItem($m0, $pos,$match,$handler);
483 if ($this->isListTypeChanged($m0, $m1)) {
484 $this->_closeList($m0, $pos,$match,$handler);
485 $m0['num'] = 0;
490 if (($m0['depth'] < $m1['depth']) || (isset($m0['num']) && ($m0['num'] === 0))) {
494 if (isset($m1['num']) && !is_numeric($m1['num'])) $m1['num'] = $m0['num'] +1;