Znerol\Component\Stringprep\Profile::validateCodepoint PHP Method

validateCodepoint() protected static method

Helper method: Check if the given codepoint is prohibited by a table.
protected static validateCodepoint ( $codepoint, $index, $func )
    protected static function validateCodepoint($codepoint, $index, $func)
    {
        if (!call_user_func($func, $codepoint)) {
            throw new ProfileException(sprintf('Codepoint %x prohibited', $codepoint));
        }
    }