function xoops_word_highlight($body, $q_word, $enc = null) { return HypGetQueryWord::word_highlight($body, $q_word, $enc); }
function wordsHighlight($s) { if ($s === '' || strpos($s, '<html') === FALSE) { return false; } if (function_exists('mb_convert_encoding') && $this->configEncoding && $this->encode !== $this->configEncoding) { $this->msg_words_highlight = mb_convert_encoding($this->msg_words_highlight, $this->encode, $this->configEncoding); } $ret = HypGetQueryWord::word_highlight($s, defined($this->q_word2) ? constant($this->q_word) . ' ' . constant($this->q_word2) : constant($this->q_word), $this->encode, $this->msg_words_highlight, $this->extlink_class_name); if (!$s || strlen($s) === $ret) { return false; } $this->changeContentLength = true; return $ret; }