@@ 78-81 (lines=4) @@ | ||
75 | while (true) { |
|
76 | $p = Util::strpos_ex($this->_text, array("«", "»"), $off); |
|
77 | if ($p === false) break; |
|
78 | if ($p['str'] == "«") { |
|
79 | if ($level > 0) if (!$this->is_on('no_bdquotes')) $this->inject_in($p['pos'], self::QUOTE_CRAWSE_OPEN); |
|
80 | $level++; |
|
81 | } |
|
82 | if ($p['str'] == "»") { |
|
83 | $level--; |
|
84 | if ($level > 0) if (!$this->is_on('no_bdquotes')) $this->inject_in($p['pos'], self::QUOTE_CRAWSE_CLOSE); |
|
@@ 82-85 (lines=4) @@ | ||
79 | if ($level > 0) if (!$this->is_on('no_bdquotes')) $this->inject_in($p['pos'], self::QUOTE_CRAWSE_OPEN); |
|
80 | $level++; |
|
81 | } |
|
82 | if ($p['str'] == "»") { |
|
83 | $level--; |
|
84 | if ($level > 0) if (!$this->is_on('no_bdquotes')) $this->inject_in($p['pos'], self::QUOTE_CRAWSE_CLOSE); |
|
85 | } |
|
86 | $off = $p['pos'] + strlen($p['str']); |
|
87 | if ($level == 0) { |
|
88 | $okpos = $off; |