PHP_CALLABLE_HOFS (function-ref.ts:347).
(name: &str)
| 71 | |
| 72 | /// PHP_CALLABLE_HOFS (function-ref.ts:347). |
| 73 | fn is_php_callable_hof(name: &str) -> bool { |
| 74 | matches!( |
| 75 | name, |
| 76 | "array_map" | "array_filter" | "array_walk" | "array_walk_recursive" | "array_reduce" |
| 77 | | "usort" | "uasort" | "uksort" |
| 78 | | "array_udiff" | "array_udiff_assoc" | "array_uintersect" | "array_uintersect_assoc" |
| 79 | | "call_user_func" | "call_user_func_array" |
| 80 | | "forward_static_call" | "forward_static_call_array" |
| 81 | | "preg_replace_callback" | "preg_replace_callback_array" |
| 82 | | "register_shutdown_function" | "register_tick_function" |
| 83 | | "set_error_handler" | "set_exception_handler" | "spl_autoload_register" |
| 84 | | "ob_start" | "iterator_apply" | "header_register_callback" |
| 85 | | "is_callable" |
| 86 | ) |
| 87 | } |
| 88 | |
| 89 | /// `/^[A-Za-z_]\w*$/` with JS's ASCII `\w`. |
| 90 | fn ascii_ident_re() -> &'static Regex { |
no outgoing calls
no test coverage detected