Page MenuHomeWickedGov Phorge

BracketResult.php
No OneTemporary

Size
709 B
Referenced Files
None
Subscribers
None

BracketResult.php

<?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

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)

Event Timeline