Fallback()

EncoderReplacementFallbackBuffer::Fallback(char_t, int) method

Handles encoding failure.

virtual bool System::Text::EncoderReplacementFallbackBuffer::Fallback(char_t charUnknown, int index) override

Arguments

ParameterTypeDescription
charUnknownchar_tUnknown character; ignored.
indexintUnknown character position; ignored.

Return Value

True if replacement string is provided and is not empty, false otherwise.

EncoderReplacementFallbackBuffer::Fallback(char_t, char_t, int) method

Handles encoding failure.

virtual bool System::Text::EncoderReplacementFallbackBuffer::Fallback(char_t charUnknownHigh, char_t charUnknownLow, int index) override

Arguments

ParameterTypeDescription
charUnknownHighchar_tHigh part of surrogate pair that triggered error.
charUnknownLowchar_tLow part of surrogate pair that triggered error.
indexintUnknown character position; ignored.

Return Value

True if replacement string is provided and is not empty, false otherwise.

See Also