MediaWiki  1.34.0
make-tables.php File Reference

Go to the source code of this file.

Functions

 addRange ( $k, $start, $end)
 

Variables

if(PHP_SAPI !=='cli' &&PHP_SAPI !=='phpdbg') $chars = []
 
 $fh = fopen( __DIR__ . '/charsets.lua', 'w' )
 
 $L = fopen( __DIR__ . '/lower.lua', 'w' )
 
if(! $fh) $pats
 
 $ranges = []
 
if(! $L) $U = fopen( __DIR__ . '/upper.lua', 'w' )
 
 for ($i=0;$i<=0x10ffff;$i++)
 

Function Documentation

◆ addRange()

addRange (   $k,
  $start,
  $end 
)

Definition at line 66 of file make-tables.php.

References $fh, and $ranges.

Variable Documentation

◆ $chars

◆ $fh

◆ $L

$L = fopen( __DIR__ . '/lower.lua', 'w' )

Definition at line 17 of file make-tables.php.

Referenced by MWCryptHKDF\HKDF(), and CryptHKDF\HKDF().

◆ $pats

if (! $fh) $pats
Initial value:
= [
'a' => [ '\p{L}', 'lu' ],
'c' => [ '\p{Cc}', null ],
'd' => [ '\p{Nd}', null ],
'l' => [ '\p{Ll}', null ],
'p' => [ '\p{P}', null ],
's' => [ '\p{Xps}', null ],
'u' => [ '\p{Lu}', null ],
'w' => [ null, 'da' ], # '[\p{L}\p{Nd}]' exactly matches 'a' + 'd'
'x' => [ '[0-9A-Fa-f0-9A-Fa-f]', null ],
'z' => [ '\0', null ],
]

Definition at line 50 of file make-tables.php.

◆ $ranges

◆ $U

if (! $L) $U = fopen( __DIR__ . '/upper.lua', 'w' )

Definition at line 21 of file make-tables.php.

◆ for

for( $i=0; $i<=0x10ffff; $i++)

Definition at line 9 of file make-tables.php.