37 public const VALID_UNICODE =
'β³π²β₯πππΎπΈβ΄πΉβ―';
49 $this->input = $inputUnicode;
53 if ( $this->input === self::VALID_UNICODE ) {
54 return self::CONSTRAINT_PASSED;
56 return self::CONSTRAINT_FAILED;
61 if ( $this->input !== self::VALID_UNICODE ) {
62 $statusValue->
fatal(
'unicode-support-fail' );
63 $statusValue->value = self::AS_UNICODE_NOT_SUPPORTED;
if(ini_get('mbstring.func_overload')) if(!defined('MW_ENTRY_POINT'))
Pre-config setup: Before loading LocalSettings.php.
Verify unicode constraint.
string $input
Unicode string provided, to compare.
getLegacyStatus()
Get the legacy status for failure (or success)
__construct(string $inputUnicode)
Generic operation result class Has warning/error list, boolean status and arbitrary value.
fatal( $message,... $parameters)
Add an error and set OK to false, indicating that the operation as a whole was fatal.
Interface for all constraints that can prevent edits.