You are here

function _lexicon_is_boundary in Lexicon 6

Same name and namespace in other branches
  1. 7 lexicon.module \_lexicon_is_boundary()
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 1249
Lexicon is used to create lists of terms and definitions to use on a website and optionally mark them in the content with an indicator.

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;
  }
}