You are here

function _biblio_get_regex_patterns in Bibliography Module 7

Same name and namespace in other branches
  1. 6.2 includes/biblio_theme.inc \_biblio_get_regex_patterns()
  2. 6 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 includes/biblio_theme.inc
theme_biblio_page_number in includes/biblio_theme.inc
Format page information:.

File

includes/biblio_theme.inc, line 447

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