protected static function validateCodepoint($codepoint, $index, $func) { if (!call_user_func($func, $codepoint)) { throw new ProfileException(sprintf('Codepoint %x prohibited', $codepoint)); } }