private function parse_diacritics_rules( array $diacritics_rules, array &$patterns, array &$replacements ) {

		foreach ( $diacritics_rules as $needle => $replacement ) {
			$patterns[]              = '/\b(?<!\w[' . U::NO_BREAK_SPACE . U::SOFT_HYPHEN . '])' . $needle . '\b(?![' . U::NO_BREAK_SPACE . U::SOFT_HYPHEN . ']\w)/u';
			$replacements[ $needle ] = $replacement;
		}
	}
private function parse_diacritics_rules( array $diacritics_rules, array &$patterns, array &$replacements ) {

		foreach ( $diacritics_rules as $needle => $replacement ) {
			$patterns[]              = '/\b(?<!\w[' . U::NO_BREAK_SPACE . U::SOFT_HYPHEN . '])' . $needle . '\b(?![' . U::NO_BREAK_SPACE . U::SOFT_HYPHEN . ']\w)/u';
			$replacements[ $needle ] = $replacement;
		}
	}
private function parse_diacritics_rules ( array $ diacritics_rules , array & $ patterns , array & $ replacements ) { foreach ( $ diacritics_rules as $ needle => $ replacement ) { $ patterns [ ] = '/\b(?<!\w[' . U :: NO_BREAK_SPACE . U :: SOFT_HYPHEN . '])' . $ needle . '\b(?![' . U :: NO_BREAK_SPACE . U :: SOFT_HYPHEN . ']\w)/u' ; $ replacements [ $ needle ] = $ replacement ; } }
Parse an array of diacritics rules.

@param array $diacritics_rules The rules ( $word => $replacement ).
@param array $patterns         Resulting patterns. Passed by reference.
@param array $replacements     Resulting replacements. Passed by reference.
Parse an array of diacritics rules .