37 public const VALID_UNICODE =
'β³π²β₯πππΎπΈβ΄πΉβ―';
42 private string $input;
48 $this->input = $inputUnicode;
52 if ( $this->input === self::VALID_UNICODE ) {
53 return self::CONSTRAINT_PASSED;
55 return self::CONSTRAINT_FAILED;
60 if ( $this->input !== self::VALID_UNICODE ) {
61 $statusValue->
fatal(
'unicode-support-fail' );
62 $statusValue->value = self::AS_UNICODE_NOT_SUPPORTED;
if(!defined('MW_SETUP_CALLBACK'))
Verify unicode constraint.
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.