/** @brief Visit @a AfsSpellcheckMatch instance.
  * @param $spellcheck_text [in] visited instance.
  * @return @a AfsRawAndFormattedText object initialized with
  * @a AfsSpellcheckMatch instance.
  */
 public function visit_AfsSpellcheckMatch(AfsSpellcheckMatch $spellcheck_text)
 {
     $pre = $spellcheck_text->get_pre();
     $text = $spellcheck_text->get_text();
     return new AfsRawAndFormattedText($pre . $text, $pre . '<b>' . $text . '</b>');
 }
Exemplo n.º 2
0
 public function visit_AfsSpellcheckMatch(AfsSpellcheckMatch $text)
 {
     $this->match = $text->get_text();
     $this->match_pre = $text->get_pre();
     return new AfsRawAndFormattedText($this->match_pre . $this->match, $this->match_pre . '<b>' . $this->match . '</b>');
 }
Exemplo n.º 3
0
 public function visit_AfsSpellcheckMatch(AfsSpellcheckMatch $spellcheck_text)
 {
     return new AfsRawAndFormattedText($spellcheck_text->get_text());
 }