Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ Fallback() [2/2]

override bool System.Text.InternalEncoderBestFitFallbackBuffer.Fallback ( char charUnknownHigh,
char charUnknownLow,
int index )
inline

Definition at line 69 of file InternalEncoderBestFitFallbackBuffer.cs.

70 {
71 if (!char.IsHighSurrogate(charUnknownHigh))
72 {
73 throw new ArgumentOutOfRangeException("charUnknownHigh", System.SR.Format(System.SR.ArgumentOutOfRange_Range, 55296, 56319));
74 }
75 if (!char.IsLowSurrogate(charUnknownLow))
76 {
77 throw new ArgumentOutOfRangeException("charUnknownLow", System.SR.Format(System.SR.ArgumentOutOfRange_Range, 56320, 57343));
78 }
79 _cBestFit = '?';
80 _iCount = (_iSize = 2);
81 return true;
82 }
static string ArgumentOutOfRange_Range
Definition SR.cs:1096
static string Format(string resourceFormat, object p1)
Definition SR.cs:118
Definition SR.cs:7

References System.Text.InternalEncoderBestFitFallbackBuffer._cBestFit, System.Text.InternalEncoderBestFitFallbackBuffer._iCount, System.Text.InternalEncoderBestFitFallbackBuffer._iSize, System.SR.ArgumentOutOfRange_Range, and System.SR.Format().