You are here

function _biblio_get_regex_patterns in Bibliography Module 6

Same name and namespace in other branches
  1. 6.2 includes/biblio_theme.inc \_biblio_get_regex_patterns()
  2. 7 includes/biblio_theme.inc \_biblio_get_regex_patterns()
  3. 7.2 includes/biblio.theme.inc \_biblio_get_regex_patterns()
2 calls to _biblio_get_regex_patterns()
theme_biblio_format_authors in ./biblio_theme.inc
theme_biblio_page_number in ./biblio_theme.inc

File

./biblio_theme.inc, line 419

Code

function _biblio_get_regex_patterns() {

  // Checks if PCRE is compiled with UTF-8 and Unicode support
  if (!@preg_match('/\\pL/u', 'a')) {

    // probably a broken PCRE library
    return _biblio_get_latin1_regex();
  }
  else {

    // Unicode safe filter for the value
    return _biblio_get_utf8_regex();
  }
}