public function Normalize::addPatterns in Bibliography Module 7.2
Initialize built-in and paramaterized patterns
Parameters
array $patterns:
1 call to Normalize::addPatterns()
- Normalize::__construct in lib/
msrc-authortool/ src/ Nametools/ Normalize.php - Constructor
File
- lib/
msrc-authortool/ src/ Nametools/ Normalize.php, line 149
Class
- Normalize
- Normalize strings from common formats using REGEX
Namespace
NametoolsCode
public function addPatterns($patterns = array()) {
//The patterns specified get higher priority
foreach ($patterns as $regex => $matchPattern) {
$this
->appendPattern($regex, $matchPattern);
}
}