You are here

function csl_name::get_regex_patterns in Bibliography Module 7.2

Same name and namespace in other branches
  1. 6.2 modules/CiteProc/CSL.inc \csl_name::get_regex_patterns()
  2. 7 modules/CiteProc/CSL.inc \csl_name::get_regex_patterns()
1 call to csl_name::get_regex_patterns()
csl_name::init_attrs in modules/CiteProc/CSL.inc

File

modules/CiteProc/CSL.inc, line 681

Class

csl_name

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