WordPress at Your Fingertips
function is not described

SimplePie_Misc::percent_encoding_normalization() public WP 1.0

{} It's a method of the class: SimplePie_Misc{}

No Hooks.

Return

null. Nothing.

Usage

$result = SimplePie_Misc::percent_encoding_normalization( $match );
$match (required)
-

Code of SimplePie_Misc::percent_encoding_normalization() WP 5.8.2

public static function percent_encoding_normalization($match)
{
	$integer = hexdec($match[1]);
	if ($integer >= 0x41 && $integer <= 0x5A || $integer >= 0x61 && $integer <= 0x7A || $integer >= 0x30 && $integer <= 0x39 || $integer === 0x2D || $integer === 0x2E || $integer === 0x5F || $integer === 0x7E)
	{
		return chr($integer);
	}

	return strtoupper($match[0]);
}