System::Text::EncodingProvider::GetEncoding method

EncodingProvider::GetEncoding(const String&) method

Gets the encoding associated with the specified name.

virtual EncodingPtr System::Text::EncodingProvider::GetEncoding(const String &name)=0
ParameterTypeDescription
nameconst String&The name of the encoding to retrieve.

ReturnValue

A shared pointer to the Encoding object associated with the specified name, or nullptr if the encoding is not supported by this provider.

Remarks

This method is intended to be overridden in a derived class.

See Also

EncodingProvider::GetEncoding(int) method

Gets the encoding associated with the specified code page identifier.

virtual EncodingPtr System::Text::EncodingProvider::GetEncoding(int codepage)=0
ParameterTypeDescription
codepageintThe code page identifier of the encoding to retrieve.

ReturnValue

A shared pointer to the Encoding object associated with the specified code page, or nullptr if the encoding is not supported by this provider.

Remarks

This method is intended to be overridden in a derived class.

See Also