MediaWiki master
LanguageBe_tarask.php
Go to the documentation of this file.
1<?php
30// phpcs:ignore Squiz.Classes.ValidClassName.NotCamelCaps
40 public function normalizeForSearch( $text ) {
41 # MySQL fulltext index doesn't grok utf-8, so we
42 # need to fold cases and convert to hex
43
44 # Replacing apostrophe sign U+2019 with U+0027
45 $text = str_replace( "\u{2019}", '\'', $text );
46
47 return parent::normalizeForSearch( $text );
48 }
49}
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...
Base class for language-specific code.
Definition Language.php:63