You are here

function _glossary_is_boundary in Glossary 7

Same name and namespace in other branches
  1. 5.2 glossary.module \_glossary_is_boundary()
  2. 5 glossary.module \_glossary_is_boundary()
  3. 6 glossary.module \_glossary_is_boundary()
1 call to _glossary_is_boundary()
_glossary_insertlink in ./glossary.module
Insert glossary 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

./glossary.module, line 1250
Glossary terms will be automatically marked with links to their descriptions.

Code

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