System::Text::CodePagesEncodingProvider::GetEncoding method

CodePagesEncodingProvider::GetEncoding(const String&) method

Gets the encoding associated with the specified name.

EncodingPtr System::Text::CodePagesEncodingProvider::GetEncoding(const String &name) override
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

Overrides the base class method to provide code page specific encoding resolution.

See Also

CodePagesEncodingProvider::GetEncoding(int) method

Gets the encoding associated with the specified code page identifier.

EncodingPtr System::Text::CodePagesEncodingProvider::GetEncoding(int codepage) override
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

Overrides the base class method to provide code page specific encoding resolution.

See Also