Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F4051605
BracketResult.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
709 B
Referenced Files
None
Subscribers
None
BracketResult.php
View Options
<?php
namespace
Wikimedia\LangConv
;
/**
* A simple tuple type for the results of ReplacementMachine::countBrackets().
*/
class
BracketResult
{
/**
* The number of codepoints we wouldn't have to escape.
* @var int
*/
public
$safe
;
/**
* The number of codepoints we'd have to specially escape.
* @var int
*/
public
$unsafe
;
/**
* The total number of codepoints (sum of `safe` and `unsafe`).
* @var int
*/
public
$length
;
/**
* Create a new BracketResult.
* @param int $safe
* @param int $unsafe
* @param int $length
*/
public
function
__construct
(
int
$safe
,
int
$unsafe
,
int
$length
)
{
$this
->
safe
=
$safe
;
$this
->
unsafe
=
$unsafe
;
$this
->
length
=
$length
;
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Aug 15 2026, 18:16 (12 w, 3 d ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
35/b4/f40528a1d4a0ec36e2f3afe5d968
Default Alt Text
BracketResult.php (709 B)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment