You are here

function _lexicon_is_boundary in Lexicon 7

Same name and namespace in other branches
  1. 6 lexicon.module \_lexicon_is_boundary()

Helper function.

1 call to _lexicon_is_boundary()
_lexicon_insertlink in ./lexicon.module
Insert lexicon links to $text after every matching $terms[i]['synonyms'] that is not inside a blocking tag. $terms[i]['ins_before'] is prepended to the matches, $terms[i]['ins_after'] is appended to them. Match type and…

File

./lexicon.module, line 1290
The Lexicon module is used to create lists of terms and definitions to use on a website and optionally mark those terms in the content of the website.

Code

function _lexicon_is_boundary($char) {
  if (extension_loaded('mbstring')) {
    return mb_strpos("!\"#\$%&'()*+,-./:;<=>?@[\\]^_`{|}~� ��������� \t\n\r", $char) !== FALSE;
  }
  else {
    return strpos("!\"#\$%&'()*+,-./:;<=>?@[\\]^_`{|}~� ��������� \t\n\r", $char) !== FALSE;
  }
}