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

◆ LastIndexOfAny() [3/3]

int System.String.LastIndexOfAny ( char[] anyOf,
int startIndex,
int count )
inline

Definition at line 3468 of file String.cs.

3469 {
3470 if (anyOf == null)
3471 {
3472 throw new ArgumentNullException("anyOf");
3473 }
3474 if (Length == 0)
3475 {
3476 return -1;
3477 }
3478 if ((uint)startIndex >= (uint)Length)
3479 {
3480 throw new ArgumentOutOfRangeException("startIndex", SR.ArgumentOutOfRange_Index);
3481 }
3483 {
3484 throw new ArgumentOutOfRangeException("count", SR.ArgumentOutOfRange_Count);
3485 }
3486 if (anyOf.Length > 1)
3487 {
3489 }
3490 if (anyOf.Length == 1)
3491 {
3492 return LastIndexOf(anyOf[0], startIndex, count);
3493 }
3494 return -1;
3495 }
int LastIndexOf(char value)
Definition String.cs:3425
unsafe int LastIndexOfCharArray(char[] anyOf, int startIndex, int count)
Definition String.cs:3497

References System.SR.ArgumentOutOfRange_Count, System.SR.ArgumentOutOfRange_Index, System.count, System.String.LastIndexOf(), System.String.LastIndexOfCharArray(), System.String.Length, and System.startIndex.