Translate extension for MediaWiki
Loading...
Searching...
No Matches
IosVariableValidator.php
1
<?php
2
declare( strict_types = 1 );
3
4
namespace
MediaWiki\Extension\Translate\Validation\Validators;
5
6
// phpcs:disable Generic.Files.LineLength.TooLong
14
class
IosVariableValidator
extends
InsertableRegexValidator
{
15
public
function
__construct() {
16
parent::__construct(
17
"/%(?:([1-9]\d*)\$|\(([^\)]+)\))?(\+)?(0|\'[^$])?"
.
18
"(-)?(\d+)?(?:\.(\d+))?(hh|ll|[hlLzjt])?([b-fiosuxX@])/"
19
);
20
}
21
}
MediaWiki\Extension\Translate\Validation\Validators\InsertableRegexValidator
A generic regex validator and insertable that can be reused by other classes.
Definition
InsertableRegexValidator.php:19
MediaWiki\Extension\Translate\Validation\Validators\IosVariableValidator
An insertable IOS variable validator.
Definition
IosVariableValidator.php:14
src
Validation
Validators
IosVariableValidator.php
Generated by
1.10.0