EncoderFallbackBuffer: Fallback

Fallback

When overridden in a derived class, prepares the fallback buffer to handle the specified surrogate pair.



 Public Function Fallback(
	  ByVal UnknownCharOrHighSurrogate As Long,
	  Optional ByRef UnknownLowSurrogate As Variant,
	  Optional ByVal Index As Long ) As Boolean

Parameters

UnknownCharOrHighSurrogate
[ByVal] Long. Can be a non-surrogate charactor or a high surrogate of a surrogate pair.
UnknownLowSurrogate
[ByRef] Optional. Variant. The low surrogate matched with the high surrogate of the surrogate pair.
Index
[ByVal] Optional. Long. The index position of the surrogate pair in the input buffer.

Return Values

Boolean -  True if the fallback buffer can process UnknownCharOrHighSurrogate as a non-surrogate or process UnknownCharOrHighSurrogate and LowSurrogate as a surrogate pair; False if the fallback buffer ignores the characters.

See Also

Project CorLib Overview

Class EncoderFallbackBuffer Overview