public function csl_name::get_regex_patterns in Bibliography Module 7
Same name and namespace in other branches
- 6.2 modules/CiteProc/CSL.inc \csl_name::get_regex_patterns()
- 7.2 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 898 - CiteProc-PHP.
Class
Code
public 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();
}
}