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

◆ IsSurrogatePair() [2/2]

static bool System.Char.IsSurrogatePair ( string s,
int index )
inlinestatic

Definition at line 747 of file Char.cs.

748 {
749 if (s == null)
750 {
751 ThrowHelper.ThrowArgumentNullException(ExceptionArgument.s);
752 }
753 if ((uint)index >= (uint)s.Length)
754 {
755 ThrowHelper.ThrowArgumentOutOfRangeException(ExceptionArgument.index);
756 }
757 if (index + 1 < s.Length)
758 {
759 return IsSurrogatePair(s[index], s[index + 1]);
760 }
761 return false;
762 }
static bool IsSurrogatePair(string s, int index)
Definition Char.cs:747

References System.index, System.Char.IsSurrogatePair(), System.s, System.ThrowHelper.ThrowArgumentNullException(), and System.ThrowHelper.ThrowArgumentOutOfRangeException().

Referenced by System.Char.IsSurrogatePair().