Vendor/langcode-conv/zendframework/zend-stdlib/src/StringWrapper/AbstractStringWrapper.php
public static function isSupported($encoding, $convertEncoding = null)
    {
        $supportedEncodings = static::getSupportedEncodings();

        if (!in_array(strtoupper($encoding), $supportedEncodings)) {
            return false;
        }

        if ($convertEncoding !== null && !in_array(strtoupper($convertEncoding), $supportedEncodings)) {
            return false;
        }

        return true;
    }
public static function isSupported($encoding, $convertEncoding = null)
    {
        $supportedEncodings = static::getSupportedEncodings();

        if (!in_array(strtoupper($encoding), $supportedEncodings)) {
            return false;
        }

        if ($convertEncoding !== null && !in_array(strtoupper($convertEncoding), $supportedEncodings)) {
            return false;
        }

        return true;
    }
public static function isSupported ( $ encoding , $ convertEncoding = null ) { $ supportedEncodings = static :: getSupportedEncodings ( ) ; if ( ! in_array ( strtoupper ( $ encoding ) , $ supportedEncodings ) ) { return false ; } if ( $ convertEncoding !== null && ! in_array ( strtoupper ( $ convertEncoding ) , $ supportedEncodings ) ) { return false ; } return true ; }
Check if the given character encoding is supported by this wrapper
and the character encoding to convert to is also supported.

@param  string      $encoding
@param  string|null $convertEncoding
@return bool
Check if the given character encoding is supported by this wrapper and the character encoding to convert to is also supported .