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

normalize() protected method

Normalize string (RFC 3454 section 4)
protected normalize ( $codepoints )
    protected function normalize($codepoints)
    {
        $string = UnicodeUtil::codepointsToString($codepoints, 'UTF-8');
        $string = \Normalizer::normalize($string, \Normalizer::FORM_KC);
        return UnicodeUtil::stringToCodepoints($string, 'UTF-8');
    }