48 $reg =
"/([\\xc0-\\xff][\\x80-\\xbf]*)/";
59 $s = parent::normalizeForSearch(
$s );
77 if ( empty( $chosenIntervals ) ) {
78 $chosenIntervals = [
'centuries',
'years',
'days',
'hours',
'minutes',
'seconds' ];
85 foreach ( $intervals as $intervalName => $intervalValue ) {
88 $message =
wfMessage(
'duration-' . $intervalName )->numParams( $intervalValue );
89 $segments[] = $message->inLanguage( $this )->escaped();
92 return implode(
'', $segments );