php-internal-docs 8.4.8
Unofficial docs for php/php-src
Loading...
Searching...
No Matches
generate_name_perfect_hash_table.php File Reference

Go to the source code of this file.

Functions

 read_encoding_pointer_array ()
 
 search_struct_in_file (array &$result, $struct_names, $file_path)
 
 search_struct_in_dir ($struct_names)
 

Variables

 $encoding_pointer_array = read_encoding_pointer_array()
 
 $encoding_pointer_array_name_mapping = search_struct_in_dir($encoding_pointer_array)
 
 $fixed_encodings
 
foreach( $fixed_encodings as $encoding_pointer=> $encoding_name) foreach($encoding_pointer_array as $encoding_pointer) $ordered_name_list
 
 $output = ob_get_clean()
 
 $pattern = '/static const unsigned char asso_values\[\] =([^}]*)\};/'
 
 $asso_values = trim($matches[1], "\t \n{")
 
 $word_list = trim($matches[1], "\t \n{")
 
 foreach ( $encoding_pointer_array_name_mapping as $key=> $value)
 

Function Documentation

◆ read_encoding_pointer_array()

read_encoding_pointer_array ( )

Definition at line 3 of file generate_name_perfect_hash_table.php.

◆ search_struct_in_dir()

search_struct_in_dir ( $struct_names)

Definition at line 31 of file generate_name_perfect_hash_table.php.

◆ search_struct_in_file()

search_struct_in_file ( array & $result,
$struct_names,
$file_path )

Definition at line 17 of file generate_name_perfect_hash_table.php.

Variable Documentation

◆ $asso_values

$asso_values = trim($matches[1], "\t \n{")

Definition at line 95 of file generate_name_perfect_hash_table.php.

◆ $encoding_pointer_array

$encoding_pointer_array = read_encoding_pointer_array()

Definition at line 40 of file generate_name_perfect_hash_table.php.

◆ $encoding_pointer_array_name_mapping

$encoding_pointer_array_name_mapping = search_struct_in_dir($encoding_pointer_array)

Definition at line 41 of file generate_name_perfect_hash_table.php.

◆ $fixed_encodings

$fixed_encodings
Initial value:
= [
'mbfl_encoding_cp1251' => 'Windows-1251',
'mbfl_encoding_cp1252' => 'Windows-1252',
'mbfl_encoding_cp1254' => 'Windows-1254',
'mbfl_encoding_8859_1' => 'ISO-8859-1',
'mbfl_encoding_8859_2' => 'ISO-8859-2',
'mbfl_encoding_8859_3' => 'ISO-8859-3',
'mbfl_encoding_8859_4' => 'ISO-8859-4',
'mbfl_encoding_8859_5' => 'ISO-8859-5',
'mbfl_encoding_8859_6' => 'ISO-8859-6',
'mbfl_encoding_8859_7' => 'ISO-8859-7',
'mbfl_encoding_8859_8' => 'ISO-8859-8',
'mbfl_encoding_8859_9' => 'ISO-8859-9',
'mbfl_encoding_8859_10' => 'ISO-8859-10',
'mbfl_encoding_8859_13' => 'ISO-8859-13',
'mbfl_encoding_8859_14' => 'ISO-8859-14',
'mbfl_encoding_8859_15' => 'ISO-8859-15',
'mbfl_encoding_8859_16' => 'ISO-8859-16',
'mbfl_encoding_cp866' => 'CP866',
'mbfl_encoding_cp850' => 'CP850',
'mbfl_encoding_koi8r' => 'KOI8-R',
'mbfl_encoding_koi8u' => 'KOI8-U',
'mbfl_encoding_armscii8' => 'ArmSCII-8',
'mbfl_encoding_ascii' => 'ASCII',
]

Definition at line 44 of file generate_name_perfect_hash_table.php.

◆ $ordered_name_list

foreach($fixed_encodings as $encoding_pointer=> $encoding_name) foreach ( $encoding_pointer_array as $encoding_pointer) $ordered_name_list
Initial value:
= array_map(function ($encoding_pointer) use ($encoding_pointer_array_name_mapping) {
return $encoding_pointer_array_name_mapping[$encoding_pointer];
array_map(?callable $callback, array $array, array ... $arrays)

Definition at line 80 of file generate_name_perfect_hash_table.php.

◆ $output

$output = ob_get_clean()

Definition at line 88 of file generate_name_perfect_hash_table.php.

◆ $pattern

$pattern = '/static const unsigned char asso_values\[\] =([^}]*)\};/'

Definition at line 92 of file generate_name_perfect_hash_table.php.

◆ $word_list

$word_list = trim($matches[1], "\t \n{")

Definition at line 103 of file generate_name_perfect_hash_table.php.

◆ foreach

foreach($encoding_pointer_array_name_mapping as $key=> $value) ( $encoding_pointer_array_name_mapping as,
$value )

Definition at line 105 of file generate_name_perfect_hash_table.php.