You are here

function biblio_handler_field_contributor::get_regex_patterns in Bibliography Module 7.2

Same name and namespace in other branches
  1. 7 views/biblio_handler_field_contributor.inc \biblio_handler_field_contributor::get_regex_patterns()
1 call to biblio_handler_field_contributor::get_regex_patterns()
biblio_handler_field_contributor::render_contriubutors in views/biblio_handler_field_contributor.inc

File

views/biblio_handler_field_contributor.inc, line 198

Class

biblio_handler_field_contributor

Code

function 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 $this
      ->get_latin1_regex();
  }
  else {

    // Unicode safe filter for the value
    return $this
      ->get_utf8_regex();
  }
}