Fix SplitSource.php.

This commit is contained in:
levlam 2021-12-10 13:09:37 +03:00
parent 106797f7f0
commit a51f86e860

View File

@ -219,7 +219,7 @@ function split_file($file, $chunks, $undo) {
$new_content = $common.$namespace_begin.$f.$namespace_end; $new_content = $common.$namespace_begin.$f.$namespace_end;
$std_methods = array(); $std_methods = array();
preg_match_all('/std::[a-z_0-9]*/', $new_content, $std_methods); preg_match_all('/std::[a-z_0-9]*|td::unique(?!_)/', $new_content, $std_methods);
$std_methods = array_unique($std_methods[0]); $std_methods = array_unique($std_methods[0]);
$needed_std_headers = array(); $needed_std_headers = array();
@ -230,6 +230,7 @@ function split_file($file, $chunks, $undo) {
'std::uint32_t' => '', 'std::uint32_t' => '',
'std::int32_t' => '', 'std::int32_t' => '',
'std::int64_t' => '', 'std::int64_t' => '',
'td::unique' => 'algorithm',
'std::fill' => 'algorithm', 'std::fill' => 'algorithm',
'std::find' => 'algorithm', 'std::find' => 'algorithm',
'std::max' => 'algorithm', 'std::max' => 'algorithm',