MediaWiki master
LanguageBe_tarask.php
Go to the documentation of this file.
1<?php
10namespace MediaWiki\Languages;
11
13
20// phpcs:ignore Squiz.Classes.ValidClassName.NotCamelCaps
30 public function normalizeForSearch( $text ) {
31 # MySQL fulltext index doesn't grok utf-8, so we
32 # need to fold cases and convert to hex
33
34 # Replacing apostrophe sign U+2019 with U+0027
35 $text = str_replace( "\u{2019}", '\'', $text );
36
37 return parent::normalizeForSearch( $text );
38 }
39}
40
42class_alias( LanguageBe_tarask::class, 'LanguageBe_tarask' );
Base class for language-specific code.
Definition Language.php:65
Belarusian in Taraškievica orthography (Беларуская тарашкевіца)
normalizeForSearch( $text)
The Belarusian language uses apostrophe sign, but the characters used for this could be both U+0027 a...